From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Joshua Hay <joshua.a.hay@intel.com>
Cc: <intel-wired-lan@lists.osuosl.org>, <netdev@vger.kernel.org>
Subject: Re: [Intel-wired-lan] [PATCH net v2 1/3] idpf: do not enable XDP if queue based scheduling is not supported
Date: Wed, 10 Jun 2026 15:52:14 +0200 [thread overview]
Message-ID: <694ff338-1655-4c19-9f15-596025ddd9b5@intel.com> (raw)
In-Reply-To: <20260602172024.2285947-2-joshua.a.hay@intel.com>
From: Joshua Hay <joshua.a.hay@intel.com>
Date: Tue, 2 Jun 2026 10:20:22 -0700
> The current XDP implementation uses queue based scheduling for its TxQs.
> If the FW does not advertise support for queue based scheduling, do not
> enable XDP. Add the missing capability check at the start of the XDP
> configuration. This will temporarily break XDP while a flow based
> implementation is worked on, as well as while FWs with queue based by
> default are rolled out.
>
> Fixes: 705457e7211f ("idpf: implement XDP_SETUP_PROG in ndo_bpf for splitq")
> Signed-off-by: Joshua Hay <joshua.a.hay@intel.com>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
> ---
> v1->v2: use local extack to use pass either properly initialized
> xdp->extack or NULL to netlink macro.
> ---
> drivers/net/ethernet/intel/idpf/xdp.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/idpf/xdp.c b/drivers/net/ethernet/intel/idpf/xdp.c
> index cbccd4546768..ecec7db4ebc0 100644
> --- a/drivers/net/ethernet/intel/idpf/xdp.c
> +++ b/drivers/net/ethernet/intel/idpf/xdp.c
> @@ -510,6 +510,16 @@ int idpf_xdp(struct net_device *dev, struct netdev_bpf *xdp)
> if (!idpf_is_queue_model_split(vport->dflt_qv_rsrc.txq_model))
> goto notsupp;
>
> + if (!idpf_is_cap_ena(vport->adapter, IDPF_OTHER_CAPS,
> + VIRTCHNL2_CAP_SPLITQ_QSCHED)) {
> + struct netlink_ext_ack *extack = xdp->command == XDP_SETUP_PROG ?
> + xdp->extack : NULL;
xdp->extack is NULL when removing the program? Interesting.
> +
> + NL_SET_ERR_MSG_MOD(extack,
> + "Device does not support requested XDP Tx scheduling mode");
> + goto notsupp;
> + }
> +
> switch (xdp->command) {
> case XDP_SETUP_PROG:
> ret = idpf_xdp_setup_prog(vport, xdp);
Thanks,
Olek
next prev parent reply other threads:[~2026-06-10 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 17:20 [Intel-wired-lan][PATCH net v2 0/3] idpf: queue based scheduling fixes Joshua Hay
2026-06-02 17:20 ` [Intel-wired-lan][PATCH net v2 1/3] idpf: do not enable XDP if queue based scheduling is not supported Joshua Hay
2026-06-10 13:52 ` Alexander Lobakin [this message]
2026-06-02 17:20 ` [Intel-wired-lan][PATCH net v2 2/3] idpf: fix next_to_clean data races Joshua Hay
2026-06-02 17:20 ` [Intel-wired-lan][PATCH net v2 3/3] idpf: fix skb datapath queue based scheduling crashes and timeouts Joshua Hay
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=694ff338-1655-4c19-9f15-596025ddd9b5@intel.com \
--to=aleksander.lobakin@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=joshua.a.hay@intel.com \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox