]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: fix rtnl message size computation for XDP
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 15 Nov 2016 10:16:35 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 03:40:07 +0000 (22:40 -0500)
commit689711103f6e217450cdd22c9258cdc0029e1273
tree7ca9875d19d7f4f010c020ca053252f88e8e014a
parent35df2f79c012d28c3e950b15be567ea3d8f72b68
rtnetlink: fix rtnl message size computation for XDP

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: 071122983756 ("rtnl: add option for setting link xdp prog")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Brenden Blanco <bblanco@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c