]> git.proxmox.com Git - mirror_ovs.git/commit
odp-util: Remove unnecessary TOS ECN bits rewrite for tunnels
authorJianbo Liu <jianbol@mellanox.com>
Tue, 1 May 2018 12:36:06 +0000 (12:36 +0000)
committerSimon Horman <simon.horman@netronome.com>
Tue, 1 May 2018 15:14:30 +0000 (17:14 +0200)
commitb51d0390d43773c6271a84b1a1a11535fc2000a6
treead378687a41cf03008cdf16fc04a7343fb032f42
parente5e22dcf8168f0b791b5d922ecc9501ddd5c0039
odp-util: Remove unnecessary TOS ECN bits rewrite for tunnels

For tunnels, TOS ECN bits are never wildcard for the reason that they
are always inherited. OVS will create a rewrite action if we add rule
to modify other IP headers. But it also adds an extra ECN rewrite for
the action because of this ECN un-wildcarding.

It seems no error because the ECN bits to be changed are same in this
case. But as rule can't be offloaded to hardware, the unnecssary ECN
rewrite should be removed.

Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/odp-util.c