sfc: Implement dummy disable of VF spoof check for EF10
authorShradha Shah <sshah@solarflare.com>
Wed, 20 May 2015 10:12:30 +0000 (11:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:43:55 +0000 (18:43 -0400)
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10_sriov.c
drivers/net/ethernet/sfc/ef10_sriov.h

index edc34f39fa3ad819bc8ca6a78000d8540225e460..3969b1bf7ef3ba633e2e3237dab95a5b2888ed61 100644 (file)
@@ -667,6 +667,12 @@ reset_nic:
        return rc ? rc : rc2;
 }
 
+int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf_i,
+                                  bool spoofchk)
+{
+       return spoofchk ? -EOPNOTSUPP : 0;
+}
+
 int efx_ef10_sriov_set_vf_link_state(struct efx_nic *efx, int vf_i,
                                     int link_state)
 {
index 91393a69b89fa3fa86f6519ab23f9a297b8fc310..7171029856006c241fb4689f76b4f4fc82c02c0b 100644 (file)
@@ -49,11 +49,8 @@ int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac);
 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i,
                               u16 vlan, u8 qos);
 
-static inline int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
-                                                bool spoofchk)
-{
-       return -EOPNOTSUPP;
-}
+int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
+                                  bool spoofchk);
 
 int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf_i,
                                 struct ifla_vf_info *ivf);