* [PATCH] openvswitch: load NAT helper
@ 2018-09-28 17:51 Flavio Leitner
2018-10-05 4:55 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Flavio Leitner @ 2018-09-28 17:51 UTC (permalink / raw)
To: netfilter-devel, netdev, dev; +Cc: Pravin B Shelar, Flavio Leitner
Load the respective NAT helper module if the flow uses it.
Signed-off-by: Flavio Leitner <fbl@redhat.com>
---
net/openvswitch/conntrack.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c
index 86a75105af1a..7e9a5283e236 100644
--- a/net/openvswitch/conntrack.c
+++ b/net/openvswitch/conntrack.c
@@ -1312,6 +1312,10 @@ static int ovs_ct_add_helper(struct ovs_conntrack_info *info, const char *name,
rcu_assign_pointer(help->helper, helper);
info->helper = helper;
+
+ if (info->nat)
+ request_module("ip_nat_%s", name);
+
return 0;
}
--
2.14.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] openvswitch: load NAT helper
2018-09-28 17:51 [PATCH] openvswitch: load NAT helper Flavio Leitner
@ 2018-10-05 4:55 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-10-05 4:55 UTC (permalink / raw)
To: fbl; +Cc: netfilter-devel, netdev, dev, pshelar
From: Flavio Leitner <fbl@redhat.com>
Date: Fri, 28 Sep 2018 14:51:28 -0300
> Load the respective NAT helper module if the flow uses it.
>
> Signed-off-by: Flavio Leitner <fbl@redhat.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-05 11:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-28 17:51 [PATCH] openvswitch: load NAT helper Flavio Leitner
2018-10-05 4:55 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.