]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dsa-pass-bridge-to-drivers'
authorDavid S. Miller <davem@davemloft.net>
Tue, 23 Feb 2016 19:52:46 +0000 (14:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Feb 2016 19:52:46 +0000 (14:52 -0500)
commit41273812f1e1a27a02042012bafbd92f573368e2
treedb5810f5c2004eeeb231941e070031d1a28529ce
parentd7f88a934a3036f58c114bd03f36ea7d1617500d
parent05b5eeef6aff885d4aab136b11647057e4fb6e58
Merge branch 'dsa-pass-bridge-to-drivers'

Vivien Didelot says:

====================
net: dsa: pass bridge device to drivers

This patchset simplifies the DSA layer.

A switch may support multiple bridges with the same hardware VLAN. Thus a check
such as dsa_bridge_check_vlan_range must be moved from the DSA layer to the
concerned driver.

The first purpose of this patchset is to help moving this check to the
mv88e6xxx driver, which is the only one affected at the moment.

To do that, pass directly the bridge net_device structure down to the DSA
drivers, instead of calculating a bitmask of bridge members.

The second purpose is to prepare the replacement of the complex
port_vlan_getnext approach. A second patchset is ready to follow, implementing
port_vlan_dump and thus simplifying the DSA slave code one more time.

Note that this patchset applies on top of https://lkml.org/lkml/2016/2/5/532.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>