[dpdk-dev] [PATCH v1] net/axgbe: add support for Scattered Rx
Ferruh Yigit
ferruh.yigit at intel.com
Fri Feb 28 14:09:47 CET 2020
On 2/27/2020 6:33 AM, ssebasti at amd.com wrote:
> From: Selwin Sebastian <selwin.sebastian at amd.com>
>
> Enable scattered rx support and add jumbo packet transmit capability
>
> Signed-off-by: Selwin Sebastian <selwin.sebastian at amd.com>
<...>
> @@ -1018,9 +1024,19 @@ eth_axgbe_dev_init(struct rte_eth_dev *eth_dev)
> struct rte_pci_device *pci_dev;
> uint32_t reg, mac_lo, mac_hi;
> int ret;
> + struct rte_eth_dev_info dev_info = { 0 };
>
> eth_dev->dev_ops = &axgbe_eth_dev_ops;
> - eth_dev->rx_pkt_burst = &axgbe_recv_pkts;
> + eth_dev->dev_ops->dev_infos_get(eth_dev, &dev_info);
> +
> + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_SCATTER)
> + eth_dev->data->scattered_rx = 1;
Should check the requested config 'eth_dev->data->dev_conf.rxmode.offloads", not
the capability that driver set itself (dev_info.rx_offload_capa).
More information about the dev
mailing list