Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1251860 > unrolled thread

[PATCH net-next v3 0/6] net: dsa: implement port_fdb_dump in drivers

Started byVivien Didelot <vivien.didelot@savoirfairelinux.com>
First post2015-10-20 18:30 +0200
Last post2015-10-22 15:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH net-next v3 0/6] net: dsa: implement port_fdb_dump in drivers Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2015-10-20 18:30 +0200
    Re: [PATCH net-next v3 0/6] net: dsa: implement port_fdb_dump in  drivers David Miller <davem@davemloft.net> - 2015-10-22 15:00 +0200

#1251860 — [PATCH net-next v3 0/6] net: dsa: implement port_fdb_dump in drivers

FromVivien Didelot <vivien.didelot@savoirfairelinux.com>
Date2015-10-20 18:30 +0200
Subject[PATCH net-next v3 0/6] net: dsa: implement port_fdb_dump in drivers
Message-ID<qlHNL-qO-17@gated-at.bofh.it>
Not all switch chips provide a Get Next kind of operation to dump FDB entries.
It is preferred to let the driver handle the dump operation the way it works
best for the chip. Thus, drop port_fdb_getnext and implement the port_fdb_dump
operation in DSA, which pushes the switchdev FDB dump callback down to the
drivers. mv88e6xxx is the only driver affected and is updated accordingly.

v2 -> v3: opencode switchdev_obj_dump_cb_t to avoid multiple typedef

v1 -> v2: fix a few "return err" instead of "goto unlock" in mv88e6xxx.c

Vivien Didelot (6):
  net: dsa: add port_fdb_dump function
  net: dsa: mv88e6xxx: write VID outside of VTU Get Next code
  net: dsa: mv88e6xxx: write MAC outside of ATU Get Next code
  net: dsa: mv88e6xxx: implement port_fdb_dump
  net: dsa: mv88e6xxx: remove port_fdb_getnext
  net: dsa: remove port_fdb_getnext

 drivers/net/dsa/mv88e6171.c |   2 +-
 drivers/net/dsa/mv88e6352.c |   2 +-
 drivers/net/dsa/mv88e6xxx.c | 138 ++++++++++++++++++++++++--------------------
 drivers/net/dsa/mv88e6xxx.h |   5 +-
 include/net/dsa.h           |   7 ++-
 net/dsa/slave.c             |  26 +--------
 6 files changed, 88 insertions(+), 92 deletions(-)

-- 
2.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1253781 — Re: [PATCH net-next v3 0/6] net: dsa: implement port_fdb_dump in drivers

FromDavid Miller <davem@davemloft.net>
Date2015-10-22 15:00 +0200
SubjectRe: [PATCH net-next v3 0/6] net: dsa: implement port_fdb_dump in drivers
Message-ID<qmnDk-2Sv-17@gated-at.bofh.it>
In reply to#1251860
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Date: Tue, 20 Oct 2015 12:17:20 -0400

> Not all switch chips provide a Get Next kind of operation to dump FDB entries.
> It is preferred to let the driver handle the dump operation the way it works
> best for the chip. Thus, drop port_fdb_getnext and implement the port_fdb_dump
> operation in DSA, which pushes the switchdev FDB dump callback down to the
> drivers. mv88e6xxx is the only driver affected and is updated accordingly.
> 
> v2 -> v3: opencode switchdev_obj_dump_cb_t to avoid multiple typedef
> 
> v1 -> v2: fix a few "return err" instead of "goto unlock" in mv88e6xxx.c

This series gives rejects when I try to apply it to net-next, so please
respin.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web