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>
This commit is contained in:
Nirranjan Kirubaharan 2020-06-29 17:25:13 +05:30 • committed by David S. Miller
commit e0cdac65ba
3 changed files with 43 additions and 12 deletions