🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Antonio Quartulli Tue, 01 Dec 2026 00:34
Re: [RFC PATCH net-next 7/9] netdevsim: add a TX reference provider for AMT relay offload
#24869
Author: Antonio Quartulli
Date: Tue, 01 Dec 2026 00:34
36 lines
10849 bytes
On Sat, Nov 07, 2026 at 06:44:28PM +0000, Omar Ramadan wrote:
> +	depends on AMT || AMT=n

> +ifneq ($(CONFIG_AMT),)
> +netdevsim-objs += amt.o
> +endif

Whenever CONFIG_AMT is set, this changes netdevsim for everyone:
- netdevsim.ko links against amt.ko, so every netdevsim selftest loads
  amt;
- every PF port registers a provider and gets an amt/ debugfs
  directory;
- every device gains five devlink resources and an "amt" health
  reporter, which changes the "devlink resource show" and health output
  that existing tests see.

Please make it opt-in, for example a per-device debugfs knob that
creates the provider on demand (?)

> +static u64 nsim_dev_amt_cmdq_occ_get(void *priv)
> +{
> +	return atomic_read(&((struct nsim_dev *)priv)->amt.cmdq);
> +}

Command-queue occupancy isn't a resource with a size. Also, these
counters are per device while the tables they count are per port and
per binding.

The copies are built by amt_offload_encap_xmit(), i.e. by amt itself,
so this provider validates the bookkeeping, not anything hardware would
do (see 4/9).


Regards,
Antonio
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads