[dpdk-dev] [PATCH] net/octeontx_ep: fixed format specifier

2021-02-10 Thread Nalla Pradeep
Used PRIx64 format specifier where ever the variable getting printed is of type uint64 Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_rxtx.c | 51 +++ 1 file changed, 20 insertions(+), 31 deletions(-) diff --git a/drivers/net/octeontx_ep/otx_ep_rxtx.c

[dpdk-dev] [PATCH v7 12/12] net/octeontx_ep: transmit data path function added

2021-01-29 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v7 11/12] net/octeontx_ep: receive data path function added

2021-01-29 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 1 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3

[dpdk-dev] [PATCH v7 10/12] net/octeontx_ep: added dev start and stop

2021-01-29 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 8 ++ drivers/net

[dpdk-dev] [PATCH v7 09/12] net/octeontx_ep: setting up iq and oq registers

2021-01-29 Thread Nalla Pradeep
idle 1. Base address 2. Output buffer size 3. Clear output queue doorbell 4. Disable interrupts for fastpath Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 120 drivers/net/octeontx_ep/otx_ep_common.h | 72 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v7 07/12] net/octeontx_ep: added rxq setup and release

2021-01-29 Thread Nalla Pradeep
release, receive buffers are freed along with the receive queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 150 drivers/net/octeontx_ep/otx_ep_ethdev.c | 127 +- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v7 02/12] net/octeontx_ep: add build and doc infrastructure

2021-01-29 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 doc/guides/nics/features/octeontx_ep.ini | 10 + doc/guides/nics/index.rst

[dpdk-dev] [PATCH v7 08/12] net/octeontx_ep: added tx queue setup and release

2021-01-29 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 88

[dpdk-dev] [PATCH v7 04/12] net/octeontx_ep: add device init and uninit

2021-01-29 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 22 +++- drivers/net/octeontx_ep/otx_ep_ethdev.c | 72 +++-- 2 files changed, 88 insertions(+), 6

[dpdk-dev] [PATCH v7 06/12] net/octeontx_ep: add dev info get and configure

2021-01-29 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- doc/guides/nics/features/octeontx_ep.ini | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 14 drivers/net/octeontx_ep/otx_ep_ethdev.c | 81 +++- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v7 05/12] net/octeontx_ep: added basic device setup

2021-01-29 Thread Nalla Pradeep
Functions to setup device, basic input queue and output queue registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 131 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net

[dpdk-dev] [PATCH v7 03/12] net/octeontx_ep: add ethdev probe and remove

2021-01-29 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h | 2 + drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx_ep_common.h | 14 ++ drivers/net/octeontx_ep/otx_ep_ethdev.c | 57

[dpdk-dev] [PATCH v7 01/12] raw/octeontx_ep: changed device id

2021-01-29 Thread Nalla Pradeep
Device id to be probed by octeontx_ep raw device pmd is changed from B203 to B204. B203 is for octeontx_ep net device pmd to probe. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 3 ++- drivers/raw/octeontx2_ep/otx2_ep_rawdev.c | 6 +++--- 2 files changed, 5

[dpdk-dev] [PATCH v7 00/12] Octeon Tx/Tx2 Endpoint pmd

2021-01-29 Thread Nalla Pradeep
'RTE_LOGTYPE_PMD' Used proper function return values. v7: Fixed dynamic logging. Nalla Pradeep (12): raw/octeontx_ep: changed device id net/octeontx_ep: add build and doc infrastructure net/octeontx_ep: add ethdev probe and remove net/octeontx_ep: add device init and uninit net/o

[dpdk-dev] [PATCH v6 12/12] net/octeontx_ep: transmit data path function added

2021-01-28 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v6 10/12] net/octeontx_ep: added dev start and stop

2021-01-28 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 8 ++ drivers/net

[dpdk-dev] [PATCH v6 09/12] net/octeontx_ep: setting up iq and oq registers

