]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: vlan: Use switchdev_port* in vlan_netdev_ops
authorIdo Schimmel <idosch@mellanox.com>
Tue, 15 Dec 2015 15:03:34 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 16:58:20 +0000 (11:58 -0500)
commitc685384f720f07d256ef370194a14e515cbcbd84
tree9d0e5195728668b230c60e9d843336425b26eb4c
parent02d3c4f594cc4483ad2aea5afc0f17e733a7580d
switchdev: vlan: Use switchdev_port* in vlan_netdev_ops

We need to be able to propagate static FDB entries and certain bridge
port attributes (e.g. learning, flooding) down to the port netdev
driver when bridge port is a VLAN interface.

Achieve that by setting ndo_bridge* and ndo_fdb* in vlan_netdev_ops to
the corresponding switchdev_port* functions. This is consistent with
team and bond devices.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c