diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2013-10-09 16:06:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-09 14:55:13 -0400 |
commit | 3d7d562ca4a884089344eb13451b5903a18d3817 (patch) | |
tree | 5d3f9cc7175ed152d6451b438cc7975df594afa3 /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
parent | c2bb06db59eaf92eb5ca9c6faed590597c6ceccb (diff) | |
download | linux-3d7d562ca4a884089344eb13451b5903a18d3817.tar.gz |
bnx2x: Add ndo_get_phys_port_id support
Each network interface (either PF or VF) is identified by its port's MAC id.
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@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.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h index 8fe4bcb2407d..5fb18cd99da2 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h @@ -1546,6 +1546,7 @@ struct bnx2x { #define IS_VF_FLAG (1 << 22) #define INTERRUPTS_ENABLED_FLAG (1 << 23) #define BC_SUPPORTS_RMMOD_CMD (1 << 24) +#define HAS_PHYS_PORT_ID (1 << 25) #define BP_NOMCP(bp) ((bp)->flags & NO_MCP_FLAG) @@ -1876,6 +1877,8 @@ struct bnx2x { u32 dump_preset_idx; bool stats_started; struct semaphore stats_sema; + + u8 phys_port_id[ETH_ALEN]; }; /* Tx queues may be less or equal to Rx queues */ |