From: Ajit Khaparde Date: Wed, 7 Feb 2018 01:16:16 +0000 (-0800) Subject: net/bnxt: fix return code in MAC address set X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a6411929a56dce97770ed95ff14855649160e2bc;p=dpdk.git 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 --- 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);