]> git.proxmox.com Git - mirror_ovs.git/commit - lib/netdev-tc-offloads.c
lib/netdev-tc-offloads: Fix frag first/later translation
authorRoi Dayan <roid@mellanox.com>
Sun, 25 Mar 2018 09:11:48 +0000 (12:11 +0300)
committerSimon Horman <simon.horman@netronome.com>
Thu, 29 Mar 2018 13:14:44 +0000 (15:14 +0200)
commit45a60c21fc17ba31199fa800cdce92cc1f17f06b
tree5a30a8253c86019b7bb0151c557e6299b318e74a
parent4299145c10953b5ba125ba2a95caa18e554f3f85
lib/netdev-tc-offloads: Fix frag first/later translation

Fragment mask (any and later) always exists so we need to test
for FLOW_NW_FRAG_LATER only if the state is FLOW_NW_FRAG_ANY.
Before this fix we could pass frag no and first at the same time to TC
which is also not tested there for bad frag state.
This fix make sure we only pass frag first/later if is frag.

Fixes: 83e866067ea6 ("netdev-tc-offloads: Add support for IP fragmentation")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netdev-tc-offloads.c