mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
net: page_pool: add nlspec for basic access to page pools
Add a Netlink spec in YAML for getting very basic information about page pools. Reviewed-by: Eric Dumazet <edumazet@google.com> Acked-by: Jesper Dangaard Brouer <hawk@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
7cc9e6d77f
commit
839ff60df3
1 changed files with 46 additions and 0 deletions
|
@ -86,6 +86,34 @@ attribute-sets:
|
||||||
See Documentation/networking/xdp-rx-metadata.rst for more details.
|
See Documentation/networking/xdp-rx-metadata.rst for more details.
|
||||||
type: u64
|
type: u64
|
||||||
enum: xdp-rx-metadata
|
enum: xdp-rx-metadata
|
||||||
|
-
|
||||||
|
name: page-pool
|
||||||
|
attributes:
|
||||||
|
-
|
||||||
|
name: id
|
||||||
|
doc: Unique ID of a Page Pool instance.
|
||||||
|
type: uint
|
||||||
|
checks:
|
||||||
|
min: 1
|
||||||
|
max: u32-max
|
||||||
|
-
|
||||||
|
name: ifindex
|
||||||
|
doc: |
|
||||||
|
ifindex of the netdev to which the pool belongs.
|
||||||
|
May be reported as 0 if the page pool was allocated for a netdev
|
||||||
|
which got destroyed already (page pools may outlast their netdevs
|
||||||
|
because they wait for all memory to be returned).
|
||||||
|
type: u32
|
||||||
|
checks:
|
||||||
|
min: 1
|
||||||
|
max: s32-max
|
||||||
|
-
|
||||||
|
name: napi-id
|
||||||
|
doc: Id of NAPI using this Page Pool instance.
|
||||||
|
type: uint
|
||||||
|
checks:
|
||||||
|
min: 1
|
||||||
|
max: u32-max
|
||||||
|
|
||||||
operations:
|
operations:
|
||||||
list:
|
list:
|
||||||
|
@ -120,6 +148,24 @@ operations:
|
||||||
doc: Notification about device configuration being changed.
|
doc: Notification about device configuration being changed.
|
||||||
notify: dev-get
|
notify: dev-get
|
||||||
mcgrp: mgmt
|
mcgrp: mgmt
|
||||||
|
-
|
||||||
|
name: page-pool-get
|
||||||
|
doc: |
|
||||||
|
Get / dump information about Page Pools.
|
||||||
|
(Only Page Pools associated with a net_device can be listed.)
|
||||||
|
attribute-set: page-pool
|
||||||
|
do:
|
||||||
|
request:
|
||||||
|
attributes:
|
||||||
|
- id
|
||||||
|
reply: &pp-reply
|
||||||
|
attributes:
|
||||||
|
- id
|
||||||
|
- ifindex
|
||||||
|
- napi-id
|
||||||
|
dump:
|
||||||
|
reply: *pp-reply
|
||||||
|
config-cond: page-pool
|
||||||
|
|
||||||
mcast-groups:
|
mcast-groups:
|
||||||
list:
|
list:
|
||||||
|
|
Loading…
Add table
Reference in a new issue