2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-21 14:49:41 +00:00

lib/tc: Support matching on ip tos

Add the missing code to match on ip tos when dealing
with the TC data-path.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
This commit is contained in:
Or Gerlitz
2018-07-31 13:40:37 +03:00
committed by Simon Horman
parent b4496fc9d5
commit dfa2ccdba8
5 changed files with 23 additions and 2 deletions

View File

@@ -945,6 +945,13 @@ match_set_nw_ttl(struct match *match, uint8_t nw_ttl)
match->flow.nw_ttl = nw_ttl;
}
void
match_set_nw_tos_masked(struct match *match, uint8_t nw_tos, uint8_t mask)
{
match->flow.nw_tos = nw_tos & mask;
match->wc.masks.nw_tos = mask;
}
void
match_set_nw_ttl_masked(struct match *match, uint8_t nw_ttl, uint8_t mask)
{