openvswitch: take into account de-fragmentation/gso_size in execute_check_pkt_len
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 23 Jun 2020 16:33:15 +0000 (18:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 21:34:58 +0000 (14:34 -0700)
commit17843655708e1941c0653af3cd61be6948e36f43
treefc7df6f5773112c10ada2f8df8a4310a7271b31c
parent0275875530f692c725c6f993aced2eca2d6ac50c
openvswitch: take into account de-fragmentation/gso_size in execute_check_pkt_len

ovs connection tracking module performs de-fragmentation on incoming
fragmented traffic. Take info account if traffic has been de-fragmented
in execute_check_pkt_len action otherwise we will perform the wrong
nested action considering the original packet size. This issue typically
occurs if ovs-vswitchd adds a rule in the pipeline that requires connection
tracking (e.g. OVN stateful ACLs) before execute_check_pkt_len action.
Moreover take into account GSO fragment size for GSO packet in
execute_check_pkt_len routine

Fixes: 4d5ec89fc8d14 ("net: openvswitch: Add a new action check_pkt_len")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/actions.c