cxgb4vf: configure ports accessible by the VF
authorNirranjan Kirubaharan <nirranjan@chelsio.com>
Mon, 29 Jun 2020 11:55:13 +0000 (17:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 22:54:25 +0000 (15:54 -0700)
commite0cdac65ba269767d5531cc40ab7fe858e2650d9
tree9c72bd237840b8df202896b814d352fa2bafffec
parentb007def80e7399f7b2852a61fdd8b423f4c1b57b
cxgb4vf: configure ports accessible by the VF

Find ports accessible by the VF, based on the index of the
mac address stored for the VF in the adapter. If no mac address
is stored for the VF, use the port mask provided by firmware.

Signed-off-by: Nirranjan Kirubaharan <nirranjan@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c