diff options
| author | Jakub Kicinski <[email protected]> | 2023-11-26 23:07:34 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-11-28 14:48:39 +0000 |
| commit | 950ab53b77ab829defeb22bc98d40a5e926ae018 (patch) | |
| tree | cee2f76b7af83d1c384afb8ddf9406f61347fda3 /net/core/page_pool.c | |
| parent | net: page_pool: add nlspec for basic access to page pools (diff) | |
| download | kernel-950ab53b77ab829defeb22bc98d40a5e926ae018.tar.gz kernel-950ab53b77ab829defeb22bc98d40a5e926ae018.zip | |
net: page_pool: implement GET in the netlink API
Expose the very basic page pool information via netlink.
Example using ynl-py for a system with 9 queues:
$ ./cli.py --no-schema --spec netlink/specs/netdev.yaml \
--dump page-pool-get
[{'id': 19, 'ifindex': 2, 'napi-id': 147},
{'id': 18, 'ifindex': 2, 'napi-id': 146},
{'id': 17, 'ifindex': 2, 'napi-id': 145},
{'id': 16, 'ifindex': 2, 'napi-id': 144},
{'id': 15, 'ifindex': 2, 'napi-id': 143},
{'id': 14, 'ifindex': 2, 'napi-id': 142},
{'id': 13, 'ifindex': 2, 'napi-id': 141},
{'id': 12, 'ifindex': 2, 'napi-id': 140},
{'id': 11, 'ifindex': 2, 'napi-id': 139},
{'id': 10, 'ifindex': 2, 'napi-id': 138}]
Reviewed-by: Eric Dumazet <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/page_pool.c')
0 files changed, 0 insertions, 0 deletions
