diff options
author | Flavio Leitner <fbl@redhat.com> | 2018-09-28 13:51:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-05 00:45:16 -0400 |
commit | 17c357efe5eceebdc3971a48b3d4d61a03c1178b (patch) | |
tree | 38e146f1f6ea635ab9f57ae5bd8a1f6e6b5bb7ee | |
parent | 508646aa2ba57cea501e0300468f84d5cc3dd8cd (diff) |
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.c | 4 |
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, | |||
1312 | 1312 | ||
1313 | rcu_assign_pointer(help->helper, helper); | 1313 | rcu_assign_pointer(help->helper, helper); |
1314 | info->helper = helper; | 1314 | info->helper = helper; |
1315 | |||
1316 | if (info->nat) | ||
1317 | request_module("ip_nat_%s", name); | ||
1318 | |||
1315 | return 0; | 1319 | return 0; |
1316 | } | 1320 | } |
1317 | 1321 | ||