diff options
author | Scott Feldman <[email protected]> | 2015-05-10 09:47:56 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-05-12 18:43:54 -0400 |
commit | 47f8328bb1a4115413e35b9b20d04b061ed544f8 (patch) | |
tree | 914bd885bca27e62e2f1c35c409d4d833b3aeb3c /tools/perf/scripts/python/syscall-counts.py | |
parent | 6004c86718998aee1337efd3b087d6e17284632d (diff) |
switchdev: add new switchdev bridge setlink
Add new switchdev_port_bridge_setlink that can be used by drivers
implementing .ndo_bridge_setlink to set switchdev bridge attributes.
Basically turn the raw rtnl_bridge_setlink netlink into switchdev attr
sets. Proper netlink attr policy checking is done on the protinfo part of
the netlink msg.
Currently, for protinfo, only bridge port attrs BR_LEARNING and
BR_LEARNING_SYNC are parsed and passed to port driver.
For afspec, VLAN objs are passed so switchdev driver can set VLANs assigned
to SELF. To illustrate with iproute2 cmd, we have:
bridge vlan add vid 10 dev sw1p1 self master
To add VLAN 10 to port sw1p1 for both the bridge (master) and the device
(self).
Signed-off-by: Scott Feldman <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions