Skip to content

Commit

Permalink
netdev-tc-offloads: Fix parsing SCTP in dump flows
Browse files Browse the repository at this point in the history
After splitting the unions of tcp/udp the sctp was forgotten
when parsing flower back to match.

Fixes: 2b1d9fa ("tc: Split IPs and transport layer ports unions in flower struct")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Simon Horman <simon.horman@netronome.com>
  • Loading branch information
roidayan authored and blp committed Aug 7, 2017
1 parent e656b16 commit a238dbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/netdev-tc-offloads.c
Expand Up @@ -326,6 +326,9 @@ parse_tc_flower_to_match(struct tc_flower *flower,
} else if (key->ip_proto == IPPROTO_UDP) {
match_set_tp_dst_masked(match, key->udp_dst, mask->udp_dst);
match_set_tp_src_masked(match, key->udp_src, mask->udp_src);
} else if (key->ip_proto == IPPROTO_SCTP) {
match_set_tp_dst_masked(match, key->sctp_dst, mask->sctp_dst);
match_set_tp_src_masked(match, key->sctp_src, mask->sctp_src);
}
}

Expand Down

0 comments on commit a238dbb

Please sign in to comment.