Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sfc: Implement dummy disable of VF spoof check for EF10

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Shradha Shah and committed by
David S. Miller
860d2ffa 4392dc69

+8 -5
+6
drivers/net/ethernet/sfc/ef10_sriov.c
··· 667 667 return rc ? rc : rc2; 668 668 } 669 669 670 + int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf_i, 671 + bool spoofchk) 672 + { 673 + return spoofchk ? -EOPNOTSUPP : 0; 674 + } 675 + 670 676 int efx_ef10_sriov_set_vf_link_state(struct efx_nic *efx, int vf_i, 671 677 int link_state) 672 678 {
+2 -5
drivers/net/ethernet/sfc/ef10_sriov.h
··· 49 49 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i, 50 50 u16 vlan, u8 qos); 51 51 52 - static inline int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf, 53 - bool spoofchk) 54 - { 55 - return -EOPNOTSUPP; 56 - } 52 + int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf, 53 + bool spoofchk); 57 54 58 55 int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf_i, 59 56 struct ifla_vf_info *ivf);