diff options
author | Michael Chan <mchan@broadcom.com> | 2013-09-02 11:42:30 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-04 00:27:26 -0400 |
commit | 5bf945a874d13e4e44c61afaeb7714d07fa7baca (patch) | |
tree | c2a04c36ce8cbd8460277bb92ffede024d9ad279 /drivers/net/ethernet/broadcom/cnic.h | |
parent | 5e65789f694f2977fb7169c500b4997772f5278b (diff) |
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.h | 2 |
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) | \ |