Re: [PATCH net] rtnetlink: fix rtnl message size computation for XDP

2016-11-15 Thread David Miller
From: Sabrina Dubroca Date: Tue, 15 Nov 2016 11:16:35 +0100 > rtnl_xdp_size() only considers the size of the actual payload attribute, > and misses the space taken by the attribute used for nesting (IFLA_XDP). > > Fixes: d1fdd9138682 ("rtnl: add option for setting link xdp prog") > Signed-off-by

Re: [PATCH net] rtnetlink: fix rtnl message size computation for XDP

2016-11-15 Thread Brenden Blanco
On Tue, Nov 15, 2016 at 11:16:35AM +0100, Sabrina Dubroca wrote: > rtnl_xdp_size() only considers the size of the actual payload attribute, > and misses the space taken by the attribute used for nesting (IFLA_XDP). > > Fixes: d1fdd9138682 ("rtnl: add option for setting link xdp prog") > Signed-off

[PATCH net] rtnetlink: fix rtnl message size computation for XDP

2016-11-15 Thread Sabrina Dubroca
rtnl_xdp_size() only considers the size of the actual payload attribute, and misses the space taken by the attribute used for nesting (IFLA_XDP). Fixes: d1fdd9138682 ("rtnl: add option for setting link xdp prog") Signed-off-by: Sabrina Dubroca --- net/core/rtnetlink.c | 3 ++- 1 file changed, 2