[PATCH v3] app/testpmd: add explicit link autonegotiation control
Stephen Hemminger
stephen at networkplumber.org
Tue Nov 10 17:59:39 CET 2026
On Tue, 10 Nov 2026 12:16:57 +0000
Bruce Richardson <bruce.richardson at intel.com> wrote:
> When a particular speed was specified for a port in testpmd, the flags
> passed to the underlying API call always included the
> RTE_ETH_LINK_SPEED_FIXED flag. This flag is not a mandatory part of the
> bitmap when setting speeds, and is used to disable autonegotiation.
> It's possible to have a link report only a single speed while
> still have negotiation enabled, so testpmd needs to be extended to
> support setting a speed both with and without the flag.
>
> This patch does so by adding optional "autoneg on|off" setting after
> speed and duplex settings specified by the user. This new option adjusts
> the presence or absence of the FIXED speed bit in the ethdev
> configuration structure "rte_eth_conf.link_speeds" bitmap. For backward
> compatibility, the default value is "autoneg off" for fixed speeds if
> not specified, meaning that the RTE_ETH_LINK_SPEED_FIXED flag is set on
> the speed value by default.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
Applied to next-net and resolved merge conflict and minor docbook whitespace
More information about the dev
mailing list