Re: [PATCH nf-next] net: pass net_device_path_ctx to dev_fill_forward_path()

Simon Horman <[email protected]>
Newsgroups gmane.linux.network,gmane.linux.ports.arm.kernel,gmane.linux.ports.arm.mediatek,gmane.comp.security.firewalls.netfilter.devel
Message-ID <[email protected]>
On Wed, Aug 05, 2026 at 10:53:09AM +0200, Lorenzo Bianconi wrote:
> Refactor dev_fill_forward_path() to take a struct net_device_path_ctx
> pointer instead of a (dev, daddr) pair, so the caller can build and
> populate the context up front and keep it after the forward path walk.
> 
> This allows additional fields (e.g. vlan and ether_type) to be carried
> in the context and shared with ndo_fill_forward_path implementations,
> instead of being reconstructed on the stack inside the core helper.
> 
> Update the mtk_ppe_offload, airoha_ppe and nf_flow_table_path callers to
> allocate and fill the context before invoking dev_fill_forward_path().
> The network topology resolution behaviour is unchanged.
> 
> This is a preliminary patch to enable HW flowtable offload for IPv4
> over IPv6 tunnels.
> 
> Signed-off-by: Lorenzo Bianconi <[email protected]>

Reviewed-by: Simon Horman <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.