aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@netronome.com>2017-06-29 22:08:11 +0200
committerDavid S. Miller <davem@davemloft.net>2017-07-01 08:51:32 -0700
commitd643a75ac2bcc559994405d29c50ed086aeae434 (patch)
tree4bbea8edf3f410b77335260fad10fa3acbb8adad /drivers/net/ethernet/netronome/nfp/nfp_net_common.c
parentsctp: remove an unnecessary check from sctp_endpoint_destroy (diff)
downloadlinux-dev-d643a75ac2bcc559994405d29c50ed086aeae434.tar.xz
linux-dev-d643a75ac2bcc559994405d29c50ed086aeae434.zip
net: switchdev: add SET_SWITCHDEV_OPS helper
Add a helper to allow switchdev ops to be set if NET_SWITCHDEV is configured and do nothing otherwise. This allows for slightly cleaner code which uses switchdev but does not select NET_SWITCHDEV. Signed-off-by: Simon Horman <simon.horman@netronome.com> Acked-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_net_common.c')
0 files changed, 0 insertions, 0 deletions