summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Richardson <lance.richardson@broadcom.com>2019-11-19 17:12:15 -0500
committerAjit Khaparde <ajit.khaparde@broadcom.com>2019-11-19 15:11:21 -0800
commitad63a61a9e93b07559a4635b890ebc66f695fbbd (patch)
treea24480755b44f1690e9c6fe422eeaf1d3dcd7546
parent9df1c7d38cf84f5bea15cc60c27b302b9ee8ebd2 (diff)
downloaddpdk-next-net-brcm-ad63a61a9e93b07559a4635b890ebc66f695fbbd.zip
dpdk-next-net-brcm-ad63a61a9e93b07559a4635b890ebc66f695fbbd.tar.gz
dpdk-next-net-brcm-ad63a61a9e93b07559a4635b890ebc66f695fbbd.tar.xz
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 <lance.richardson@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
-rw-r--r--drivers/net/bnxt/bnxt_ethdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index b1e831b..41848f3 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -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);