Skip to contentSkip to conversation

openvswitch: load NAT helper

PATCH Applied Flavio Leitner 2 participants 2 messages Sep 28, 2018 – Oct 5, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openvswitch: load NAT helper

Load the respective NAT helper module if the flow uses it.

---
 net/openvswitch/conntrack.c | 4 ++++
 1 file changed, 4 insertions(+)
net/openvswitch/conntrack.c +4 -0
index 86a75105af1a..7e9a5283e236 100644
@@ -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;
 }
 
Signature · 1 line
2.14.4