]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit8793d0a664a8a2c5e18e929c1f995c784c105705
tree8342ff461ce9775a9c9bb7cd67124dae18703141
parent8508025c598bdee33d9afa153e9c00c7771e7d63
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