diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-06-03 00:15:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-04 11:49:20 -0700 |
commit | 1da73821343c7d733de96de0a44d6d807bda98ce (patch) | |
tree | d3717e78b90abd0bc5d2811309136c2863f505fd /drivers/net/dsa/sja1105/sja1105.h | |
parent | 2a7e7409298d5e0a51e7ff23dc0befc6fdef69d1 (diff) | |
download | lwn-1da73821343c7d733de96de0a44d6d807bda98ce.tar.gz lwn-1da73821343c7d733de96de0a44d6d807bda98ce.zip |
net: dsa: sja1105: Add FDB operations for P/Q/R/S series
This adds support for manipulating the L2 forwarding database (dump,
add, delete) for the second generation of NXP SJA1105 switches.
At the moment only FDB entries installed statically through 'bridge fdb'
are visible in the dump callback - the dynamically learned ones are
still under investigation.
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105.h')
-rw-r--r-- | drivers/net/dsa/sja1105/sja1105.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105.h b/drivers/net/dsa/sja1105/sja1105.h index f55e95d1b731..61d00682de60 100644 --- a/drivers/net/dsa/sja1105/sja1105.h +++ b/drivers/net/dsa/sja1105/sja1105.h @@ -147,6 +147,11 @@ int sja1105_dynamic_config_write(struct sja1105_private *priv, enum sja1105_blk_idx blk_idx, int index, void *entry, bool keep); +enum sja1105_iotag { + SJA1105_C_TAG = 0, /* Inner VLAN header */ + SJA1105_S_TAG = 1, /* Outer VLAN header */ +}; + u8 sja1105et_fdb_hash(struct sja1105_private *priv, const u8 *addr, u16 vid); int sja1105et_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid); |