]> 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)
commit9ca956874961a52d773ed1e364e794cd6bb6a644
treec5b38c84b640eff4eb213642dde1bfe0905ed09a
parent546ab73960ec06d62616b92b8fb78b129bc2388e
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