[PATCH] ethdev: fix compilation issue with vtune option

2022-05-05 Thread Aman Singh
When VTune profile option is enabled, compilation error is seen. Bugzilla ID: 1004 Fixes: 2c1bbab7f09d ("ethdev: change vtune profiling approach") Cc: ilia.kura...@intel.com Signed-off-by: Aman Singh --- lib/ethdev/ethdev_profile.h | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH v3] devtools/cocci: update cocci for ethdev namespace

2022-03-07 Thread Aman Singh
Changed the filter from ETH_SPEED to ETH_SPEED_NUM to make the match more specific. Added check for ETH_TUNNEL_FILTER and ETH_RSS_RETA as these were missed before. Signed-off-by: Aman Singh --- *v3: Rather than exception for ETH_SPEED_10G & ETH_SPEED_25G macro's made search fi

[PATCH v2] devtools/cocci: update cocci for ethdev namespace

2022-01-23 Thread Aman Singh
Added two specific exceptions for ETH_SPEED_10G and ETH_SPEED_25G to avoid there name change. Added check for ETH_TUNNEL_FILTER and ETH_RSS_RETA Signed-off-by: Aman Singh --- devtools/cocci/namespace_ethdev.cocci | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devtools

[PATCH] devtools/cocci: update cocci for ethdev namespace

2021-12-08 Thread Aman Singh
Added two specific execptions for ETH_SPEED_10G and ETH_SPEED_25G to avoid there name change. Signed-off-by: Aman Singh --- devtools/cocci/namespace_ethdev.cocci | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/cocci/namespace_ethdev.cocci b/devtools/cocci

[PATCH] devtools/cocci: add script for ethdev namespace

2021-11-23 Thread Aman Singh
The cocci script is to help add prefix 'RTE_ETH' namespace to enum & macro of ethdev library. It helps in automating these changes for applications. The script won't make changes in the code comment part. Usage: spatch

[PATCH v2] devtools/cocci: added script for ethdev namespace

2021-11-22 Thread Aman Singh
The cocci script is to help add prefix 'RTE_ETH' namespace to enum & macro of ethdev library. It helps in automating these changes for applications. The script won't make changes in the code comment part. Usage: spatch

[dpdk-dev] [PATCH] maintainers: update for driver testing tool

2021-10-22 Thread Aman Singh
For test-pmd adding Aman Singh Signed-off-by: Aman Singh --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 278e5b3226..c4070fe668 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1637,6 +1637,7 @@ F: app/test/sample_packet_forward.h Driver

[dpdk-dev] [PATCH] kni: resolve build issue for OpenSuse15.3

2021-10-13 Thread Aman Singh
As suse version numbering is inconsistent to determine Linux kernel API to be used. In this patch we check parameter of 'ndo_tx_timeout' API directly from the kernel source. This is done only for suse build. Bugzilla ID: 812 Cc: sta...@dpdk.org Signed-off-by: Aman Singh --- kernel

[dpdk-dev] [PATCH] devtools/cocci: added script for ethdev namespace

2021-10-08 Thread Aman Singh
The cocci script is to help add prefix 'RTE_ETH' namespace to all enum & macro of ethdev library in a backward compatible way. After the script makes the changes few manual changes are required in rte_ethdev.h for enum name changes. Signed-off-by: Aman Singh ---

[dpdk-dev] [PATCH] net/ice/base: fix build error for GCC 4.8.5

2021-10-05 Thread Aman Singh
Code changes done for build issue as reported in Bug 817 error: dereferencing type-punned pointer will break strict-aliasing rules. added union to avoid pointer dereferencing Fixes: 39925373a333 ("net/ice/base: add parser execution main loop") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] net/ice/base: added union to avoid ptr dereference

2021-10-05 Thread Aman Singh
Code changes done to avoid build issue as seen in Bug 817 - net/ice build failure with gcc 4.8.5 error: dereferencing type-punned pointer will break strict-aliasing rules. Signed-off-by: Aman Singh --- drivers/net/ice/base/ice_parser_rt.c | 36 +++- 1 file changed, 20

[dpdk-dev] [PATCH] mbuf: remove ethdev deprecation note for flag name

2021-09-30 Thread Aman Singh
Proposed name change of offload flag PKT_RX_EIP_CKSUM_BAD to PKT_RX_OUTER_IP_CKSUM_BAD has already been done in the code as per the deprecation note. Signed-off-by: Aman Singh Acked-by: Ferruh Yigit --- doc/guides/rel_notes/deprecation.rst | 5 - lib/mbuf/rte_mbuf_core.h | 7

[dpdk-dev] [PATCH] doc: remove ethdev deprecation note for flag name

2021-09-30 Thread Aman Singh
Proposed name change of offload flag PKT_RX_EIP_CKSUM_BAD to PKT_RX_OUTER_IP_CKSUM_BAD has already been done in the code as per the deprecation note. Signed-off-by: Aman Singh --- doc/guides/rel_notes/deprecation.rst | 5 - lib/mbuf/rte_mbuf_core.h | 7 --- 2 files changed

[dpdk-dev] [PATCH] eal: add log to print dpdk version at start

2021-08-31 Thread Aman Singh
>From the logs it is difficult to get the DPDK version that was used. So added a debug log to print the same. The log has been added in eal_init so it gets printed at startup for any application. Signed-off-by: Aman Singh --- lib/eal/freebsd/eal.c | 2 +- lib/eal/linux/eal.c | 2 +- lib/

[dpdk-dev] [PATCH v7 2/2] net: added macro to extract MAC address bytes

2021-08-25 Thread Aman Singh
Added macros to simplify print of MAC address. The six bytes of a MAC address are extracted in a macro here, to improve code readablity. Signed-off-by: Aman Singh Reviewed-by: Ferruh Yigit --- The change in the document will be done in seperate patch. To ensure document has direct reference of

[dpdk-dev] [PATCH v7 1/2] net: added macro for MAC address print

2021-08-25 Thread Aman Singh
Added macro to print six bytes of MAC address. The MAC addresses will be printed in upper case hexadecimal format. In case there is a specific check for lower case MAC address, the user may need to make a change in such test case after this patch. Signed-off-by: Aman Singh Reviewed-by: Ferruh

[dpdk-dev] [PATCH v7 0/2] Use macro to print MAC address

2021-08-25 Thread Aman Singh
format. V6: Added macro RTE_ETHER_ADDR_BYTES in the rte_ether_format_addr API and rebased. V7: File got renamed after rebase nfp_ethdev.c added changes to it. *** BLURB HERE *** Aman Singh (2): net: added macro for MAC address print net: added macro to extract MAC address bytes app

[dpdk-dev] [PATCH v6 2/2] net: added macro to extract MAC address bytes

2021-08-24 Thread Aman Singh
Added macros to simplify print of MAC address. The six bytes of a MAC address are extracted in a macro here, to improve code readablity. Signed-off-by: Aman Singh Reviewed-by: Ferruh Yigit --- The change in the document will be done in seperate patch. To ensure document has direct reference of

[dpdk-dev] [PATCH v6 1/2] net: added macro for MAC address print

2021-08-24 Thread Aman Singh
Added macro to print six bytes of MAC address. The MAC addresses will be printed in upper case hexadecimal format. In case there is a specific check for lower case MAC address, the user may need to make a change in such test case after this patch. Signed-off-by: Aman Singh Reviewed-by: Ferruh

[dpdk-dev] [PATCH v6 0/2] Use macro to print MAC address

2021-08-24 Thread Aman Singh
format. V6: Added macro RTE_ETHER_ADDR_BYTES in the rte_ether_format_addr API and rebased. Aman Singh (2): net: added macro for MAC address print net: added macro to extract MAC address bytes app/pdump/main.c | 5 +--- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v5 2/2] net: added macro to extract MAC address bytes

2021-08-23 Thread Aman Singh
Added macros to simplify print of MAC address. The six bytes of a MAC address are extracted in a macro here, to improve code readablity. Signed-off-by: Aman Singh Reviewed-by: Ferruh Yigit --- The change in the document will be done in seperate patch. To ensure document has direct reference of

[dpdk-dev] [PATCH v5 1/2] net: added macro for MAC address print

2021-08-23 Thread Aman Singh
Added macro to print six bytes of MAC address. The MAC addresses will be printed in upper case hexadecimal format. In case there is a specific check for lower case MAC address, the user may need to make a change in such test case after this patch. Signed-off-by: Aman Singh Reviewed-by: Ferruh

[dpdk-dev] [PATCH v5 0/2] Use macro to print MAC address

2021-08-23 Thread Aman Singh
Added macros to simplyfy print of MAC address. The six bytes of mac address is extracted using a macro to improve code readability. Aman Singh (2): net: added macro for MAC address print net: added macro to extract MAC address bytes app/pdump/main.c | 5

