[PATCH] net/tap: fix build with LTO

Stephen Hemminger stephen at networkplumber.org
Tue Sep 23 00:12:09 CEST 2025


On Mon, 22 Sep 2025 09:30:43 +0200
David Marchand <david.marchand at redhat.com> wrote:

> The compiler has trouble understanding that the code is actually pointing
> at the data in the message past the nh struct.
> 
> Update the tap_nlattr_add* helpers and the NLMSG_TAIL macro passing a
> pointer to msg.
> 
> Bugzilla ID: 1511
> Fixes: 7c25284e30c2 ("net/tap: add netlink back-end for flow API")
> Cc: stable at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Acked-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the dev mailing list