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)
commit085793f038be88af8aa840f2dff3505e99ba9034
treec5b38c84b640eff4eb213642dde1bfe0905ed09a
parentfa83820e5c58d200f41d08003ecb5f61cad3113b
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