net/bnxt: fix vector receive check
PATCH 1/1 net/bnxt: fix vector receive check
Take DEV_RX_OFFLOAD_RSS_HASH into account when deciding whether vector mode receive can be enabled.
Fixes 8b945a7f7dcb ("drivers/net: update Rx RSS hash offload capabilities")
Signed-off-by Lance Richardson <[email protected]>
Reviewed-by Ajit Khaparde <[email protected]>
--- drivers/net/bnxt/bnxt_ethdev.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/bnxt/bnxt_ethdev.c +1 -0
@@ -758,6 +758,7 @@ bnxt_receive_function(__rte_unused struct rte_eth_dev *eth_dev) DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM | DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | + DEV_RX_OFFLOAD_RSS_HASH | DEV_RX_OFFLOAD_VLAN_FILTER))) {PMD_DRV_LOG (INFO ,"Using vector mode receive for port %d\n" , eth_dev->data->port_id);
Signature · 1 line
2.17.1
Quoted 8 lines · Lance Richardson
Take
DEV_RX_OFFLOAD_RSS_HASHinto account when deciding whether vector mode receive can be enabled.Fixes 8b945a7f7dcb ("drivers/net: update Rx RSS hash offloadcapabilities")
Signed-off-by Lance Richardson <[email protected]>Reviewed-by Ajit Khaparde <[email protected]>
Patch applied to dpdk-next-net-brcm. Thanks
Quoted 23 lines
--- drivers/net/bnxt/bnxt_ethdev.c | 1 + 1 file changed, 1 insertion(+)drivers/net/bnxt/bnxt_ethdev.c +1
-0@@ -758,6 +758,7 @@ bnxt_receive_function(__rte_unused struct rte_eth_dev *eth_dev) DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM | DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | + DEV_RX_OFFLOAD_RSS_HASH | DEV_RX_OFFLOAD_VLAN_FILTER))) { PMD_DRV_LOG(INFO, "Using vector mode receive for port%d\n",
eth_dev->data->port_id);--
2.17.1