net: dsa: xrs700x: allow HSR/PRP supervision dupes for node_table
authorGeorge McCollister <george.mccollister@gmail.com>
Fri, 4 Jun 2021 16:29:22 +0000 (11:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2021 21:49:28 +0000 (14:49 -0700)
commit1a42624aecba438f1d114430a14b640cdfa51c87
tree5e8a23b9abac193251dd77dfccda72f56064d66c
parentd5a73dcf09010f97ebdff197991f77eb9992f09e
net: dsa: xrs700x: allow HSR/PRP supervision dupes for node_table

Add an inbound policy filter which matches the HSR/PRP supervision
MAC range and forwards to the CPU port without discarding duplicates.
This is required to correctly populate time_in[A] and time_in[B] in the
HSR/PRP node_table. Leave the policy disabled by default and
enable/disable it when joining/leaving hsr.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/xrs700x/xrs700x.c