net/sched: sch_frag: add generic packet fragment support.
Currently kernel tc subsystem can do conntrack in cat_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet over the mtu of target device. This patch add support for a xmit hook to mirred, that gets executed before xmiting the packet. Then, when act_ct gets loaded, it configs that hook. The frag xmit hook maybe reused by other modules. Signed-off-by:wenxu <wenxu@ucloud.cn> Acked-by:
Cong Wang <cong.wang@bytedance.com> Acked-by:
Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
Showing
- include/net/act_api.h 6 additions, 0 deletionsinclude/net/act_api.h
- include/net/sch_generic.h 2 additions, 0 deletionsinclude/net/sch_generic.h
- net/sched/Makefile 1 addition, 0 deletionsnet/sched/Makefile
- net/sched/act_api.c 16 additions, 0 deletionsnet/sched/act_api.c
- net/sched/act_ct.c 3 additions, 0 deletionsnet/sched/act_ct.c
- net/sched/act_mirred.c 1 addition, 1 deletionnet/sched/act_mirred.c
- net/sched/sch_frag.c 150 additions, 0 deletionsnet/sched/sch_frag.c
Please register or sign in to comment