summaryrefslogtreecommitdiff
path: root/net/openvswitch
diff options
context:
space:
mode:
authorFlavio Leitner <fbl@redhat.com>2018-09-28 20:51:28 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-05 07:45:16 +0300
commit17c357efe5eceebdc3971a48b3d4d61a03c1178b (patch)
tree38e146f1f6ea635ab9f57ae5bd8a1f6e6b5bb7ee /net/openvswitch
parent508646aa2ba57cea501e0300468f84d5cc3dd8cd (diff)
downloadlinux-17c357efe5eceebdc3971a48b3d4d61a03c1178b.tar.xz
openvswitch: load NAT helper
Load the respective NAT helper module if the flow uses it. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/conntrack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c
index 0aeb34c6389d..35ae64cbef33 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;
}