]> git.baikalelectronics.ru Git - kernel.git/commit
net: switchdev: add SET_SWITCHDEV_OPS helper
authorSimon Horman <simon.horman@netronome.com>
Thu, 29 Jun 2017 20:08:11 +0000 (22:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jul 2017 15:51:32 +0000 (08:51 -0700)
commit969eb86e2626621996de8fbcda9b89de12538497
tree4bbea8edf3f410b77335260fad10fa3acbb8adad
parent071ecdeba00dc76b7f2518a6fa17670383019775
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>
include/net/switchdev.h