ethdev: add include for vtune
Checks
Commit Message
From: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Adding this include allowed us to use vtune
with DPDK.
Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
---
lib/ethdev/ethdev_profile.c | 1 +
1 file changed, 1 insertion(+)
Comments
On 10/12/2022 1:02 PM, Markus Theil wrote:
> From: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
>
> Adding this include allowed us to use vtune
> with DPDK.
>
> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
> ---
> lib/ethdev/ethdev_profile.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/ethdev/ethdev_profile.c b/lib/ethdev/ethdev_profile.c
> index 7978f351ac..90339cb2ee 100644
> --- a/lib/ethdev/ethdev_profile.c
> +++ b/lib/ethdev/ethdev_profile.c
> @@ -3,6 +3,7 @@
> */
>
> #include "ethdev_profile.h"
> +#include "ethdev_driver.h"
>
"ethdev_profile.h" already includes "ethdev_driver.h". What was the
problem without above change?
> /**
> * This conditional block enables Ethernet device profiling with
On 10/12/22 14:26, Ferruh Yigit wrote:
> On 10/12/2022 1:02 PM, Markus Theil wrote:
>> From: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
>>
>> Adding this include allowed us to use vtune
>> with DPDK.
>>
>> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
>> ---
>> lib/ethdev/ethdev_profile.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/lib/ethdev/ethdev_profile.c b/lib/ethdev/ethdev_profile.c
>> index 7978f351ac..90339cb2ee 100644
>> --- a/lib/ethdev/ethdev_profile.c
>> +++ b/lib/ethdev/ethdev_profile.c
>> @@ -3,6 +3,7 @@
>> */
>> #include "ethdev_profile.h"
>> +#include "ethdev_driver.h"
>
> "ethdev_profile.h" already includes "ethdev_driver.h". What was the
> problem without above change?
>
Thanks for the hint. I've overlooked that this was already fixed in
2022/05 with 8c9e97ddbedd735f70a2e6b1d5d4ffef02a9b0b9. I'm archiving the
patch.
>> /**
>> * This conditional block enables Ethernet device profiling with
>
@@ -3,6 +3,7 @@
*/
#include "ethdev_profile.h"
+#include "ethdev_driver.h"
/**
* This conditional block enables Ethernet device profiling with