diff options
author | Merav Sicron <meravs@broadcom.com> | 2012-11-06 19:45:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-07 18:57:19 -0500 |
commit | 55c11941e382cb26010138ab824216f47af37606 (patch) | |
tree | 92724ef130081b47426919758c5fac4061e9e708 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | |
parent | babc6727d537199f7fbf6dfe711ae418d399b3eb (diff) |
bnx2x: Support loading cnic resources at run-time
This patch replaces the BCM_CNIC define with a flag which can change at run-time
and which does not use the CONFIG_CNIC kconfig option.
For the PF/hypervisor driver cnic is always supported, however allocation of
cnic resources and configuration of the HW for offload mode is done only when
the cnic module registers bnx2x.
Signed-off-by: Merav Sicron <meravs@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c index 2245c3895409..cba4a16ab86a 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | |||
@@ -1908,10 +1908,10 @@ static void bnx2x_dcbnl_get_perm_hw_addr(struct net_device *netdev, | |||
1908 | /* first the HW mac address */ | 1908 | /* first the HW mac address */ |
1909 | memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); | 1909 | memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); |
1910 | 1910 | ||
1911 | #ifdef BCM_CNIC | 1911 | if (CNIC_LOADED(bp)) |
1912 | /* second SAN address */ | 1912 | /* second SAN address */ |
1913 | memcpy(perm_addr+netdev->addr_len, bp->fip_mac, netdev->addr_len); | 1913 | memcpy(perm_addr+netdev->addr_len, bp->fip_mac, |
1914 | #endif | 1914 | netdev->addr_len); |
1915 | } | 1915 | } |
1916 | 1916 | ||
1917 | static void bnx2x_dcbnl_set_pg_tccfg_tx(struct net_device *netdev, int prio, | 1917 | static void bnx2x_dcbnl_set_pg_tccfg_tx(struct net_device *netdev, int prio, |