2021-01-28 Thread Nalla Pradeep
idle 1. Base address 2. Output buffer size 3. Clear output queue doorbell 4. Disable interrupts for fastpath Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 120 drivers/net/octeontx_ep/otx_ep_common.h | 72 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v6 11/12] net/octeontx_ep: receive data path function added

2021-01-28 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 1 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3

[dpdk-dev] [PATCH v6 02/12] net/octeontx_ep: add build and doc infrastructure

2021-01-28 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 doc/guides/nics/features/octeontx_ep.ini | 10 + doc/guides/nics/index.rst

[dpdk-dev] [PATCH v6 07/12] net/octeontx_ep: added rxq setup and release

2021-01-28 Thread Nalla Pradeep
release, receive buffers are freed along with the receive queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 150 drivers/net/octeontx_ep/otx_ep_ethdev.c | 127 +- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v6 08/12] net/octeontx_ep: added tx queue setup and release

2021-01-28 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 88

[dpdk-dev] [PATCH v6 05/12] net/octeontx_ep: added basic device setup

2021-01-28 Thread Nalla Pradeep
Functions to setup device, basic input queue and output queue registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 131 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net

[dpdk-dev] [PATCH v6 06/12] net/octeontx_ep: add dev info get and configure

2021-01-28 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- doc/guides/nics/features/octeontx_ep.ini | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 14 drivers/net/octeontx_ep/otx_ep_ethdev.c | 81 +++- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v6 04/12] net/octeontx_ep: add device init and uninit

2021-01-28 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 24 +++- drivers/net/octeontx_ep/otx_ep_ethdev.c | 75 +++-- 2 files changed, 93 insertions(+), 6

[dpdk-dev] [PATCH v6 03/12] net/octeontx_ep: add ethdev probe and remove

2021-01-28 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h | 2 + drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx_ep_common.h | 14 +++ drivers/net/octeontx_ep/otx_ep_ethdev.c | 56

[dpdk-dev] [PATCH v6 01/12] raw/octeontx_ep: changed device id

2021-01-28 Thread Nalla Pradeep
Device id to be probed by octeontx_ep raw device pmd is changed from B203 to B204. B203 is for octeontx_ep net device pmd to probe. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 3 ++- drivers/raw/octeontx2_ep/otx2_ep_rawdev.c | 6 +++--- 2 files changed, 5

[dpdk-dev] [PATCH v6 00/12] Octeon Tx/Tx2 Endpoint pmd

2021-01-28 Thread Nalla Pradeep
'RTE_LOGTYPE_PMD' Used proper function return values. Nalla Pradeep (12): raw/octeontx_ep: changed device id net/octeontx_ep: add build and doc infrastructure net/octeontx_ep: add ethdev probe and remove net/octeontx_ep: add device init and uninit net/octeontx_ep: added basic de

[dpdk-dev] [PATCH v5 11/11] net/octeontx_ep: transmit data path function added

2021-01-28 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v5 08/11] net/octeontx_ep: setting up iq and oq registers

2021-01-28 Thread Nalla Pradeep
idle 1. Base address 2. Output buffer size 3. Clear output queue doorbell 4. Disable interrupts for fastpath Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 120 drivers/net/octeontx_ep/otx_ep_common.h | 72 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v5 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-28 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 doc/guides/nics/features/octeontx_ep.ini | 10 + doc/guides/nics/index.rst

[dpdk-dev] [PATCH v5 10/11] net/octeontx_ep: receive data path function added

2021-01-28 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 2 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3

[dpdk-dev] [PATCH v5 07/11] net/octeontx_ep: added tx queue setup and release

2021-01-28 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 90

[dpdk-dev] [PATCH v5 09/11] net/octeontx_ep: added dev start and stop

2021-01-28 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 8 ++ drivers/net

[dpdk-dev] [PATCH v5 06/11] net/octeontx_ep: added rxq setup and release

2021-01-28 Thread Nalla Pradeep
release, receive buffers are freed along with the receive queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 149 drivers/net/octeontx_ep/otx_ep_ethdev.c | 127 +- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v5 05/11] net/octeontx_ep: add dev info get and configure

