From 3cce95f35ec64a76f44ff708058fb25e7b96ada2 Mon Sep 17 00:00:00 2001 From: Dumitru Ceara Date: Mon, 28 Sep 2020 20:47:29 +0200 Subject: [PATCH] net/ring: advertise multi segment Tx and scatter Rx 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. Also advertise scatter RX support. Signed-off-by: Dumitru Ceara Acked-by: Bruce Richardson --- drivers/net/ring/rte_eth_ring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 12046f5a00..83c5502123 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -160,6 +160,8 @@ eth_dev_info(struct rte_eth_dev *dev, 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->rx_offload_capa = DEV_RX_OFFLOAD_SCATTER; + 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; -- 2.20.1