Re: [PATCH net-next v3 1/9] net: switchdev: add SET_SWITCHDEV_OPS helper

2017-06-30 Thread Ivan Vecera
On 29.6.2017 22:08, Simon Horman wrote: > 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 > --- > include/net/s

[PATCH net-next v3 1/9] net: switchdev: add SET_SWITCHDEV_OPS helper

2017-06-29 Thread Simon Horman
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 --- include/net/switchdev.h | 4 1 file changed, 4 insertions(+)