2021-01-28 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- doc/guides/nics/features/octeontx_ep.ini | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 15 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 81 +++- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v5 04/11] net/octeontx_ep: added basic device setup

2021-01-28 Thread Nalla Pradeep
Functions to setup device, basic input queue and output queue registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 131 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net

[dpdk-dev] [PATCH v5 03/11] net/octeontx_ep: add device init and uninit

2021-01-28 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h | 2 +- drivers/net/octeontx_ep/otx_ep_common.h | 19 ++- drivers/net/octeontx_ep/otx_ep_ethdev.c | 72

[dpdk-dev] [PATCH v5 00/11] Octeon Tx/Tx2 Endpoint pmd

2021-01-28 Thread Nalla Pradeep
Nalla Pradeep (11): net/octeontx_ep: add build and doc infrastructure net/octeontx_ep: add ethdev probe and remove net/octeontx_ep: add device init and uninit net/octeontx_ep: added basic device setup net/octeontx_ep: add dev info get and configure net/octeontx_ep: added rxq setup and

[dpdk-dev] [PATCH v5 02/11] net/octeontx_ep: add ethdev probe and remove

2021-01-28 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 3 ++ drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx_ep_common.h | 14 ++ drivers/net/octeontx_ep/otx_ep_ethdev.c | 56

[dpdk-dev] [PATCH v4 09/11] net/octeontx_ep: Added dev start and stop

2021-01-26 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 10 ++ drivers/net

[dpdk-dev] [PATCH v4 11/11] net/octeontx_ep: Transmit data path function added

2021-01-26 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v4 08/11] net/octeontx_ep: Setting up iq and oq registers

2021-01-26 Thread Nalla Pradeep
Configuring hardware registers with command queue(iq) and droq(oq) parameters. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 120 +++ drivers/net/octeontx_ep/otx_ep_common.h | 65 + drivers/net/octeontx_ep/otx_ep_vf.c | 121

[dpdk-dev] [PATCH v4 07/11] net/octeontx_ep: Added tx queue setup and release

2021-01-26 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 89

[dpdk-dev] [PATCH v4 10/11] net/octeontx_ep: Receive data path function added

2021-01-26 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 2 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3

[dpdk-dev] [PATCH v4 05/11] net/octeontx_ep: Add dev info get and configure

2021-01-26 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 15 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 89 - drivers/net/octeontx_ep/otx_ep_rxtx.h | 10 +++ 3 files changed, 111

[dpdk-dev] [PATCH v4 04/11] net/octeontx_ep: Added basic device setup.

2021-01-26 Thread Nalla Pradeep
Functions to setup device, basic IQ and OQ registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 133 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v4 06/11] net/octeontx_ep: Added rxq setup and release

2021-01-26 Thread Nalla Pradeep
release, receive buffers are freed along with the receive queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 160 - drivers/net/octeontx_ep/otx_ep_ethdev.c | 132 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v4 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-26 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 + doc/guides/nics/features/octeontx_ep.ini | 8 doc/guides/nics/index.rst

[dpdk-dev] [PATCH v4 03/11] net/octeontx_ep: add device init and uninit

2021-01-26 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 22 ++- drivers/net/octeontx_ep/otx_ep_ethdev.c | 88 +++-- 2 files changed, 104 insertions(+), 6

[dpdk-dev] [PATCH v4 02/11] net/octeontx_ep: add ethdev probe and remove

2021-01-26 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 5 +- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx_ep_common.h | 14 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 62

[dpdk-dev] [PATCH v3 10/11] net/octeontx_ep: Receive data path function added

2021-01-26 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 2 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3

[dpdk-dev] [PATCH v3 09/11] net/octeontx_ep: Added dev start and stop

2021-01-26 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 10 ++ drivers/net

[dpdk-dev] [PATCH v3 06/11] net/octeontx_ep: Added rxq setup and release

