diff options
author | Flavio Leitner <fbl@redhat.com> | 2018-09-28 14:51:28 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-04 21:45:16 -0700 |
commit | 17c357efe5eceebdc3971a48b3d4d61a03c1178b (patch) | |
tree | 38e146f1f6ea635ab9f57ae5bd8a1f6e6b5bb7ee /net/openvswitch | |
parent | 508646aa2ba57cea501e0300468f84d5cc3dd8cd (diff) | |
download | linux-17c357efe5eceebdc3971a48b3d4d61a03c1178b.tar.bz2 |
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.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, rcu_assign_pointer(help->helper, helper); info->helper = helper; + + if (info->nat) + request_module("ip_nat_%s", name); + return 0; } |