From a6411929a56dce97770ed95ff14855649160e2bc Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Tue, 6 Feb 2018 17:16:16 -0800 Subject: [PATCH] net/bnxt: fix return code in MAC address set There is no need to return an error if an existing MAC is added. Fixes: 778b759ba10e ("net/bnxt: add MAC address") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 2268aba2a3..21c46f8335 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -727,7 +727,7 @@ static int bnxt_mac_addr_add_op(struct rte_eth_dev *eth_dev, if (filter->mac_index == index) { PMD_DRV_LOG(ERR, "MAC addr already existed for pool %d\n", pool); - return -EINVAL; + return 0; } } filter = bnxt_alloc_filter(bp); -- 2.20.1