be2net: query FW to check if EVB is enabled
authorKalesh Purayil <kalesh.purayil@avagotech.com>
Fri, 10 Jul 2015 09:32:44 +0000 (05:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jul 2015 06:24:29 +0000 (23:24 -0700)
commitff9ed19d263d9678394b6ac079abd68efb3c55c0
tree87ce90a203f8570318618cf4701119b5ba05d669
parent145155e786ccee898f6ed665f6dd3bce7c14830f
be2net: query FW to check if EVB is enabled

The current code assumes that bridge functionality (EVB) in the adapter
is enabled only when SR-IOV is enabled. This is not always true.
This patch uses the GET_HSW_CONFIG FW cmd to query this from the FW.

Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c