[PATCH v9 1/1] app/testpmd: support mulitiple mbuf pools per Rx queue

2022-10-17 Thread Hanumanth Pothula
s received. Signed-off-by: Hanumanth Pothula --- app/test-pmd/testpmd.c | 40 app/test-pmd/testpmd.h | 3 +++ app/test-pmd/util.c| 4 ++-- 3 files changed, 33 insertions(+), 14 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testp

[PATCH v10 1/1] app/testpmd: support multiple mbuf pools per Rx queue

2022-10-23 Thread Hanumanth Pothula
s received. Signed-off-by: Hanumanth Pothula v9: - Populate multi-mempool array based on mbuf_data_size_n instead of rx_pkt_nb_segs. --- app/test-pmd/testpmd.c | 62 ++ app/test-pmd/testpmd.h | 3 ++ app/test-pmd/util.c| 4 +-- 3 files c

[PATCH v11 1/1] app/testpmd: support multiple mbuf pools per Rx queue

2022-10-24 Thread Hanumanth Pothula
s received. Signed-off-by: Hanumanth Pothula v11: - Resolve compilation and warning. v10: - Populate multi-mempool array based on mbuf_data_size_n instead of rx_pkt_nb_segs. --- app/test-pmd/testpmd.c | 63 +++--- app/test-pmd/testpmd.h | 3 ++ app/test-

[PATCH] common/cnxk: return on fail to init ROC Model

2022-06-10 Thread Hanumanth Pothula
Return with error on fail to initialize RoC Model. Signed-off-by: Hanumanth Pothula --- drivers/common/cnxk/roc_platform.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_platform.c b/drivers/common/cnxk/roc_platform.c index ebb6225f4d

[PATCH] common/cnxk: add lower bound check for SSO resources

2022-05-31 Thread Hanumanth Pothula
lower bound check for HWGRPS and HWS. Signed-off-by: Hanumanth Pothula --- drivers/common/cnxk/roc_sso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/roc_sso.c index f8a0a96533..8997e6f999 100644 --- a/drivers/common/cnxk

[PATCH v1 1/1] drivers: remove implementation of Rx metadata negotiation

2023-03-06 Thread Hanumanth Pothula
. Signed-off-by: Hanumanth Pothula --- drivers/common/cnxk/roc_npc.c | 19 +++ drivers/common/cnxk/roc_npc.h | 3 +++ drivers/common/cnxk/roc_npc_priv.h | 1 + drivers/common/cnxk/version.map| 2 ++ drivers/net/cnxk/cn10k_ethdev.c| 26

[PATCH v2 1/1] drivers: remove implementation of Rx metadata negotiation

2023-03-07 Thread Hanumanth Pothula
. Signed-off-by: Hanumanth Pothula --- v2: Remove explicit initializations. --- drivers/common/cnxk/roc_npc.c | 19 +++ drivers/common/cnxk/roc_npc.h | 3 +++ drivers/common/cnxk/roc_npc_priv.h | 1 + drivers/common/cnxk/version.map| 2 ++ drivers/net/cnxk

[PATCH v1 1/1] net/thunderx: update dmac control register to appropriately

2023-12-21 Thread Hanumanth Pothula
By default dmac control register is set to reject packets on mac address match, leading all unicast packets to drop. Update DMAC control register to allow packets on MAC address match rather than dropping. Signed-off-by: Hanumanth Pothula --- drivers/net/thunderx/base/nicvf_mbox.c | 12

[PATCH v3 1/3] ethdev: introduce pool sort capability

2022-09-02 Thread Hanumanth Pothula
rt --> tells pool sort capability is supported by HW. 2. max_npool --> max number of pools supported by HW. Defined new structure rte_eth_rxseg_sort, to be used only when pool sort capability is present. If required this may be extended further to support more configurations. Signed-off-by: H

[PATCH v3 2/3] app/testpmd: Add support for pool sort capability

2022-09-02 Thread Hanumanth Pothula
alue. Also, print pool name on which packet is received. Signed-off-by: Hanumanth Pothula --- app/test-pmd/testpmd.c | 31 ++- app/test-pmd/util.c| 4 ++-- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testp

[PATCH v3 3/3] net/cnxk: introduce pool sort capability

