]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dsa-port_fdb_dump'
authorDavid S. Miller <davem@davemloft.net>
Thu, 22 Oct 2015 14:39:07 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Oct 2015 14:39:07 +0000 (07:39 -0700)
commitf5ef5f197350189916cc8c0f09e7b9d3455dd7ec
tree75dc9acfc1527604786d6747bf1ad6def40ad7cc
parentd46c741ec3be2dbf87449bd801a8747477a210e5
parentf4322228b26acd990204a962f6fb1fbcf82141ba
Merge branch 'dsa-port_fdb_dump'

Vivien Didelot says:

====================
net: dsa: implement port_fdb_dump in drivers

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.

v3 -> v4: fix rejects on latest net-next

v2 -> v3: opencode switchdev_obj_dump_cb_t to avoid multiple typedef;
          use ether_addr_copy in fdb_dump

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

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