[dpdk-dev] [PATCH v4 2/2] net: added macro to extract MAC address bytes

2021-08-16 Thread Aman Singh
Added macros to simplify print of MAC address. The six bytes of a MAC address are extracted in a macro here, to improve code readablity. Signed-off-by: Aman Singh Reviewed-by: Ferruh Yigit --- The change in the document will be done in seperate patch. To ensure document has direct reference of

[dpdk-dev] [PATCH v4 1/2] net: added macro for MAC address print

2021-08-16 Thread Aman Singh
Added macro to print six bytes of MAC address. The MAC addresses will be printed in lower case hexadecimal format. In case there is a specific check for upper case MAC address, the user may need to make a change in such test case after this patch. Signed-off-by: Aman Singh Reviewed-by: Ferruh

[dpdk-dev] [PATCH v4 0/2] Use macro to print MAC address

2021-08-16 Thread Aman Singh
Added macros to simplyfy print of MAC address. The six bytes of mac address is extracted using a macro to improve code readability. Aman Singh (2): net: added macro for MAC address print net: added macro to extract MAC address bytes app/pdump/main.c | 5

[dpdk-dev] [PATCH v3 2/2] net: macro to extract MAC address bytes

2021-08-10 Thread Aman Singh
Added macros to simplyfy print of MAC address. The other method of first formatting mac address into a string and string printed, is avoided. Signed-off-by: Aman Singh --- The change in the document will be done in seperate patch. To ensure document has direct reference of the code. V2: Fix

[dpdk-dev] [PATCH v3 1/2] net: macro for MAC address print

2021-08-10 Thread Aman Singh
Added macro to print six bytes of MAC address. The MAC addresses will be printed in lower case hexdecimal format. In case there is a specific check for upper case MAC address, the user may need to make a change in such test case after this patch. Signed-off-by: Aman Singh --- app/test-pmd

[dpdk-dev] [PATCH v3 0/2] Use macro to print MAC address

2021-08-10 Thread Aman Singh
Added macros to simplyfy print of MAC address. The other method of first formatting mac address into a string and string printed, is avoided. Aman Singh (2): net: macro for MAC address print net: macro to extract MAC address bytes app/pdump/main.c | 5 +--- app

[dpdk-dev] [PATCH v2 2/2] net: macro to extract MAC address bytes

2021-08-03 Thread Aman Singh
Added macros to simplyfy print of MAC address. The other method of first formatting mac address into a string and string printed, is avoided. Signed-off-by: Aman Singh --- The change in the document will be done in seperate patch. To ensure document has direct reference of the code. V2: Fix

[dpdk-dev] [PATCH v2 1/2] net: macro for MAC address print

2021-08-03 Thread Aman Singh
Added macro to print six bytes of MAC address. The MAC addresses will be printed in lower case hexdecimal format. In case there is a specific check for upper case MAC address, the user may need to make a change in such test case after this patch. Signed-off-by: Aman Singh --- app/test-pmd

[dpdk-dev] [PATCH v2 0/2] Use macro to print MAC address

2021-08-03 Thread Aman Singh
Added macros to simplyfy print of MAC address. The other method of first formatting mac address into a string and string printed, is avoided. Aman Singh (2): net: macro for MAC address print net: macro to extract MAC address bytes app/pdump/main.c | 5

[dpdk-dev] [PATCH 2/2] net: macro to extract MAC address bytes

2021-08-03 Thread Aman Singh
Added macros to simplyfy print of MAC address. The other method of first formatting mac address into a string and string printed, is avoided. Signed-off-by: Aman Singh --- The change in the document will be done in seperate patch. To ensure document has direct reference of the code. --- app

[dpdk-dev] [PATCH 1/2] net: macro for MAC address print

2021-08-03 Thread Aman Singh
Added macro to print six bytes of MAC address. The MAC addresses will be printed in lower case hexdecimal format. In case there is a specific check for upper case MAC address, the user may need to make a change in such test case after this patch. Signed-off-by: Aman Singh --- app/test-pmd

[dpdk-dev] [PATCH 0/2] Use macro to print MAC address

2021-08-03 Thread Aman Singh
Added macros to simplyfy print of MAC address. The other method of first formatting mac address into a string and string printed, is avoided. Aman Singh (2): net: macro for MAC address print net: macro to extract MAC address bytes app/pdump/main.c | 5 +--- app