felix.c (a4721ced760684d1776bf31f7925aa41bb3f4846) | felix.c (87b0f983f66f23762921129fd35966eddc3f2dae) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* Copyright 2019 NXP Semiconductors 3 */ 4#include <uapi/linux/if_bridge.h> 5#include <soc/mscc/ocelot_vcap.h> 6#include <soc/mscc/ocelot_qsys.h> 7#include <soc/mscc/ocelot_sys.h> 8#include <soc/mscc/ocelot_dev.h> --- 32 unchanged lines hidden (view full) --- 41 42 return ocelot_fdb_dump(ocelot, port, cb, data); 43} 44 45static int felix_fdb_add(struct dsa_switch *ds, int port, 46 const unsigned char *addr, u16 vid) 47{ 48 struct ocelot *ocelot = ds->priv; | 1// SPDX-License-Identifier: GPL-2.0 2/* Copyright 2019 NXP Semiconductors 3 */ 4#include <uapi/linux/if_bridge.h> 5#include <soc/mscc/ocelot_vcap.h> 6#include <soc/mscc/ocelot_qsys.h> 7#include <soc/mscc/ocelot_sys.h> 8#include <soc/mscc/ocelot_dev.h> --- 32 unchanged lines hidden (view full) --- 41 42 return ocelot_fdb_dump(ocelot, port, cb, data); 43} 44 45static int felix_fdb_add(struct dsa_switch *ds, int port, 46 const unsigned char *addr, u16 vid) 47{ 48 struct ocelot *ocelot = ds->priv; |
49 bool vlan_aware; | |
50 | 49 |
51 vlan_aware = dsa_port_is_vlan_filtering(dsa_to_port(ds, port)); 52 53 return ocelot_fdb_add(ocelot, port, addr, vid, vlan_aware); | 50 return ocelot_fdb_add(ocelot, port, addr, vid); |
54} 55 56static int felix_fdb_del(struct dsa_switch *ds, int port, 57 const unsigned char *addr, u16 vid) 58{ 59 struct ocelot *ocelot = ds->priv; 60 61 return ocelot_fdb_del(ocelot, port, addr, vid); --- 793 unchanged lines hidden --- | 51} 52 53static int felix_fdb_del(struct dsa_switch *ds, int port, 54 const unsigned char *addr, u16 vid) 55{ 56 struct ocelot *ocelot = ds->priv; 57 58 return ocelot_fdb_del(ocelot, port, addr, vid); --- 793 unchanged lines hidden --- |