[dpdk-dev] [PATCH dpdk-kmods v8 2/2] linux/igb_uio: add Makefile to build the igb_uio module

2020-10-30 Thread Hariprasad Govindharajan
This patch provides a Makefile to the user, to build the igb_uio module when required by running make inside the source directory Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https://git.dpdk.org/dpdk-kmods/ --- v8: Changed the commit message based on

[dpdk-dev] [PATCH dpdk-kmods v8 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-30 Thread Hariprasad Govindharajan
The igb_uio source code requires interrupt modes defined as macros and enums in the header file rte_pci_dev_features.h. Now, the definitions are moved to the igb_uio.c file so that this module can be built without building DPDK Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/igb_uio.c

[dpdk-dev] [PATCH DPDK_KMODS v7 2/2] linux/igb_uio: add Makefile to build the igb_uio module

2020-10-29 Thread Hariprasad Govindharajan
With DPDK 20.11 release, the igb_uio module is no more part of DPDK. This patch provides a Makefile to the user, who can build this module when required by running make inside the source dir. Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https

[dpdk-dev] [PATCH DPDK_KMODS v7 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread Hariprasad Govindharajan
The igb_uio source code requires interrupt modes defined as MACROS and enums in the header file rte_pci_dev_features.h. Now, the definitions are moved to the igb_uio.c file so that this module can be built without building DPDK Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/igb_uio.c

[dpdk-dev] [prefix=DPDK_KMODS v6 2/2] linux/igb_uio: add Makefile to build the igb_uio module

2020-10-29 Thread Hariprasad Govindharajan
module and use as needed. Since there is no more dependency on DPDK headers, this module can be built simply by running make in the source dir Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https://git.dpdk.org/dpdk-kmods/ --- v6: split the patch into two

[dpdk-dev] [prefix=DPDK_KMODS v6 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread Hariprasad Govindharajan
The igb_uio source code requires interrupt modes defined as MACROS and enums in the header file rte_pci_dev_features.h. Now, the definitions are moved to the igb_uio.c file so that this module can be built without building DPDK Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/igb_uio.c

[dpdk-dev] [DPDK_KMODS v5] linux/igb_uio: add Makefile to build the kernel module

2020-10-29 Thread Hariprasad Govindharajan
module and use as needed. Since there is no more dependency on DPDK headers, this module can be built simply by running make in the source dir Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https://git.dpdk.org/dpdk-kmods/ --- v5: Removed the DPDK

[dpdk-dev] [DPDK_KMODS v4] linux/igb_uio: add Makefile to build the kernel module

2020-10-08 Thread Hariprasad Govindharajan
module and use as needed. Before building this module, the user is expected to build the DPDK using meson build system and make sure that the required libraries are installed in the path /usr/local Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https

[dpdk-dev] [DPDK_KMODS v3] linux/igb_uio: add Makefile to build the kernel module

2020-10-05 Thread Hariprasad Govindharajan
module and use as needed. Before building this module, the user is expected to build the DPDK using meson build system and make sure that the required libraries are installed in the path /usr/local Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https

[dpdk-dev] [DPDK_KMODS v3] linux/igb_uio: add Makefile to build the kernel module

2020-10-05 Thread Hariprasad Govindharajan
module and use as needed. Before building this module, the user is expected to build the DPDK using meson build system and make sure that the required libraries are installed in the path /usr/local Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https

[dpdk-dev] [PATCH v2] linux/igb_uio: add Makefile to build the kernel module

2020-10-05 Thread Hariprasad Govindharajan
-kmods/. Once this repository is cloned, the module can be built using this Makefile Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/Makefile | 8 1 file changed, 8 insertions(+) create mode 100644 linux/igb_uio/Makefile diff --git a/linux/igb_uio/Makefile b/linux/igb_uio

[dpdk-dev] [PATCH] linux/igb_uio: add Makefile to build the kernel module

2020-10-05 Thread Hariprasad Govindharajan
module and use as needed. Before building this module, the user is expected to build the DPDK using meson build system and make sure that the required libraries are installed in the path /usr/local Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/Makefile | 8 1 file changed, 8

[dpdk-dev] [PATCH v3] app/testpmd: fix return value in portlist parser

2020-02-20 Thread Hariprasad Govindharajan
The function parse_port_list() is designed to return unsigned int value. After sanitizing the inputs, it is returning -1. Changed it to return 0. Fixes: 2df00d562d20 ("app/testpmd: add --portlist option") Cc: hariprasad.govindhara...@intel.com Signed-off-by: Hariprasad Govindharaj

[dpdk-dev] [PATCH v2] app/testpmd: fix return value in portlist parser

2020-02-20 Thread Hariprasad Govindharajan
The function parse_port_list() is designed to return unsigned int value. After sanitizing the inputs, it is returning -1. Changed it to return 0. Fixes: 2df00d562d20 ("app/testpmd: add --portlist option") Cc: hariprasad.govindhara...@intel.com Signed-off-by: Hariprasad Govindharajan

[dpdk-dev] [PATCH] app/testpmd: fix wrong return value in parse_port_list

2020-02-20 Thread Hariprasad Govindharajan
The function parse_port_list() is designed to return unsigned int value. After sanitizing the inputs, it is returning -1. Changed it to return 0. Fixes: 2df00d562d20 ("app/testpmd: add --portlist option") Cc: hariprasad.govindhara...@intel.com Signed-off-by: Hariprasad Govindharajan

[dpdk-dev] [PATCH v9] app/testpmd: add portlist option

2020-02-12 Thread Hariprasad Govindharajan
in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- v9: removed the isblank() check. updated the comments. fixed a bug which takes the range correctly. v8: changed

[dpdk-dev] [PATCH v8] app/testpmd: add portlist option

2020-02-11 Thread Hariprasad Govindharajan
in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- v8: changed the data types of the variables. optimised the code by checking for blank spaces only once. v7: moved

[dpdk-dev] [PATCH v7] app/testpmd: add portlist option

2020-02-10 Thread Hariprasad Govindharajan
in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- v7: moved the port validation outside the parser function. added meaningful comments describing the new

[dpdk-dev] [PATCH v6] app/testpmd: add portlist option to the testpmd

2020-02-06 Thread Hariprasad Govindharajan
format - Using portlist in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- v6: optimized the code to check for duplicates v5: added a check to validate

[dpdk-dev] [PATCH v5] app/testpmd: add portlist option to the testpmd

2020-02-04 Thread Hariprasad Govindharajan
format - Using portlist in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- v5: added a check to validate the ports available before setting them. also

[dpdk-dev] [PATCH v4] app/testpmd: add portlist option to the testpmd

2020-02-03 Thread Hariprasad Govindharajan
format - Using portlist in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- v4: the parser is modified so that we don't ues 2 arrays to convert the l

[dpdk-dev] [PATCH v3] app/testpmd: add portlist option to the testpmd

2020-01-31 Thread Hariprasad Govindharajan
format - Using portlist in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- v3: squashed the 2 patches and made it 1 patch with changes only in testpmd

[dpdk-dev] [PATCH v2] app/testpmd: add portlist option to the testpmd

2020-01-31 Thread Hariprasad Govindharajan
): mask must be in hex format - Using portlist in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- app/test-pmd/config.c

[dpdk-dev] [PATCH 2/2] eal: add eal_parse_optionlist to parse user input

2020-01-27 Thread Hariprasad Govindharajan
In current version, there is a function which parses the corelist based on user value. A new generic function eal_parse_optionlist is added which will parse corelist as well as similar user input so that we can use it as a public API too. Signed-off-by: Hariprasad Govindharajan --- lib

[dpdk-dev] [PATCH 1/2] app/testpmd: add portlist option to the testpmd

2020-01-27 Thread Hariprasad Govindharajan
format - Using portlist in the following format --portlist [-p2][,p3[-p4],...] --portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1 Signed-off-by: Hariprasad Govindharajan --- app/test-pmd/config.c | 25 + app/test-pmd

[dpdk-dev] [PATCH 0/2] app/testpmd: add portlist option to the testpmd

2020-01-27 Thread Hariprasad Govindharajan
is a function which parses the corelist based on user value. A new generic function eal_parse_optionlist is added which will parse corelist as well as similar user input from the command line Hariprasad Govindharajan (2): app/testpmd: add portlist option to the testpmd eal: add

[dpdk-dev] [PATCH v5] Examples/l3fwd: fix unaligned memory access

2019-07-30 Thread Hariprasad Govindharajan
ned-off-by: Hariprasad Govindharajan Reviewed-by: Bruce Richardson Reviewed-by: Jerin Jacob --- V2: Added functions which will do unaligned load based on the underlying architecture V3: Removed functions added in V2 and replaced them with if macros which will branch based on the underlying architecture.