[dpdk-dev] [PATCH] net/ring: advertise multi segment support.

Dumitru Ceara dceara at redhat.com
Fri Sep 18 12:36:55 CEST 2020


Even though ring interfaces don't support any other TX/RX offloads they
do support sending multi segment packets and this should be advertised
in order to not break applications that use ring interfaces.

Signed-off-by: Dumitru Ceara <dceara at redhat.com>
---
 drivers/net/ring/rte_eth_ring.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c
index 733c898..59d1e67 100644
--- a/drivers/net/ring/rte_eth_ring.c
+++ b/drivers/net/ring/rte_eth_ring.c
@@ -160,6 +160,7 @@ struct pmd_internals {
 	dev_info->max_mac_addrs = 1;
 	dev_info->max_rx_pktlen = (uint32_t)-1;
 	dev_info->max_rx_queues = (uint16_t)internals->max_rx_queues;
+	dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS;
 	dev_info->max_tx_queues = (uint16_t)internals->max_tx_queues;
 	dev_info->min_rx_bufsize = 0;
 
-- 
1.8.3.1



More information about the dev mailing list