mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
openvswitch: Replace removed NF_NAT_NEEDED with IS_ENABLED(CONFIG_NF_NAT)
Commit4806e97572("netfilter: replace NF_NAT_NEEDED with IS_ENABLED(CONFIG_NF_NAT)") removed CONFIG_NF_NAT_NEEDED, but a new user popped up afterwards. Fixes:fec9c271b8("openvswitch: load and reference the NAT helper.") Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Florian Westphal <[email protected]> Acked-by: Flavio Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
19e4e76806
commit
f319ca6557
1 changed files with 2 additions and 2 deletions
|
|
@ -1322,7 +1322,7 @@ static int ovs_ct_add_helper(struct ovs_conntrack_info *info, const char *name,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NF_NAT_NEEDED
|
||||
#if IS_ENABLED(CONFIG_NF_NAT)
|
||||
if (info->nat) {
|
||||
ret = nf_nat_helper_try_module_get(name, info->family,
|
||||
key->ip.proto);
|
||||
|
|
@ -1811,7 +1811,7 @@ void ovs_ct_free_action(const struct nlattr *a)
|
|||
static void __ovs_ct_free_action(struct ovs_conntrack_info *ct_info)
|
||||
{
|
||||
if (ct_info->helper) {
|
||||
#ifdef CONFIG_NF_NAT_NEEDED
|
||||
#if IS_ENABLED(CONFIG_NF_NAT)
|
||||
if (ct_info->nat)
|
||||
nf_nat_helper_put(ct_info->helper);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue