]> git.baikalelectronics.ru Git - kernel.git/commit
sfc_ef100: fail the probe if NIC uses unsol_ev credits
authorEdward Cree <ecree@solarflare.com>
Mon, 3 Aug 2020 20:32:16 +0000 (21:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 01:22:54 +0000 (18:22 -0700)
commitf0ba5f22ba4ca0d1874cd0959159a9dcd908a594
treecd42b58ed8f594ade75e097c39f9ffccc1ec06b0
parent35985cbab0c5ad698525047441a9cc814a32babc
sfc_ef100: fail the probe if NIC uses unsol_ev credits

In the future, EF100 is planned to have a credit-based scheme for
 handling unsolicited events, which drivers will need to use in order
 to function correctly.  However, current EF100 hardware does not yet
 generate unsolicited events and the credit scheme has not yet been
 implemented in firmware.  To prevent compatibility problems later if
 the current driver is used with future firmware which does implement
 it, we check for the corresponding capability flag (which that
 future firmware will set), and if found, we refuse to probe.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef100_nic.c