bnxt_en: Fix compile errors when CONFIG_BNXT_SRIOV is not set.
authorMichael Chan <mchan@broadcom.com>
Fri, 23 Oct 2015 19:06:19 +0000 (15:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2015 00:34:34 +0000 (17:34 -0700)
commit379a80a1d048dcacfc2011d5d32e16d5c804b9f4
tree1fee3bb597596654e2b3613b3cc1c5e0488f1967
parentbf7958607d0b792e0c43482c0c78786023a69832
bnxt_en: Fix compile errors when CONFIG_BNXT_SRIOV is not set.

struct bnxt_pf_info needs to be always defined.  Move bnxt_update_vf_mac()
to bnxt_sriov.c and add some missing #ifdef CONFIG_BNXT_SRIOV.

Reported-by: Jim Hull <jim.hull@hpe.com>
Tested-by: Jim Hull <jim.hull@hpe.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h