提交 7c313143 编写于 作者: V Vladimir Oltean 提交者: Jakub Kicinski

net: mscc: ocelot: classify L2 mdb entries as LOCKED

ocelot.h says:

/* MAC table entry types.
 * ENTRYTYPE_NORMAL is subject to aging.
 * ENTRYTYPE_LOCKED is not subject to aging.
 * ENTRYTYPE_MACv4 is not subject to aging. For IPv4 multicast.
 * ENTRYTYPE_MACv6 is not subject to aging. For IPv6 multicast.
 */

We don't want the permanent entries added with 'bridge mdb' to be
subject to aging.
Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 0e761ac0
...@@ -958,7 +958,7 @@ static enum macaccess_entry_type ocelot_classify_mdb(const unsigned char *addr) ...@@ -958,7 +958,7 @@ static enum macaccess_entry_type ocelot_classify_mdb(const unsigned char *addr)
return ENTRYTYPE_MACv4; return ENTRYTYPE_MACv4;
if (addr[0] == 0x33 && addr[1] == 0x33) if (addr[0] == 0x33 && addr[1] == 0x33)
return ENTRYTYPE_MACv6; return ENTRYTYPE_MACv6;
return ENTRYTYPE_NORMAL; return ENTRYTYPE_LOCKED;
} }
static int ocelot_mdb_get_pgid(struct ocelot *ocelot, static int ocelot_mdb_get_pgid(struct ocelot *ocelot,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册