mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/4] net: dsa: use switchdev attr and obj handlers
@ 2019-06-14 17:49 Vivien Didelot
  2019-06-14 17:49 ` [PATCH net-next v2 1/4] net: dsa: do not check orig_dev in vlan del Vivien Didelot
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Vivien Didelot @ 2019-06-14 17:49 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel, Vivien Didelot, David S. Miller, f.fainelli, andrew

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.

Vivien Didelot (4):
  net: dsa: do not check orig_dev in vlan del
  net: dsa: make cpu_dp non const
  net: dsa: make dsa_slave_dev_check use const
  net: dsa: use switchdev handle helpers

 include/net/dsa.h |  2 +-
 net/dsa/port.c    |  9 ------
 net/dsa/slave.c   | 80 ++++++++++++++++++++---------------------------
 3 files changed, 35 insertions(+), 56 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-15  3:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-14 17:49 [PATCH net-next v2 0/4] net: dsa: use switchdev attr and obj handlers Vivien Didelot
2019-06-14 17:49 ` [PATCH net-next v2 1/4] net: dsa: do not check orig_dev in vlan del Vivien Didelot
2019-06-14 17:49 ` [PATCH net-next v2 2/4] net: dsa: make cpu_dp non const Vivien Didelot
2019-06-14 17:49 ` [PATCH net-next v2 3/4] net: dsa: make dsa_slave_dev_check use const Vivien Didelot
2019-06-14 17:49 ` [PATCH net-next v2 4/4] net: dsa: use switchdev handle helpers Vivien Didelot
2019-06-15  3:20 ` [PATCH net-next v2 0/4] net: dsa: use switchdev attr and obj handlers David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®