]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: number of VFs supported is not always 16
authorGanesh Goudar <ganeshgr@chelsio.com>
Tue, 27 Nov 2018 09:29:06 +0000 (14:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2018 21:09:36 +0000 (13:09 -0800)
commitc646ef255eea6c03d9872235c6018f68a24c0797
tree769691db238d4f2a3a7224befc7a5268abd4e4f8
parent1303ef5abbee8c814a7d9b1569e294479fb60716
cxgb4: number of VFs supported is not always 16

Total number of VFs supported by PF is used to determine the last
byte of VF's mac address. Number of VFs supported is not always
16, use the variable nvfs to get the number of VFs supported
rather than hard coding it to 16.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c