iplink: report tso_max_size and tso_max_segs
Subsystems (2)
PATCH 1/1 iplink: report tso_max_size and tso_max_segs
From: Eric Dumazet <[email protected]>
New netlink attributes IFLA_TSO_MAX_SIZE and IFLA_TSO_MAX_SEGS are used to report device TSO limits to user-space.
ip -d link sh dev eth0
...
tso_max_size 65536 tso_max_segs 65535
ip -d link sh dev lo
...
tso_max_size 524280 tso_max_segs 65535
---
This compiles once include/uapi/linux/if_link.h has been synced. It seems iproute2 maintainers prefer to sync the headers in separate patches.
ip/ipaddress.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
ip/ipaddress.c +12 -0
@@ -1219,6 +1219,18 @@ int print_linkinfo(struct nlmsghdr *n, void *arg)"gso_max_segs %u " , rta_getattr_u32(tb[IFLA_GSO_MAX_SEGS])); +if (tb[IFLA_TSO_MAX_SIZE ]) +print_uint (PRINT_ANY , +"tso_max_size" , +"tso_max_size %u " , +rta_getattr_u32 (tb[IFLA_TSO_MAX_SIZE ])); + +if (tb[IFLA_TSO_MAX_SEGS ]) +print_uint (PRINT_ANY , +"tso_max_segs" , +"tso_max_segs %u " , +rta_getattr_u32 (tb[IFLA_TSO_MAX_SEGS ])); +if (tb[IFLA_GRO_MAX_SIZE ]) print_uint(PRINT_ANY, "gro_max_size",
Signature · 1 line
2.36.1.124.g0e6072fb45-goog
This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:
Hello:
This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:
Quoted 10 lines · On Wed, 25 May 2022 08:36:24 -0700 you wrote:
From: Eric Dumazet <[email protected]>
New netlink attributes
IFLA_TSO_MAX_SIZEandIFLA_TSO_MAX_SEGSare used to report device TSO limits to user-space.ip -d link sh dev eth0
...
tso_max_size65536tso_max_segs65535[...]
Here is the summary with links:
- [iproute2] iplink: report tso_max_size and tso_max_segs
https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=2a0541810c85
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html