Commit 24560749 authored by Felix Fietkau's avatar Felix Fietkau Committed by Pablo Neira Ayuso

netfilter: nft_flow_offload: fix offload with pppoe + vlan

When running a combination of PPPoE on top of a VLAN, we need to set
info->outdev to the PPPoE device, otherwise PPPoE encap is skipped
during software offload.

Fixes: 72efd585 ("netfilter: flowtable: add pppoe support")
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent cf2df74e
...@@ -123,7 +123,8 @@ static void nft_dev_path_info(const struct net_device_path_stack *stack, ...@@ -123,7 +123,8 @@ static void nft_dev_path_info(const struct net_device_path_stack *stack,
info->indev = NULL; info->indev = NULL;
break; break;
} }
info->outdev = path->dev; if (!info->outdev)
info->outdev = path->dev;
info->encap[info->num_encaps].id = path->encap.id; info->encap[info->num_encaps].id = path->encap.id;
info->encap[info->num_encaps].proto = path->encap.proto; info->encap[info->num_encaps].proto = path->encap.proto;
info->num_encaps++; info->num_encaps++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment