diff options
author | Flavio Leitner <fbl@redhat.com> | 2018-12-13 15:08:24 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-12-15 08:13:26 -0800 |
commit | 15d536e7553428ab5b8121c5ea94b932c820fb1d (patch) | |
tree | b7a0f2f6f269842e9510cce29b7c453148433f40 /datapath | |
parent | d1cf49e9f15d128e3bed00d37021b0c1391b62fb (diff) | |
download | openvswitch-15d536e7553428ab5b8121c5ea94b932c820fb1d.tar.gz |
datapath: load NAT helper
Upstream commit:
commit 17c357efe5eceebdc3971a48b3d4d61a03c1178b
Author: Flavio Leitner <fbl@redhat.com>
Date: Fri Sep 28 14:51:28 2018 -0300
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>
CC: Flavio Leitner <fbl@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'datapath')
-rw-r--r-- | datapath/conntrack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/datapath/conntrack.c b/datapath/conntrack.c index c6e731bf5..952b6ad21 100644 --- a/datapath/conntrack.c +++ b/datapath/conntrack.c @@ -1370,6 +1370,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; } |