]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: xrs700x: check if partner is same as port in hsr join
authorGeorge McCollister <george.mccollister@gmail.com>
Mon, 8 Mar 2021 23:38:22 +0000 (17:38 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2021 00:03:37 +0000 (16:03 -0800)
commit4c7ea516a8ef2792b5a6115f98060e8098288f7a
tree626999887f4003c8586396f52eaabe53b98a87ad
parent454951d799cea182502ece06c4b89f0f8892d52c
net: dsa: xrs700x: check if partner is same as port in hsr join

Don't assign dp to partner if it's the same port that xrs700x_hsr_join
was called with. The partner port is supposed to be the other port in
the HSR/PRP redundant pair not the same port. This fixes an issue
observed in testing where forwarding between redundant HSR ports on this
switch didn't work depending on the order the ports were added to the
hsr device.

Fixes: 85fcb57dffd0 ("net: dsa: xrs700x: add HSR offloading support")
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