On 25 April 2017 at 10:00, Greg Rose <[email protected]> wrote:
> On Tue, 2017-04-25 at 23:26 +0800, Guoshuai Li wrote:
>> In kernel 4.10.0, the function "nf_defrag_ipv6_enable" need
>> parameters "struct net *", so we need call it for each namespace init
>> to load netfilter fragment kmod.
>>
>> Reported-by: Raymond Burkholder <[email protected]>
>> Reported-at: 
>> https://mail.openvswitch.org/pipermail/ovs-dev/2017-April/331411.html
>> Signed-off-by: Guoshuai Li <[email protected]>
>
> Compile tested and looks OK to me.
>
> Reviewed-by: Greg Rose <[email protected]>

Thanks all, I'm considering rolling the following incremental into
this patch, does this make sense?

diff --git a/datapath/linux/compat/ip_fragment.c
b/datapath/linux/compat/ip_fragment.c
index efa86fcfae1b..de08f6c6744e 100644
--- a/datapath/linux/compat/ip_fragment.c
+++ b/datapath/linux/compat/ip_fragment.c
@@ -732,9 +732,7 @@ int rpl_ip_defrag(struct net *net, struct sk_buff
*skb, u32 user)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
static int __net_init ipv4_frags_init_net(struct net *net)
{
-       nf_defrag_ipv4_enable(net);
-
-       return 0;
+       return nf_defrag_ipv4_enable(net);
}
#endif

diff --git a/datapath/linux/compat/nf_conntrack_reasm.c
b/datapath/linux/compat/nf_conntrack_reasm.c
index cb6da6c64e05..5832fead800e 100644
--- a/datapath/linux/compat/nf_conntrack_reasm.c
+++ b/datapath/linux/compat/nf_conntrack_reasm.c
@@ -561,9 +561,7 @@ out_unlock:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
static int nf_ct_net_init(struct net *net)
{
-       nf_defrag_ipv6_enable(net);
-
-       return 0;
+       return nf_defrag_ipv6_enable(net);
}
#endif
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to