summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorwenxu <wenxu@ucloud.cn>2020-07-31 10:45:01 +0800
committerDavid S. Miller <davem@davemloft.net>2020-08-03 15:04:48 -0700
commit038ebb1a713d114d54dbf14868a73181c0c92758 (patch)
treeb97c432cf952c8728871aee893a4af68acc94257 /include/linux
parent530fe9d433b9e60251bb8fdc5dddecbc486a50ef (diff)
downloadlwn-038ebb1a713d114d54dbf14868a73181c0c92758.tar.gz
lwn-038ebb1a713d114d54dbf14868a73181c0c92758.zip
net/sched: act_ct: fix miss set mru for ovs after defrag in act_ct
When openvswitch conntrack offload with act_ct action. Fragment packets defrag in the ingress tc act_ct action and miss the next chain. Then the packet pass to the openvswitch datapath without the mru. The over mtu packet will be dropped in output action in openvswitch for over mtu. "kernel: net2: dropped over-mtu packet: 1528 > 1500" This patch add mru in the tc_skb_ext for adefrag and miss next chain situation. And also add mru in the qdisc_skb_cb. The act_ct set the mru to the qdisc_skb_cb when the packet defrag. And When the chain miss, The mru is set to tc_skb_ext which can be got by ovs datapath. Fixes: b57dc7c13ea9 ("net/sched: Introduce action ct") Signed-off-by: wenxu <wenxu@ucloud.cn> Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/skbuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index fa817a105517..3ad65d4ce085 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -283,6 +283,7 @@ struct nf_bridge_info {
*/
struct tc_skb_ext {
__u32 chain;
+ __u16 mru;
};
#endif