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