be2net: support ndo_get_phys_port_id()
authorSriharsha Basavapatna <sriharsha.basavapatna@avagotech.com>
Wed, 22 Jul 2015 05:45:12 +0000 (11:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2015 05:41:22 +0000 (22:41 -0700)
commita155a5db9389c4088c0901e665002332f2503660
tree80498895d24efe11ff26d800400e56f5ea37a092
parent045a0fa0c5f5ea0f16c009f924ea579634afbba8
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>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c