Skip to content

Commit

Permalink
openvswitch: load NAT helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Flavio Leitner authored and David S. Miller committed Oct 5, 2018
1 parent 508646a commit 17c357e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/openvswitch/conntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 17c357e

Please sign in to comment.