aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex/benet/be_cmds.h
diff options
context:
space:
mode:
authorSriharsha Basavapatna <sriharsha.basavapatna@avagotech.com>2015-07-22 11:15:12 +0530
committerDavid S. Miller <davem@davemloft.net>2015-07-24 22:41:22 -0700
commita155a5db9389c4088c0901e665002332f2503660 (patch)
tree80498895d24efe11ff26d800400e56f5ea37a092 /drivers/net/ethernet/emulex/benet/be_cmds.h
parentip_tunnel: Call ip_tunnel_core_init() from inet_init() (diff)
downloadlinux-dev-a155a5db9389c4088c0901e665002332f2503660.tar.xz
linux-dev-a155a5db9389c4088c0901e665002332f2503660.zip
be2net: support ndo_get_phys_port_id()
Add be_get_phys_port_id() function to report physical port id. The port id should be unique across different be2net devices in the system. We use the chip serial number along with the physical port number for this. Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@avagotech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_cmds.h')
-rw-r--r--drivers/net/ethernet/emulex/benet/be_cmds.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.h b/drivers/net/ethernet/emulex/benet/be_cmds.h
index a4479f7488d3..36d835bd5f3c 100644
--- a/drivers/net/ethernet/emulex/benet/be_cmds.h
+++ b/drivers/net/ethernet/emulex/benet/be_cmds.h
@@ -1637,10 +1637,12 @@ struct be_cmd_req_set_qos {
struct mgmt_hba_attribs {
u32 rsvd0[24];
u8 controller_model_number[32];
- u32 rsvd1[79];
- u8 rsvd2[3];
+ u32 rsvd1[16];
+ u32 controller_serial_number[8];
+ u32 rsvd2[55];
+ u8 rsvd3[3];
u8 phy_port;
- u32 rsvd3[13];
+ u32 rsvd4[13];
} __packed;
struct mgmt_controller_attrib {