From: "Wenzel, Marco" <Marco.Wenzel@a-eberle.de>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: HSR/PRP sequence counter issue with Cisco Redbox
Date: Wed, 27 Jan 2021 12:15:34 +0000 [thread overview]
Message-ID: <69ec2fd1a9a048e8b3305a4bc36aad01@EXCH-SVR2013.eberle.local> (raw)
Hi,
we have figured out an issue with the current PRP driver when trying to communicate with Cisco IE 2000 industrial Ethernet switches in Redbox mode. The Cisco always resets the HSR/PRP sequence counter to "1" at low traffic (<= 1 frame in 400 ms). It can be reproduced by a simple ICMP echo request with 1 s interval between a Linux box running with PRP and a VDAN behind the Cisco Redbox. The Linux box then always receives frames with sequence counter "1" and drops them. The behavior is not configurable at the Cisco Redbox.
I fixed it by ignoring sequence counters with value "1" at the sequence counter check in hsr_register_frame_out ():
diff --git a/net/hsr/hsr_framereg.c b/net/hsr/hsr_framereg.c
index 5c97de459905..630c238e81f0 100644
--- a/net/hsr/hsr_framereg.c
+++ b/net/hsr/hsr_framereg.c
@@ -411,7 +411,7 @@ void hsr_register_frame_in(struct hsr_node *node, struct hsr_port *port,
int hsr_register_frame_out(struct hsr_port *port, struct hsr_node *node,
u16 sequence_nr)
{
- if (seq_nr_before_or_eq(sequence_nr, node->seq_out[port->type]))
+ if (seq_nr_before_or_eq(sequence_nr, node->seq_out[port->type]) && (sequence_nr != 1))
return 1;
node->seq_out[port->type] = sequence_nr;
Do you think this could be a solution? Should this patch be officially applied in order to avoid other users running into these communication issues?
Thanks
Marco Wenzel
next reply other threads:[~2021-01-27 12:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-27 12:15 Wenzel, Marco [this message]
2021-01-28 23:11 ` HSR/PRP sequence counter issue with Cisco Redbox George McCollister
2021-02-15 12:29 ` AW: " Wenzel, Marco
2021-02-15 16:48 ` George McCollister
2021-02-17 13:14 ` AW: " Wenzel, Marco
2021-02-17 17:41 ` George McCollister
2021-02-18 15:01 ` [PATCH] net: hsr: add support for EntryForgetTime Marco Wenzel
2021-02-18 17:06 ` George McCollister
2021-02-19 8:27 ` AW: " Wenzel, Marco
2021-02-19 13:40 ` George McCollister
2021-02-17 19:51 ` HSR/PRP sequence counter issue with Cisco Redbox Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=69ec2fd1a9a048e8b3305a4bc36aad01@EXCH-SVR2013.eberle.local \
--to=marco.wenzel@a-eberle.de \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox