Thread (13 messages) flat view 13 messages, 4 authors, 2021-01-18

Re: [PATCH iproute2] iplink: work around rtattr length limits for IFLA_VFINFO_LIST

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-01-15 23:54:08

On Fri, 15 Jan 2021 14:59:50 -0800 Edwin Peer wrote:
The maximum possible length of an RTNL attribute is 64KB, but the
nested VFINFO list exceeds this for more than about 220 VFs (each VF
consumes approximately 300 bytes, depending on alignment and optional
fields). Exceeding the limit causes IFLA_VFINFO_LIST's length to wrap
modulo 16 bits in the kernel's nla_nest_end().
Let's add Michal to CC, my faulty memory tells me he was fighting with
this in the past.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help