be2net: fix status check in be_cmd_pmac_add()
authorIvan Vecera <cera@cera.cz>
Fri, 13 Jan 2017 21:38:27 +0000 (22:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 17:28:33 +0000 (12:28 -0500)
commitfe68d8bfe59c561664aa87d827aa4b320eb08895
treea0e6997de64bf64d5280f65a456dfa3236b9f0ef
parentd43e6fb4ac4abfe4ef7c102833ed02330ad701e0
be2net: fix status check in be_cmd_pmac_add()

Return value from be_mcc_notify_wait() contains a base completion status
together with an additional status. The base_status() macro need to be
used to access base status.

Fixes: e3a7ae2 be2net: Changing MAC Address of a VF was broken
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_cmds.c