]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: add new switchdev_port_bridge_getlink
authorScott Feldman <sfeldma@gmail.com>
Sun, 10 May 2015 16:48:04 +0000 (09:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 22:43:55 +0000 (18:43 -0400)
commitefcf12dc65d95abb3c4cdbacc8d44dbc35b1e424
tree8342ff461ce9775a9c9bb7cd67124dae18703141
parent0a59ec4fd45bb633bac12d0de5e5c768736e41da
switchdev: add new switchdev_port_bridge_getlink

Like bridge_setlink, add switchdev wrapper to handle bridge_getlink and
call into port driver to get port attrs.  For now, only BR_LEARNING and
BR_LEARNING_SYNC are returned.  To add more, we'll probably want to break
away from ndo_dflt_bridge_getlink() and build the netlink skb directly in
the switchdev code.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h
net/switchdev/switchdev.c