]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: support configuring vf spoofchk on EF10 VFs
authorEdward Cree <ecree@solarflare.com>
Thu, 12 Mar 2020 19:21:39 +0000 (19:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 03:57:25 +0000 (20:57 -0700)
commit64801c3c8d27e49c3b75f175d78ee3ea75586fc6
treec5b38c84b640eff4eb213642dde1bfe0905ed09a
parent925db5743acd859cbf5dcd021090648398344f64
sfc: support configuring vf spoofchk on EF10 VFs

Corresponds to the MAC_SPOOFING_TX privilege in the hardware.
Some firmware versions on some cards don't support the feature, so check
 the TX_MAC_SECURITY capability and fail EOPNOTSUPP if trying to enable
 spoofchk on a NIC that doesn't support it.

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