Skip to content

Commit

Permalink
flow_dissector: Add support for HSRv0
Browse files Browse the repository at this point in the history
Commit bf08824 ("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.

Reported-by: Anthony Harivel <anthony.harivel@linutronix.de>
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kurt Kanzenbach authored and David S. Miller committed Mar 11, 2022
1 parent bf2b834 commit f65e584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/core/flow_dissector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f65e584

Please sign in to comment.