Class: Nl::Linux::Netdev
- Inherits:
-
Genl::Family
- Object
- Family
- Genl::Family
- Nl::Linux::Netdev
- Defined in:
- nl-linux/generated/nl/linux/netdev.rb
Overview
netdev configuration over generic netlink.
Defined Under Namespace
Modules: AttributeSets, Enums, Flags, Messages, Notifications, Structs Classes: AsyncOperations
Constant Summary collapse
- NAME =
"netdev"- VERSION =
1
Class Method Summary collapse
Instance Method Summary collapse
-
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
-
#do_bind_rx(**args) ⇒ Messages::DoBindRxReply
Bind dmabuf to netdev.
-
#do_bind_tx(**args) ⇒ Messages::DoBindTxReply
Bind dmabuf to netdev for TX.
-
#do_dev_get(**args) ⇒ Messages::DoDevGetReply
Get / dump information about a netdev.
-
#do_napi_get(**args) ⇒ Messages::DoNapiGetReply
Get information about NAPI instances configured on the system.
-
#do_napi_set(**args) ⇒ void
Set configurable NAPI instance settings.
-
#do_page_pool_get(**args) ⇒ Messages::DoPagePoolGetReply
Get / dump information about Page Pools.
-
#do_page_pool_stats_get(**args) ⇒ Messages::DoPagePoolStatsGetReply
Get page pool statistics.
-
#do_queue_create(**args) ⇒ Messages::DoQueueCreateReply
Create a new queue for the given netdevice.
-
#do_queue_get(**args) ⇒ Messages::DoQueueGetReply
Get queue information from the kernel.
-
#dump_dev_get(**args, &block) ⇒ Object
Get / dump information about a netdev.
-
#dump_napi_get(**args, &block) ⇒ Object
Get information about NAPI instances configured on the system.
-
#dump_page_pool_get(**args, &block) ⇒ Object
Get / dump information about Page Pools.
-
#dump_page_pool_stats_get(**args, &block) ⇒ Object
Get page pool statistics.
-
#dump_qstats_get(**args, &block) ⇒ Object
Get / dump fine grained statistics.
-
#dump_queue_get(**args, &block) ⇒ Object
Get queue information from the kernel.
- #subscribe(*groups) ⇒ self
- #unsubscribe(*groups) ⇒ self
Methods inherited from Genl::Family
Class Method Details
.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ Netdev .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object
26 27 28 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 26 def self.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) super end |
Instance Method Details
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
3420 3421 3422 3423 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3420 def async(stream_capacity: nil) return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil? build_async_facade(AsyncOperations, stream_capacity:) end |
#do_bind_rx(**args) ⇒ Messages::DoBindRxReply
Bind dmabuf to netdev
Requires CAP_NET_ADMIN in the user namespace owning the network namespace.
3183 3184 3185 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3183 def do_bind_rx(**args) (:"do", Messages::DoBindRxRequest, Messages::DoBindRxReply, args) end |
#do_bind_tx(**args) ⇒ Messages::DoBindTxReply
Bind dmabuf to netdev for TX
3210 3211 3212 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3210 def do_bind_tx(**args) (:"do", Messages::DoBindTxRequest, Messages::DoBindTxReply, args) end |
#do_dev_get(**args) ⇒ Messages::DoDevGetReply
Get / dump information about a netdev.
3002 3003 3004 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3002 def do_dev_get(**args) (:"do", Messages::DoDevGetRequest, Messages::DoDevGetReply, args) end |
#do_napi_get(**args) ⇒ Messages::DoNapiGetReply
Get information about NAPI instances configured on the system.
3124 3125 3126 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3124 def do_napi_get(**args) (:"do", Messages::DoNapiGetRequest, Messages::DoNapiGetReply, args) end |
#do_napi_set(**args) ⇒ void
This method returns an undefined value.
Set configurable NAPI instance settings.
Requires CAP_NET_ADMIN in the initial user namespace.
3200 3201 3202 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3200 def do_napi_set(**args) (:"do", Messages::DoNapiSetRequest, nil, args) end |
#do_page_pool_get(**args) ⇒ Messages::DoPagePoolGetReply
Get / dump information about Page Pools. Only Page Pools associated by the driver with a net_device can be listed. ifindex will not be reported if the net_device no longer exists.
3030 3031 3032 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3030 def do_page_pool_get(**args) (:"do", Messages::DoPagePoolGetRequest, Messages::DoPagePoolGetReply, args) end |
#do_page_pool_stats_get(**args) ⇒ Messages::DoPagePoolStatsGetReply
Get page pool statistics.
3066 3067 3068 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3066 def do_page_pool_stats_get(**args) (:"do", Messages::DoPagePoolStatsGetRequest, Messages::DoPagePoolStatsGetReply, args) end |
#do_queue_create(**args) ⇒ Messages::DoQueueCreateReply
Create a new queue for the given netdevice. Whether this operation is supported depends on the device and the driver.
Requires CAP_NET_ADMIN in the initial user namespace.
3230 3231 3232 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3230 def do_queue_create(**args) (:"do", Messages::DoQueueCreateRequest, Messages::DoQueueCreateReply, args) end |
#do_queue_get(**args) ⇒ Messages::DoQueueGetReply
Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).
3097 3098 3099 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3097 def do_queue_get(**args) (:"do", Messages::DoQueueGetRequest, Messages::DoQueueGetReply, args) end |
#dump_dev_get(**args) ⇒ Array<Messages::DumpDevGetReply> #dump_dev_get(**args) {|reply| ... } ⇒ void
Get / dump information about a netdev.
3018 3019 3020 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3018 def dump_dev_get(**args, &block) (:"dump", Messages::DumpDevGetRequest, Messages::DumpDevGetReply, args, &block) end |
#dump_napi_get(**args) ⇒ Array<Messages::DumpNapiGetReply> #dump_napi_get(**args) {|reply| ... } ⇒ void
Get information about NAPI instances configured on the system.
3142 3143 3144 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3142 def dump_napi_get(**args, &block) (:"dump", Messages::DumpNapiGetRequest, Messages::DumpNapiGetReply, args, &block) end |
#dump_page_pool_get(**args) ⇒ Array<Messages::DumpPagePoolGetReply> #dump_page_pool_get(**args) {|reply| ... } ⇒ void
Get / dump information about Page Pools. Only Page Pools associated by the driver with a net_device can be listed. ifindex will not be reported if the net_device no longer exists.
3057 3058 3059 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3057 def dump_page_pool_get(**args, &block) (:"dump", Messages::DumpPagePoolGetRequest, Messages::DumpPagePoolGetReply, args, &block) end |
#dump_page_pool_stats_get(**args) ⇒ Array<Messages::DumpPagePoolStatsGetReply> #dump_page_pool_stats_get(**args) {|reply| ... } ⇒ void
Get page pool statistics.
3084 3085 3086 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3084 def dump_page_pool_stats_get(**args, &block) (:"dump", Messages::DumpPagePoolStatsGetRequest, Messages::DumpPagePoolStatsGetReply, args, &block) end |
#dump_qstats_get(**args) ⇒ Array<Messages::DumpQstatsGetReply> #dump_qstats_get(**args) {|reply| ... } ⇒ void
Get / dump fine grained statistics. Which statistics are reported depends on the device and the driver, and whether the driver stores software counters per-queue.
3170 3171 3172 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3170 def dump_qstats_get(**args, &block) (:"dump", Messages::DumpQstatsGetRequest, Messages::DumpQstatsGetReply, args, &block) end |
#dump_queue_get(**args) ⇒ Array<Messages::DumpQueueGetReply> #dump_queue_get(**args) {|reply| ... } ⇒ void
Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).
3115 3116 3117 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3115 def dump_queue_get(**args, &block) (:"dump", Messages::DumpQueueGetRequest, Messages::DumpQueueGetReply, args, &block) end |
#subscribe(*groups) ⇒ self
3427 3428 3429 3430 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3427 def subscribe(*groups) = super # @rbs (*(:mgmt | :page_pool) groups) -> self # @param [Array<:mgmt, :page_pool>] groups # @return [self] |
#unsubscribe(*groups) ⇒ self
3431 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 3431 def unsubscribe(*groups) = super |