Skip to content

Commit 17c357e

Browse files
fleitnerdavem330
authored andcommitted
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>
1 parent 508646a commit 17c357e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

net/openvswitch/conntrack.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,10 @@ static int ovs_ct_add_helper(struct ovs_conntrack_info *info, const char *name,
13121312

13131313
rcu_assign_pointer(help->helper, helper);
13141314
info->helper = helper;
1315+
1316+
if (info->nat)
1317+
request_module("ip_nat_%s", name);
1318+
13151319
return 0;
13161320
}
13171321

0 commit comments

Comments
 (0)