2021-01-26 Thread Nalla Pradeep
release, receive buffers are freed along with the receive queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 1 + drivers/net/octeontx_ep/otx_ep_common.h | 160 - drivers/net/octeontx_ep/otx_ep_ethdev.c | 132 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v3 11/11] net/octeontx_ep: Transmit data path function added

2021-01-26 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v3 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-26 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 + doc/guides/nics/features/octeontx_ep.ini | 8 doc/guides/nics/index.rst

[dpdk-dev] [PATCH v3 07/11] net/octeontx_ep: Added tx queue setup and release

2021-01-26 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 89

[dpdk-dev] [PATCH v3 08/11] net/octeontx_ep: Setting up iq and oq registers

2021-01-26 Thread Nalla Pradeep
Configuring hardware registers with command queue(iq) and droq(oq) parameters. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 120 +++ drivers/net/octeontx_ep/otx_ep_common.h | 65 + drivers/net/octeontx_ep/otx_ep_vf.c | 121

[dpdk-dev] [PATCH v3 03/11] net/octeontx_ep: add device init and uninit

2021-01-26 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 22 ++- drivers/net/octeontx_ep/otx_ep_ethdev.c | 88 +++-- 2 files changed, 104 insertions(+), 6

[dpdk-dev] [PATCH v3 04/11] net/octeontx_ep: Added basic device setup.

2021-01-26 Thread Nalla Pradeep
Functions to setup device, basic IQ and OQ registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 133 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v3 05/11] net/octeontx_ep: Add dev info get and configure

2021-01-26 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 15 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 89 - drivers/net/octeontx_ep/otx_ep_rxtx.h | 10 +++ 3 files changed, 111

[dpdk-dev] [PATCH v3 02/11] net/octeontx_ep: add ethdev probe and remove

2021-01-26 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 5 +- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx_ep_common.h | 14 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 62

[dpdk-dev] [PATCH v2 09/11] net/octeontx_ep: Added dev start and stop

2021-01-18 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 11 ++ drivers/net

[dpdk-dev] [PATCH v2 11/11] net/octeontx_ep: Transmit data path function added

2021-01-18 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep

[dpdk-dev] [PATCH v2 10/11] net/octeontx_ep: Receive data path function added

2021-01-18 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 3 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3