2022-09-02 Thread Hanumanth Pothula
effective use of memory. Signed-off-by: Hanumanth Pothula --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 93 --- drivers/net/cnxk/cnxk_ethdev.h| 4 +- drivers/net/cnxk/cnxk_ethd

[PATCH v4 1/3] ethdev: Add support for mulitiple mbuf pools per Rx queue

2022-09-15 Thread Hanumanth Pothula
m HW based on the packet lengths. So that packets with less than 2K are received on pool-1, packets with lengths between 2K and 4K are received on pool-2 and finally packets greater than 4K are received on pool-3. Signed-off-by: Hanumanth Pothula v4: - Renamed Offload capability name from

[PATCH v4 2/3] app/testpmd: Add support for mulitiple mbuf pools per Rx queue

2022-09-15 Thread Hanumanth Pothula
also print pool name on which packet is received. Signed-off-by: Hanumanth Pothula --- app/test-pmd/testpmd.c | 41 + app/test-pmd/testpmd.h | 3 +++ app/test-pmd/util.c| 4 ++-- 3 files changed, 34 insertions(+), 14 deletions(-) diff --git a/ap

[PATCH v4 3/3] net/cnxk: Add support for mulitiple mbuf pools

2022-09-15 Thread Hanumanth Pothula
t, thus enabling effective use of memory. Signed-off-by: Hanumanth Pothula --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 77 +++ drivers/net/cnxk/cnxk_ethdev.h| 4 +-

[PATCH v5 1/3] ethdev: support mulitiple mbuf pools per Rx queue

2022-10-06 Thread Hanumanth Pothula
m HW based on the packet lengths. So that packets with less than 2K are received on pool-1, packets with lengths between 2K and 4K are received on pool-2 and finally packets greater than 4K are received on pool-3. Signed-off-by: Hanumanth Pothula v5: - Declared memory pools as struct rte_mempool **

[PATCH v5 2/3] net/cnxk: support mulitiple mbuf pools per Rx queue

2022-10-06 Thread Hanumanth Pothula
t, thus enabling effective use of memory. Signed-off-by: Hanumanth Pothula --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 84 --- drivers/net/cnxk/cnxk_ethdev.h| 4 +-

[PATCH v5 3/3] app/testpmd: support mulitiple mbuf pools per Rx queue

2022-10-06 Thread Hanumanth Pothula
also print pool name on which packet is received. Signed-off-by: Hanumanth Pothula --- app/test-pmd/testpmd.c | 44 ++ app/test-pmd/testpmd.h | 3 +++ app/test-pmd/util.c| 4 ++-- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/ap

[PATCH v6 1/3] ethdev: support mulitiple mbuf pools per Rx queue

2022-10-06 Thread Hanumanth Pothula
m HW based on the packet lengths. So that packets with less than 2K are received on pool-1, packets with lengths between 2K and 4K are received on pool-2 and finally packets greater than 4K are received on pool-3. Signed-off-by: Hanumanth Pothula v6: - Updated release notes, release_22_11.rst. v5

[PATCH v6 2/3] net/cnxk: support mulitiple mbuf pools per Rx queue

2022-10-06 Thread Hanumanth Pothula
t, thus enabling effective use of memory. Signed-off-by: Hanumanth Pothula --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 84 --- drivers/net/cnxk/cnxk_ethdev.h| 4 +-

[PATCH v6 3/3] app/testpmd: support mulitiple mbuf pools per Rx queue

2022-10-06 Thread Hanumanth Pothula
also print pool name on which packet is received. Signed-off-by: Hanumanth Pothula --- app/test-pmd/testpmd.c | 44 ++ app/test-pmd/testpmd.h | 3 +++ app/test-pmd/util.c| 4 ++-- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/ap

[PATCH v3 1/1] app/testpmd: control passing Rx metadata to PMD

2022-10-06 Thread Hanumanth Pothula
Presently, Rx metadata is sent to PMD by default, leading to a performance drop as processing for the same in rx path takes extra cycles. Hence, introducing command line argument, 'nic-to-pmd-rx-metadata' to control passing rx metadata to PMD. By default it’s disabled. Signed-off-by:

