be2net: don't delete MAC on close on unprivileged BE3 VFs
authorIvan Vecera <cera@cera.cz>
Fri, 13 Jan 2017 21:38:28 +0000 (22:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 17:28:33 +0000 (12:28 -0500)
commit6d928ae590c8d58cfd5cca997d54394de139cbb7
tree64aacc348f5e364dc1b52a1cdba417ffaba764e9
parentfe68d8bfe59c561664aa87d827aa4b320eb08895
be2net: don't delete MAC on close on unprivileged BE3 VFs

BE3 VFs without FILTMGMT privilege are not allowed to modify its MAC,
VLAN table and UC/MC lists. So don't try to delete MAC on such VFs.

Cc: Sathya Perla <sathya.perla@broadcom.com>
Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Cc: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ivan Vecera <cera@cera.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c