[dpdk-dev] [PATCH v2 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-18 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 +++ doc/guides/nics/features/octeontx_ep.ini | 8 ++ doc/guides/nics/index.rst

[dpdk-dev] [PATCH v2 07/11] net/octeontx_ep: Added tx queue setup and release

2021-01-18 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 89

[dpdk-dev] [PATCH v2 08/11] net/octeontx_ep: Setting up iq and oq registers

2021-01-18 Thread Nalla Pradeep
Configuring hardware registers with command queue(iq) and droq(oq) parameters. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 124 drivers/net/octeontx_ep/otx_ep_common.h | 65 + drivers/net/octeontx_ep/otx_ep_vf.c | 124

[dpdk-dev] [PATCH v2 05/11] net/octeontx_ep: Add dev info get and configure

2021-01-18 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 16 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 89 - drivers/net/octeontx_ep/otx_ep_rxtx.h | 10 +++ 3 files changed, 112

[dpdk-dev] [PATCH v2 06/11] net/octeontx_ep: Added rxq setup and release

2021-01-18 Thread Nalla Pradeep
buffer (BUFPTR_ONLY_MODE) or separate buffer (INFOPTR_MODE) to fill with packet metadata. BUFPTR_ONLY_MODE is supported now. In receive queue release, receive buffers are freed along with the receive queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 1

[dpdk-dev] [PATCH v2 03/11] net/octeontx_ep: add device init and uninit

2021-01-18 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 19 +- drivers/net/octeontx_ep/otx_ep_ethdev.c | 88 +++-- 2 files changed, 101 insertions(+), 6

[dpdk-dev] [PATCH v2 04/11] net/octeontx_ep: Added basic device setup.

2021-01-18 Thread Nalla Pradeep
Functions to setup device, basic IQ and OQ registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 138 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net/octeontx_ep

[dpdk-dev] [PATCH v2 02/11] net/octeontx_ep: add ethdev probe and remove

2021-01-18 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 5 +- drivers/net/octeontx_ep/meson.build | 13 + drivers/net/octeontx_ep/otx_ep_common.h | 14 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 62

[dpdk-dev] [PATCH 15/15] net/octeontx_ep: Input output reset.

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Function to allow resetting input and output queues are added. Supports both otx and otx2 endpoints. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c | 120 ++ drivers/net/octeontx_ep/otx_ep_v

[dpdk-dev] [PATCH 14/15] net/octeontx_ep: rx queue interrupt

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Added rx queue interrupt enable and disable operations. These functions are supported on both otx and otx2 platforms. Application can make use of these functions and wait on event at packet reception. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/ot

[dpdk-dev] [PATCH 09/15] net/octeontx_ep: Added dev start and stop

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 92 +++ drivers/net/octeontx_ep/otx_e

[dpdk-dev] [PATCH 11/15] net/octeontx_ep: Transmit data path function added

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" 1. Packet transmit function for both otx and otx2 are added. 2. Flushing trasmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nal

[dpdk-dev] [PATCH 01/15] net/octeontx_ep: add build and doc infrastructure

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 +++ doc/guides/nics/features/octeontx_ep.ini | 8 ++

[dpdk-dev] [PATCH 13/15] net/octeontx_ep: stats get/reset and link update

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Added stats get, stats reset and link update operations. Following stats are reported currently 1. ibytes, ipackets and ierrors. 2. obytes, opackets and oerrors. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_ethdev.c | 84 ++

[dpdk-dev] [PATCH 10/15] net/octeontx_ep: Receive data path function added

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 5 + drivers/net/o

[dpdk-dev] [PATCH 12/15] net/octeontx_ep: INFO PTR mode support added.

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Hardware can be programmed to write the meta data of incoming packet in the same buffer it uses to fill the packet(BUF PTR mode) or a different buffer (INFO PTR mode). Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 +- d

[dpdk-dev] [PATCH 08/15] net/octeontx_ep: Setting up iq and oq registers

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Configuring hardware registers with command queue(iq) and droq(oq) parameters. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 124 ++ drivers/net/octeontx_ep/otx_ep_common.h | 65 drivers/net/o

[dpdk-dev] [PATCH 06/15] net/octeontx_ep: Added rxq setup and release

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Receive queue setup involves allocating memory for the queue, initializing data structure representing the queue and filling queue with receive buffers of rx descriptor count. Receive queues are referred as droq. Hardware fills the receive buffers in queue with

[dpdk-dev] [PATCH 07/15] net/octeontx_ep: Added tx queue setup and release

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/o

[dpdk-dev] [PATCH 04/15] net/octeontx_ep: Added basic device setup.

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Functions to setup device, basic IQ and OQ registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 138 + drivers/net/octeontx_ep/otx2_ep_vf.

[dpdk-dev] [PATCH 05/15] net/octeontx_ep: Add dev info get and configure

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 15 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 80 + drivers/net/octeontx_ep/otx_ep_rxtx.h |

[dpdk-dev] [PATCH 02/15] net/octeontx_ep: add ethdev probe and remove

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h | 3 ++ drivers/net/octeontx_ep/meson.build | 13 ++ drivers/net/octeontx_ep/otx_ep_common.h | 14 ++ drivers/net/octeontx_ep/otx_e

[dpdk-dev] [PATCH 03/15] net/octeontx_ep: add device init and uninit

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 22 ++ drivers/net/octeontx_ep/otx_ep_ethdev.c | 99

[dpdk-dev] [PATCH 00/15] Octeon Tx/Tx2 Endpoint pmd

2020-12-30 Thread Nalla, Pradeep
From: "Nalla Pradeep" This patch set contains PMD with minimal set of operations that can drive both Octeon Tx and Tx2 in endpoint. Nalla, Pradeep (15): net/octeontx_ep: add build and doc infrastructure net/octeontx_ep: add ethdev probe and remove net/octeontx_ep: add devic