]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Make sja1105_is_link_local not match meta frames
authorVladimir Oltean <olteanv@gmail.com>
Sat, 8 Jun 2019 12:04:38 +0000 (15:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2019 22:20:40 +0000 (15:20 -0700)
commit1f0883746bf0ebe526134cc10384537ca4a88cfa
treef011a19f732bb25b47c21251b70eb4affe4cf100
parentfb2670ffac79e452ba3d8b0c5cba510ea1b84996
net: dsa: sja1105: Make sja1105_is_link_local not match meta frames

Although meta frames are configured to be sent at SJA1105_META_DMAC
(01-80-C2-00-00-0E) which is a multicast MAC address that would also be
trapped by the switch to the CPU, were it to receive it on a front-panel
port, meta frames are conceptually not link-local frames, they only
carry their RX timestamps.

The choice of sending meta frames at a multicast DMAC is a pragmatic
one, to avoid installing an extra entry to the DSA master port's
multicast MAC filter.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_sja1105.c