Skip to contentSkip to conversation

net/bnxt: fix vector receive check

PATCH In review Lance Richardson 2 participants 2 messages Nov 19, 2019 Network drivers

lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/net/bnxt/bnxt_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/bnxt/bnxt_ethdev.c +1 -0
index b1e831b87..41848f36f 100644
@@ -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
#1 lore raw
Quoted 8 lines · Lance Richardson

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")

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
index b1e831b87..41848f36f 100644
@@ -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