aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2017-02-17 00:56:11 +0000
committerDavid S. Miller <[email protected]>2017-02-17 19:56:11 +0000
commit025331df34f6722f86b467cb13a69326444ab1bc (patch)
tree30471bb6e7f42f3ffe8ce21af74ee3ea80aab88e /net/ipv4/tcp_output.c
parentnet: qlogic: netxen: use new api ethtool_{get|set}_link_ksettings (diff)
downloadkernel-025331df34f6722f86b467cb13a69326444ab1bc.tar.gz
kernel-025331df34f6722f86b467cb13a69326444ab1bc.zip
rtnl: don't account unused struct ifla_port_vsi in rtnl_port_size
When allocating rtnl dump messages, struct ifla_port_vsi is never dumped, so we can save header plus payload in rtnl_port_size(). Infact, attribute IFLA_PORT_VSI_TYPE and struct ifla_port_vsi are not used anywhere in the kernel. We only need to keep the nla policy should applications in user space be filling this out. Same NLA_BINARY issue exists as was fixed in 364d5716a7ad ("rtnetlink: ifla_vf_policy: fix misuses of NLA_BINARY") and others, but then again IFLA_PORT_VSI_TYPE is not used anywhere, so just add a comment that it's unused. Signed-off-by: Daniel Borkmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions