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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user