]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-dsa-use-switchdev-attr-and-obj-handlers'
authorDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 03:20:07 +0000 (20:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 03:20:07 +0000 (20:20 -0700)
commit1a025a8f2e9ff468457ab1f5cad181e1799f7f27
treee172a8546806917545ec7371c428d28532974e15
parentbf7ecc44f5f79c71ab8947c920751d025a3de125
parent5c8c9217244a159ef192c85dffe8374ae5522225
Merge branch 'net-dsa-use-switchdev-attr-and-obj-handlers'

Vivien Didelot says:

====================
net: dsa: use switchdev attr and obj handlers

This series reduces boilerplate in the handling of switchdev attribute and
object operations by using the switchdev_handle_* helpers, which check the
targeted devices and recurse into their lower devices.

This also brings back the ability to inspect operations targeting the bridge
device itself (where .orig_dev and .dev were originally the bridge device),
even though that is of no use yet and skipped by this series.

Changes in v2: Only VLAN and (non-host) MDB objects not directly targeting
the slave device are unsupported at the moment, so only skip these cases.
====================

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