aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlavio Leitner <fbl@redhat.com>2018-09-28 14:51:28 -0300
committerDavid S. Miller <davem@davemloft.net>2018-10-04 21:45:16 -0700
commit17c357efe5eceebdc3971a48b3d4d61a03c1178b (patch)
tree38e146f1f6ea635ab9f57ae5bd8a1f6e6b5bb7ee
parentMerge branch 'bnxt_en-fixes' (diff)
downloadlinux-dev-17c357efe5eceebdc3971a48b3d4d61a03c1178b.tar.xz
linux-dev-17c357efe5eceebdc3971a48b3d4d61a03c1178b.zip
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>
-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;
}