diff options
author | Sriharsha Basavapatna <sriharsha.basavapatna@avagotech.com> | 2015-07-22 11:15:12 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-24 22:41:22 -0700 |
commit | a155a5db9389c4088c0901e665002332f2503660 (patch) | |
tree | 80498895d24efe11ff26d800400e56f5ea37a092 /drivers/net/ethernet/emulex/benet/be_cmds.h | |
parent | 045a0fa0c5f5ea0f16c009f924ea579634afbba8 (diff) | |
download | linux-a155a5db9389c4088c0901e665002332f2503660.tar.bz2 |
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.h | 8 |
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 { |