[ovs-git] [openvswitch/ovs] 71d0c0: lib/tc: fix parse act pedit for tos rewrite
Simon Horman
noreply at github.com
Fri Dec 4 06:36:39 UTC 2020
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 71d0c0d8b4d8bf01cb5367aabc5ceadba1f8ce61
https://github.com/openvswitch/ovs/commit/71d0c0d8b4d8bf01cb5367aabc5ceadba1f8ce61
Author: wenxu <wenxu at ucloud.cn>
Date: 2020-12-04 (Fri, 04 Dec 2020)
Changed paths:
M lib/tc.c
Log Message:
-----------
lib/tc: fix parse act pedit for tos rewrite
Check overlap between current pedit key, which is always 4 bytes
(range [off, off + 3]), and a map entry in flower_pedit_map
sf = ROUND_DOWN(mf, 4) (range [sf|mf, (mf + sz - 1)|ef]).
So for the tos the rewite the off + 3(3) is greater than mf,
and should less than ef(4) but not mf+sz(2).
Signed-off-by: wenxu <wenxu at ucloud.cn>
Signed-off-by: Simon Horman <simon.horman at netronome.com>
More information about the git
mailing list