Skip to contentSkip to conversation

flow_dissector: Add support for HSRv0

PATCH Applied Kurt Kanzenbach 3 participants 4 messages Mar 10, 2022 – Mar 11, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 flow_dissector: Add support for HSRv0

Commit bf08824a0f47 ("flow_dissector: Add support for HSR") added support for HSR within the flow dissector. However, it only works for HSR in version
1. Version 0 uses a different Ether Type. Add support for it.

---
 net/core/flow_dissector.c | 1 +
 1 file changed, 1 insertion(+)
net/core/flow_dissector.c +1 -0
index 34441a32e3be..03b6e649c428 100644
@@ -1283,6 +1283,7 @@ bool __skb_flow_dissect(const struct net *net,
 		break;
 	}
 
+	case htons(ETH_P_PRP):
 	case htons(ETH_P_HSR): {
 		struct hsr_tag *hdr, _hdr;
 
Signature · 1 line
2.30.2
#1 lore raw
Quoted 6 lines · Kurt Kanzenbach

Commit bf08824a0f47 ("flow_dissector: Add support for HSR") added support for HSR within the flow dissector. However, it only works for HSR in version
1. Version 0 uses a different Ether Type. Add support for it.

This observation came up as a result of the fact that HSRv0 is still in actual use, or just for correctness' sake?

Quoted 19 lines
---
 net/core/flow_dissector.c | 1 +
 1 file changed, 1 insertion(+)
net/core/flow_dissector.c +1 -0
index 34441a32e3be..03b6e649c428 100644
@@ -1283,6 +1283,7 @@ bool __skb_flow_dissect(const struct net *net,
 		break;
 	}
 
+	case htons(ETH_P_PRP):
 	case htons(ETH_P_HSR): {
 		struct hsr_tag *hdr, _hdr;
 
Signature · 1 line
2.30.2
#2 lore raw
Quoted 10 lines · Vladimir Oltean
Quoted 6 lines · Kurt Kanzenbach

Commit bf08824a0f47 ("flow_dissector: Add support for HSR") added support for HSR within the flow dissector. However, it only works for HSR in version
1. Version 0 uses a different Ether Type. Add support for it.

This observation came up as a result of the fact that HSRv0 is still in actual use, or just for correctness' sake?

It came up while testing the Linux HSR implementation.

Thanks,
Kurt

#3 lore raw
In reply to Kurt Kanzenbach
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 10 Mar 2022 08:35:05 +0100 you wrote:

Commit bf08824a0f47 ("flow_dissector: Add support for HSR") added support for HSR within the flow dissector. However, it only works for HSR in version
1. Version 0 uses a different Ether Type. Add support for it.

[...]

Here is the summary with links:
- [net-next] flow_dissector: Add support for HSRv0

    https://git.kernel.org/netdev/net-next/c/f65e58440d4f

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html