diff mbox series

openvswitch: load NAT helper

Message ID 20180928175128.13126-1-fbl@redhat.com
State Accepted, archived
Delegated to: David Miller
Headers show
Series openvswitch: load NAT helper | expand

Commit Message

Flavio Leitner Sept. 28, 2018, 5:51 p.m. UTC
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(+)

Comments

David Miller Oct. 5, 2018, 4:55 a.m. UTC | #1
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.
diff mbox series

Patch

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;
 }