[ovs-git] [openvswitch/ovs] eff6b5: lib/tc: fix parse act pedit for tos rewrite
Simon Horman
noreply at github.com
Fri Dec 4 06:36:37 UTC 2020
Branch: refs/heads/branch-2.14
Home: https://github.com/openvswitch/ovs
Commit: eff6b57bf211763a394fe3f5c6a879cf830c6257
https://github.com/openvswitch/ovs/commit/eff6b57bf211763a394fe3f5c6a879cf830c6257
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