]> 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)
commitcef853cf43c81ba1ddec7415ac69429177442291
tree9d0e5195728668b230c60e9d843336425b26eb4c
parent82933b75dc24dbfa88a488df43b0160e03eb8b0b
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