summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@broadcom.com>2018-04-07 10:40:54 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2018-04-14 00:41:44 +0200
commitd4cd95c645b5af9f7f480ba7fb6f4e4eee0e0e23 (patch)
treed8f1fcf7645e1e82d859c8f95c41cbe39041ee72
parent360e6972e8b7dca1b4a0a4ed8ed3005b861aa718 (diff)
downloaddpdk-next-eventdev-d4cd95c645b5af9f7f480ba7fb6f4e4eee0e0e23.zip
dpdk-next-eventdev-d4cd95c645b5af9f7f480ba7fb6f4e4eee0e0e23.tar.gz
dpdk-next-eventdev-d4cd95c645b5af9f7f480ba7fb6f4e4eee0e0e23.tar.xz
net/bnxt: fix Rx drop setting
If Rx descriptors are not available, pkts are dropped by default. Fix rx_drop_en setting in bnxt_dev_info_get_op to reflect it. Fixes: 0a6d2a720078 ("net/bnxt: get device infos") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
-rw-r--r--drivers/net/bnxt/bnxt_ethdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 4120bdc..18ea4a4 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -426,7 +426,8 @@ static void bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
.wthresh = 0,
},
.rx_free_thresh = 32,
- .rx_drop_en = 0,
+ /* If no descriptors available, pkts are dropped by default */
+ .rx_drop_en = 1,
};
dev_info->default_txconf = (struct rte_eth_txconf) {