summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
diff options
context:
space:
mode:
authorSathya Perla2017-07-25 19:28:40 +0200
committerDavid S. Miller2017-07-25 21:48:19 +0200
commite408ebdc41aa53f0aa552132384daaa5f5c6301d (patch)
tree5110cac4cc8e0787041eee781df1607cf2637ab2 /drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
parentbnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch (diff)
downloadkernel-qcow2-linux-e408ebdc41aa53f0aa552132384daaa5f5c6301d.tar.gz
kernel-qcow2-linux-e408ebdc41aa53f0aa552132384daaa5f5c6301d.tar.xz
kernel-qcow2-linux-e408ebdc41aa53f0aa552132384daaa5f5c6301d.zip
bnxt_en: use SWITCHDEV_SET_OPS() for setting vf_rep_switchdev_ops
This fixes the build error: ‘struct net_device’ has no member named ‘switchdev_ops’ Reported-by: kbuild test robot <lkp@intel.com> Fixes: c124a62ff2dd ("bnxt_en: add support for port_attr_get and and get_phys_port_name") Signed-off-by: Sathya Perla <sathya.perla@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
index a52e292be052..c00352a4c1f0 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
@@ -304,7 +304,7 @@ static void bnxt_vf_rep_netdev_init(struct bnxt *bp, struct bnxt_vf_rep *vf_rep,
dev->netdev_ops = &bnxt_vf_rep_netdev_ops;
dev->ethtool_ops = &bnxt_vf_rep_ethtool_ops;
- dev->switchdev_ops = &bnxt_vf_rep_switchdev_ops;
+ SWITCHDEV_SET_OPS(dev, &bnxt_vf_rep_switchdev_ops);
/* Just inherit all the featues of the parent PF as the VF-R
* uses the RX/TX rings of the parent PF
*/