Skip to content
Commit d643a75a authored by Simon Horman's avatar Simon Horman Committed by David S. Miller
Browse files

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: default avatarSimon Horman <simon.horman@netronome.com>
Acked-by: default avatarIvan Vecera <ivecera@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7f304b9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment