net/qede: fix MAC address removal failure message
authorShahed Shaikh <shahed.shaikh@cavium.com>
Tue, 24 Jul 2018 22:18:44 +0000 (15:18 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 Aug 2018 19:48:19 +0000 (21:48 +0200)
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 <shahed.shaikh@cavium.com>
drivers/net/qede/qede_ethdev.c

index 88c805c..df52ea9 100644 (file)
@@ -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);