summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/cnic.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2013-09-02 20:42:30 +0200
committerDavid S. Miller <davem@davemloft.net>2013-09-04 06:27:26 +0200
commit5bf945a874d13e4e44c61afaeb7714d07fa7baca (patch)
treec2a04c36ce8cbd8460277bb92ffede024d9ad279 /drivers/net/ethernet/broadcom/cnic.h
parentcnic: Redefine BNX2X_HW_CID using existing bnx2x macros (diff)
downloadlinux-5bf945a874d13e4e44c61afaeb7714d07fa7baca.tar.xz
linux-5bf945a874d13e4e44c61afaeb7714d07fa7baca.zip
cnic: Eliminate CNIC_PORT macro and port_mode in local struct.
Use BP_PORT and chip_port_mode directly from bnx2x.h to avoid duplication. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/cnic.h')
-rw-r--r--drivers/net/ethernet/broadcom/cnic.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/cnic.h b/drivers/net/ethernet/broadcom/cnic.h
index 0408ae286b89..10531f69fe72 100644
--- a/drivers/net/ethernet/broadcom/cnic.h
+++ b/drivers/net/ethernet/broadcom/cnic.h
@@ -304,7 +304,6 @@ struct cnic_local {
u32 chip_id;
int func;
u32 pfid;
- u8 port_mode;
u32 shmem_base;
@@ -399,7 +398,6 @@ struct bnx2x_bd_chain_next {
#define ETH_MAX_RX_CLIENTS_E2 ETH_MAX_RX_CLIENTS_E1H
#endif
-#define CNIC_PORT(cp) ((cp)->pfid & 1)
#define CNIC_FUNC(cp) ((cp)->func)
#define BNX2X_HW_CID(bp, x) ((BP_PORT(bp) << 23) | \