net: add IFLA_TSO_{MAX_SIZE|SEGS} attributes
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2022 18:33:56 +0000 (11:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:18:55 +0000 (10:18 +0100)
commit89527be8d8d672773eeaec910118a6e84fb597e3
treee87e609d72528a22d106358746bf0335b2e83c1a
parent5cf15ce3c8f1ef431dc9fa845c6d1674f630ecd1
net: add IFLA_TSO_{MAX_SIZE|SEGS} attributes

New netlink attributes IFLA_TSO_MAX_SIZE and IFLA_TSO_MAX_SEGS
are used to report to user-space the device TSO limits.

ip -d link sh dev eth1
...
   tso_max_size 65536 tso_max_segs 65535

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_link.h
net/core/rtnetlink.c
tools/include/uapi/linux/if_link.h