From: Flavio Leitner <[email protected]>

Upstream commit:
    commit 17c357efe5eceebdc3971a48b3d4d61a03c1178b
    Author: Flavio Leitner <[email protected]>
    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 <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>

CC: Flavio Leitner <[email protected]>
Signed-off-by: Greg Rose <[email protected]>
Acked-by: Flavio Leitner <[email protected]>
---
 datapath/conntrack.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/datapath/conntrack.c b/datapath/conntrack.c
index c6e731b..952b6ad 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;
 }
 
-- 
1.8.3.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to