Skip to content

Commit

Permalink
tc: Fix mpls bottom of stack bit mask reporting.
Browse files Browse the repository at this point in the history
Fix the reported back value of the bos mask used by the revalidator
threads.

Fixes: 34b1695 ("lib/tc: add single mpls match offload support")
Reported-by: Marcelo Leitner <mleitner@redhat.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
  • Loading branch information
chaudron authored and igsilya committed Feb 2, 2021
1 parent 5ceada0 commit b543d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tc.c
Expand Up @@ -517,7 +517,7 @@ nl_parse_flower_mpls(struct nlattr **attrs, struct tc_flower *flower)
if (attrs[TCA_FLOWER_KEY_MPLS_BOS]) {
bos = nl_attr_get_u8(attrs[TCA_FLOWER_KEY_MPLS_BOS]);
set_mpls_lse_bos(&flower->key.mpls_lse, bos);
set_mpls_lse_ttl(&flower->mask.mpls_lse, 0xff);
set_mpls_lse_bos(&flower->mask.mpls_lse, 0xff);
}

if (attrs[TCA_FLOWER_KEY_MPLS_TC]) {
Expand Down

0 comments on commit b543d32

Please sign in to comment.