From: Shahed Shaikh Date: Tue, 24 Jul 2018 22:18:44 +0000 (-0700) Subject: net/qede: fix MAC address removal failure message X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7e3060a3704e21ab63e9f1b4338be2fed9a345d1;p=dpdk.git net/qede: fix MAC address removal failure message Don't treat MAC address removal failure as a fatal error and print in logs. Fixes: 77fac1b54fc9 ("net/qede: fix filtering code") Cc: stable@dpdk.org Signed-off-by: Shahed Shaikh --- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 88c805c460..df52ea9283 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -959,7 +959,10 @@ qede_mac_int_ops(struct rte_eth_dev *eth_dev, struct ecore_filter_ucast *ucast, if (rc == 0) rc = ecore_filter_ucast_cmd(edev, ucast, ECORE_SPQ_MODE_CB, NULL); - if (rc != ECORE_SUCCESS) + /* Indicate error only for add filter operation. + * Delete filter operations are not severe. + */ + if ((rc != ECORE_SUCCESS) && add) DP_ERR(edev, "MAC filter failed, rc = %d, op = %d\n", rc, add);