From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Bruce Richardson <bruce.richardson@intel.com>, <dev@dpdk.org>
Cc: <stable@dpdk.org>, Kaiwen Deng <kaiwenx.deng@intel.com>,
Qi Zhang <qi.z.zhang@intel.com>
Subject: Re: [PATCH 1/2] net/ice: check for missing fixed speed setting
Date: Fri, 25 Sep 2026 11:21:54 +0200 [thread overview]
Message-ID: <407bc750-9ea3-4675-bcf2-ddfe27c0eddc@intel.com> (raw)
In-Reply-To: <20260910150817.1521317-2-bruce.richardson@intel.com>
On 9/10/2026 5:08 PM, Bruce Richardson wrote:
> When the user requests a fixed speed for a NIC link, the speeds bitmask
> passed must have a speed value actually set in it, as well as the
> "FIXED" flag. Catch this case and log an error message.
>
> Fixes: 36afbc269081 ("net/ice: support link speed change")
> Cc: stable@dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> drivers/net/intel/ice/ice_ethdev.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
> index 76b8ff0a72..dc955d130b 100644
> --- a/drivers/net/intel/ice/ice_ethdev.c
> +++ b/drivers/net/intel/ice/ice_ethdev.c
> @@ -4936,6 +4936,10 @@ ice_apply_link_speed(struct rte_eth_dev *dev)
> RTE_ETH_LINK_SPEED_100M;
> }
> speed = ice_parse_link_speeds(conf->link_speeds);
> + if (speed == ICE_AQ_LINK_SPEED_UNKNOWN) {
> + PMD_DRV_LOG(ERR, "No valid link speed setting specified");
> + return -EINVAL;
> + }
>
> return ice_phy_conf_link(hw, speed, true);
> }
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
--
Thanks,
Anatoly
next prev parent reply other threads:[~2026-09-25 9:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 15:08 [PATCH 0/2] net/ice: updates for link speed setting Bruce Richardson
2026-09-10 15:08 ` [PATCH 1/2] net/ice: check for missing fixed " Bruce Richardson
2026-09-25 9:21 ` Burakov, Anatoly [this message]
2026-09-10 15:08 ` [PATCH 2/2] net/ice: disable link negotiation for fixed speed selection Bruce Richardson
2026-09-25 9:22 ` Burakov, Anatoly
2026-09-25 12:15 ` [PATCH 0/2] net/ice: updates for link speed setting Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=407bc750-9ea3-4675-bcf2-ddfe27c0eddc@intel.com \
--to=anatoly.burakov@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=kaiwenx.deng@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.