diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2015-10-22 09:34:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-22 07:38:45 -0700 |
commit | 1a49a2fbf8c15d63a0b5e60d935ec7d5d3d07fd5 (patch) | |
tree | 75dc9acfc1527604786d6747bf1ad6def40ad7cc /net/dsa | |
parent | 2c49471b6695c5bac0d36c30ca07b8c311cd7cc3 (diff) |
net: dsa: remove port_fdb_getnext
No driver implements port_fdb_getnext anymore, and port_fdb_dump is
preferred anyway, so remove this function from DSA.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index d76e62b8dc9c..481754ee062a 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -378,34 +378,11 @@ static int dsa_slave_port_fdb_dump(struct net_device *dev, { struct dsa_slave_priv *p = netdev_priv(dev); struct dsa_switch *ds = p->parent; - unsigned char addr[ETH_ALEN] = { 0 }; - u16 vid = 0; - int ret; if (ds->drv->port_fdb_dump) return ds->drv->port_fdb_dump(ds, p->port, fdb, cb); - if (!ds->drv->port_fdb_getnext) - return -EOPNOTSUPP; - - for (;;) { - bool is_static; - - ret = ds->drv->port_fdb_getnext(ds, p->port, addr, &vid, - &is_static); - if (ret < 0) - break; - - ether_addr_copy(fdb->addr, addr); - fdb->vid = vid; - fdb->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; - - ret = cb(&fdb->obj); - if (ret < 0) - break; - } - - return ret == -ENOENT ? 0 : ret; + return -EOPNOTSUPP; } static int dsa_slave_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) |