tools: ynl: add sample for ethtool
authorJakub Kicinski <kuba@kernel.org>
Fri, 9 Jun 2023 21:43:46 +0000 (14:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jun 2023 10:01:03 +0000 (11:01 +0100)
commitf561ff232a6b502bda020ac47200e88f0bc5f98a
tree508cb27d956fa15b0a669116f943a9287323884f
parent2d7be507d65e90099c76631bf0448d0b30f7f203
tools: ynl: add sample for ethtool

Configuring / reading ring sizes and counts is a fairly common
operation for ethtool netlink. Present a sample doing that with
YNL:

$ ./ethtool
Channels:
    enp1s0: combined 1
   eni1np1: combined 1
   eni2np1: combined 1
Rings:
    enp1s0: rx 256 tx 256
   eni1np1: rx 0 tx 0
   eni2np1: rx 0 tx 0

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/ynl/samples/.gitignore
tools/net/ynl/samples/ethtool.c [new file with mode: 0644]