[PATCH v12 1/1] app/testpmd: support multiple mbuf pools per Rx queue

2022-11-06 Thread Hanumanth Pothula
s received. Signed-off-by: Hanumanth Pothula v12: - Process multi-segment configuration on number segments (rx_pkt_nb_segs) greater than 1 or buffer split offload flag (RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT) set. v11: - Resolve compilation and warning. v10: - Populate multi-mempool arra

[PATCH v13 1/1] app/testpmd: support multiple mbuf pools per Rx queue

2022-11-10 Thread Hanumanth Pothula
s received. Signed-off-by: Hanumanth Pothula v13: - Make sure protocol-based header split feature is not broken by updating changes with latest code base. v12: - Process multi-segment configuration on number segments (rx_pkt_nb_segs) greater than 1 or buffer split offlo

[PATCH v14 1/1] app/testpmd: support multiple mbuf pools per Rx queue

2022-11-10 Thread Hanumanth Pothula
s received. Signed-off-by: Hanumanth Pothula v14: - Rebased on tip of next-net/main v13: - Make sure protocol-based header split feature is not broken by updating changes with latest code base. v12: - Process multi-segment configuration on number segments (rx_pkt_nb_segs) greater than 1

[PATCH v1 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-17 Thread Hanumanth Pothula
Validate ethdev parameter 'max_rx_mempools' to know wheater device supports multi-mempool feature or not. Bugzilla ID: 1128 Signed-off-by: Hanumanth Pothula --- app/test-pmd/testpmd.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c

[PATCH v2 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-17 Thread Hanumanth Pothula
Validate ethdev parameter 'max_rx_mempools' to know wheater device supports multi-mempool feature or not. Bugzilla ID: 1128 Signed-off-by: Hanumanth Pothula v2: - Rebased on tip of next-net/main --- app/test-pmd/testpmd.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletio

[PATCH v3 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-17 Thread Hanumanth Pothula
Validate ethdev parameter 'max_rx_mempools' to know whether device supports multi-mempool feature or not. Bugzilla ID: 1128 Signed-off-by: Hanumanth Pothula v3: - Simplified conditional check. - Corrected spell, whether. v2: - Rebased on tip of next-net/main. --- app/test-pmd/tes

[PATCH v3 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-18 Thread Hanumanth Pothula
Validate ethdev parameter 'max_rx_mempools' to know whether device supports multi-mempool feature or not. Bugzilla ID: 1128 Signed-off-by: Hanumanth Pothula v4: - updated if condition. v3: - Simplified conditional check. - Corrected spell, whether. v2: - Rebased on tip of nex

[PATCH v4 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-18 Thread Hanumanth Pothula
Validate ethdev parameter 'max_rx_mempools' to know whether device supports multi-mempool feature or not. Bugzilla ID: 1128 Signed-off-by: Hanumanth Pothula v4: - updated if condition. v3: - Simplified conditional check. - Corrected spell, whether. v2: - Rebased on tip of nex

[PATCH v5 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-21 Thread Hanumanth Pothula
upport multiple mbuf pools per Rx queue") Signed-off-by: Hanumanth Pothula --- v5: - Added testpmd argument to enable multi-mempool feature. - Simplified logic to distinguish between multi-mempool, multi-segment and single pool/segment. v4: - updated if condition. v3: - Simplifi

[PATCH v6 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-21 Thread Hanumanth Pothula
upport multiple mbuf pools per Rx queue") Signed-off-by: Hanumanth Pothula --- v6: - Updated run_app.rst file with multi-mempool argument. - defined and populated multi_mempool at related arguments. - invoking rte_eth_dev_info_get() withing multi-mempool condition v5: - Added testpmd argu

[PATCH v7 1/1] app/testpmd: add valid check to verify multi mempool feature

2022-11-21 Thread Hanumanth Pothula
upport multiple mbuf pools per Rx queue") Signed-off-by: Hanumanth Pothula --- v7: - Update testpmd argument name from multi-mempool to multi-rx-mempool. - Upated defination of testpmd argument, mbuf-size. - Resolved indentations. v6: - Updated run_app.rst file with multi-mempool argu

[PATCH v4 1/2] ethdev: control Rx metadata negotiation

2022-12-20 Thread Hanumanth Pothula
ed flag as part of device reset, this helps in reconfiguring porting cleanly. Rx metadata negotiation, rte_eth_rx_metadata_negotiate(), is allowed only when dev_configured flag is reset. Signed-off-by: Hanumanth Pothula --- v4: - As per spec rte_eth_rx_metadata_negotiate() is processed

[PATCH v4 2/2] app/testpmd: add command to process Rx metadata negotiation

2022-12-20 Thread Hanumanth Pothula
ow command requests are processed. Signed-off-by: Hanumanth Pothula --- app/test-pmd/cmdline.c | 58 + app/test-pmd/config.c | 9 app/test-pmd/testpmd.c | 5 +- doc/guides/testpmd_app_ug/testpmd_funcs.rst |

[PATCH v5 1/2] ethdev: fix ethdev configuration state on reset

2022-12-20 Thread Hanumanth Pothula
Presently, on device reset, ethdev configuration state, dev_configured, is not reset. On device reset, reset ethdev configuration state to make sure device reconfiguration happens cleanly. Signed-off-by: Hanumanth Pothula --- v5: - Move nic-to-pmd-rx-metadata declaration to struct rte_port. v4

[PATCH v5 2/2] app/testpmd: add command to process Rx metadata negotiation

2022-12-20 Thread Hanumanth Pothula
ow command requests are processed. Signed-off-by: Hanumanth Pothula --- app/test-pmd/cmdline.c | 58 + app/test-pmd/config.c | 9 app/test-pmd/testpmd.c | 5 +- app/test-pmd/testpmd.h |

[PATCH] app/testpmd: add command line argument 'rx-metadata'

2022-07-31 Thread Hanumanth Pothula
Performance drop is observed by sending per packet rx metadata (offloads). Hence, introducing command line argument, 'rx-metadata' to control passing rx metadata to PMD. By default it’s disabled. Signed-off-by: Hanumanth Pothula --- app/test-pmd/parameters.c | 4 app/test-pmd

[PATCH] app/testpmd: add command line argument 'rx-metadata'

2022-08-01 Thread Hanumanth Pothula
ned-off-by: Hanumanth Pothula Change-Id: If7b6bbc7489d3e9df89c63e000d71ea2f7fe9afd --- app/test-pmd/parameters.c | 4 app/test-pmd/testpmd.c| 6 +- app/test-pmd/testpmd.h| 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/parameters.c b/app/test-pmd/pa

[PATCH] app/testpmd: add command line argument 'rx-metadata'

2022-08-01 Thread Hanumanth Pothula
Presently, rx metadata is sent to PMD by default, leading to a performance drop as processing for the same in rx path takes extra cycles. Hence, introducing command line argument, 'rx-metadata' to control passing rx metadata to PMD. By default it’s disabled. Signed-off-by: Hanuman

[PATCH] app/testpmd: add command line argument 'nic-to-pmd-rx-metadata'

2022-08-02 Thread Hanumanth Pothula
Presently, rx metadata is sent to PMD by default, leading to a performance drop as processing for the same in rx path takes extra cycles. Hence, introducing command line argument, 'nic-to-pmd-rx-metadata' to control passing rx metadata to PMD. By default it’s disabled. Signed-off-by:

[PATCH v2 2/2] app/testpmd: add command line argument 'nic-to-pmd-rx-metadata'

2022-08-02 Thread Hanumanth Pothula
Presently, rx metadata is sent to PMD by default, leading to a performance drop as processing for the same in rx path takes extra cycles. Hence, introducing command line argument, 'nic-to-pmd-rx-metadata' to control passing rx metadata to PMD. By default it’s disabled. Signed-off-by:

[PATCH v2 1/2] version: 22.11-rc0

2022-08-02 Thread Hanumanth Pothula
From: David Marchand Start a new release cycle with empty release notes. The ABI version becomes 23.0. The map files are updated to the new ABI major number (23). The ABI exceptions are dropped and CI ABI checks are disabled because compatibility is not preserved. Special handling of removed dri

[PATCH v2 1/1] app/testpmd: add command line argument 'nic-to-pmd-rx-metadata'

2022-08-02 Thread Hanumanth Pothula
Presently, rx metadata is sent to PMD by default, leading to a performance drop as processing for the same in rx path takes extra cycles. Hence, introducing command line argument, 'nic-to-pmd-rx-metadata' to control passing rx metadata to PMD. By default it’s disabled. Signed-off-by:

[PATCH v1 1/1] ethdev: introduce pool sort capability

2022-08-12 Thread Hanumanth Pothula
ber of pools supported by HW. Defined new structure rte_eth_rxseg_sort, to be used only when pool sort capability is present. If required this may be extended further to support more configurations. Signed-off-by: Hanumanth Pothula Change-Id: I5a2485a7919616902c468c

[PATCH v2 1/3] ethdev: introduce pool sort capability

2022-08-12 Thread Hanumanth Pothula
ber of pools supported by HW. Defined new structure rte_eth_rxseg_sort, to be used only when pool sort capability is present. If required this may be extended further to support more configurations. Signed-off-by: Hanumanth Pothula v2: - Along with spec changes, uploading testpmd a

[PATCH v2 2/3] app/testpmd: add command line argument 'rxseg-mode'

2022-08-12 Thread Hanumanth Pothula
command line argument, '--rxseg-mode=2'. Signed-off-by: Hanumanth Pothula --- app/test-pmd/parameters.c | 16 app/test-pmd/testpmd.c| 35 ++- app/test-pmd/testpmd.h| 2 ++ app/test-pmd/util.c | 4 ++-- 4 files changed, 46

[PATCH v2 3/3] net/cnxk: introduce pool sort capability

2022-08-12 Thread Hanumanth Pothula
effective use of memory. Signed-off-by: Hanumanth Pothula --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 93 --- drivers/net/cnxk/cnxk_ethdev.h| 4 +- drivers/net/cnxk/cnxk_ethd

[PATCH v1 1/1] net/cnxk: resolve fail to set large Rx/Tx queues

2022-08-31 Thread Hanumanth Pothula
Also, during the cleanup, make sure PFC tree is not created. Signed-off-by: Hanumanth Pothula --- drivers/net/cnxk/cnxk_ethdev.c | 2 +- drivers/net/cnxk/cnxk_ethdev_ops.c | 6 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers

[PATCH v1 1/1] net/cnxk: program DF bit appropriately in vector mode

2022-08-31 Thread Hanumanth Pothula
programmed correctly. Signed-off-by: Hanumanth Pothula --- drivers/net/cnxk/cn10k_tx.h | 8 drivers/net/cnxk/cn9k_tx.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h index ea13866b20..fb33e7150b

[PATCH] event/octeontx: resolve possible integer overflow

2024-10-18 Thread Hanumanth Pothula
The last argument passed to ssovf_parsekv() is an unsigned char*, but it is accessed as an integer. This can lead to an integer overflow. Hence, make ensure the argument is accessed as a char and for better error handling use strtol instead of atoi. Signed-off-by: Hanumanth Pothula --- drivers

[PATCH v2 1/1] event/octeontx: resolve possible integer overflow

2024-10-23 Thread Hanumanth Pothula
The last argument passed to ssovf_parsekv() is an unsigned char*, but it is accessed as an integer. This can lead to an integer overflow. Hence, make ensure the argument is accessed as a char and for better error handling use strtol instead of atoi. Signed-off-by: Hanumanth Pothula --- v2: use

[PATCH v4 1/1] event/octeontx: fix possible integer overflow

2024-10-25 Thread Hanumanth Pothula
event/octeontx: add selftest to device arguments") Signed-off-by: Hanumanth Pothula --- v2: Use strtoul instead of strtol v3: Add value boundry check. Here, value can be either 0 or 1. v4: Commit text update --- drivers/event/octeontx/ssovf_evdev.c | 16 +--- 1 file changed, 13

[PATCH v3 1/1] event/octeontx: resolve possible integer overflow

2024-10-23 Thread Hanumanth Pothula
The last argument passed to ssovf_parsekv() is an unsigned char*, but it is accessed as an integer. This can lead to an integer overflow. Hence, make ensure the argument is accessed as a char and for better error handling use strtol instead of atoi. Signed-off-by: Hanumanth Pothula --- v2: use