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)
commit9d547833f02fb8b52ab824adae8f850f3c22fd4f
tree9d0e5195728668b230c60e9d843336425b26eb4c
parent335b320940ef938c39e68eb363d26096c260057e
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