Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp593147lqi; Thu, 7 Mar 2024 06:26:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXXvIz5YlhmwSvlaLvr8u69clxOfFXUdaBF8aFb/4AEvd58MFJpVSIibbQV8gbyRwIZQGqxIEDHLHwcpEO7C3tNY0tVXagzopHQTTlgSQ== X-Google-Smtp-Source: AGHT+IEX2VAww6jiQe2YDoj3SiQ2Gxo1K2dLui53B7fsZAUHPG/pnlN4hcRRtithDdKz3h8kmbJr X-Received: by 2002:aa7:cd0a:0:b0:567:f511:37ea with SMTP id b10-20020aa7cd0a000000b00567f51137eamr3350038edw.13.1709821589301; Thu, 07 Mar 2024 06:26:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709821589; cv=pass; d=google.com; s=arc-20160816; b=0Anyq8dDsXqDcgSg0qSq44yvdplxoUkL6PyV4bCZReu8jCm79TuUWMJserJq+cd8hi uFzPjmr8/6jdlKpjLrkpkBDdDp92Kmnl/ft3SpY40OWA+rOhyHECFQE3KI3qKo1Zf4kG RGSXz+67JZRs8JhHjOEjsvGbGx7io0XTN3VneM+wxEn6PLxuINHZEazywej7Xrbogs71 LA9P2gfovGBo+253ol8C4qkDt1T07wtzp5YHrM8+OfIPsjgXtqrFK/3tPgViXjND9wbH JiwmV9EzvyJGY1ugJh/w8pKKNL85I70p+fhldCXHAfNEnIqs3GDDp1cAKALKUkfYv6KR ebxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yMrD5Wxs5PDkGXlVNDeOqSMgdbBP8Z7tpc4n9PJoZbA=; fh=F78XA3cmnvmSScS0spqzGyuJCuZovLJdYI3Kmxut1kk=; b=Cguy0hgZh2zhp32+9ys7kF1N3xpkW8tMuEXtiPF3H7e22vj/UcnkhviVgcBCfnxwK0 nmGRjFsVZfFiYjPmsEm/0WXc3zPFWC25BYzie4SC0/4FCjjfyOy/eJXAps6aHRZxZr3y c2mV0b9WtVBRsmCslqsPTzMxPk0iCtLKyOMPmqCTpTvbl1Hg36x+CnukPsfUdpkGUV7U W+z0pA0aNRc4E2znq9q21tiYhAVxfbl7rCX+8YCbVspRf3H7168NGYnsba5/lHoYLYmQ zsG6Po4GJNQ9w2CkNMDliRLFrtepdB7drUSITC6vy5S5I2Joz9q8Nf44ngMPXtW8hSyi NgwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aKTV4t7B; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q32-20020a05640224a000b005670a98f9c8si6587eda.467.2024.03.07.06.26.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 06:26:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aKTV4t7B; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DF29F1F2610F for ; Thu, 7 Mar 2024 14:26:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 547A512EBE5; Thu, 7 Mar 2024 14:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aKTV4t7B" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E040512DDB3; Thu, 7 Mar 2024 14:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709821473; cv=none; b=dc+9Sa6a18dSuVJRaQLwOwmrbRbuVcrqzy+vVXKzxTGVodwbQji0gwapTykruhx03N1yNCJ79ee7iwDcuj8pdL5T/wRZK3kCNODkD1xWizpaCdMBaFqYMEv6vbOyanqCPR+wLOfW7o2HUMWkSSLWJhfenB0KcdoFRgRzxZnHAHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709821473; c=relaxed/simple; bh=xg1eOt0wglIkaWOSwgLrDSJpQ58XHwZw41RAzy80U4A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=j9+YqdHhgn+Snn5C/AW4/CLRUWJmp7TcrH4u9xsO5bAortyPO09zFgnkBhItDklI1e8Fg7ZRRix0bJenr16u0ijYNEgkI90yyxdb2REHehNNL7KJs4IDSUHc6y459CjGzyXZvySMa+W5VtLoi145GMuvr2hUVcuQtic1bsJCd/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aKTV4t7B; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5682360e095so269047a12.1; Thu, 07 Mar 2024 06:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709821470; x=1710426270; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yMrD5Wxs5PDkGXlVNDeOqSMgdbBP8Z7tpc4n9PJoZbA=; b=aKTV4t7BIknIZvmH+S4QztIn1wAyhKXVolMSsYEYClnI/NaWO5gtO3k873ShQ0zxbZ 7bosmtFl6vIMyDJb7gLzIASKV6nGxlf9N9LWRjTgO0Bmha2ZrCnqxkLBKr1ZzH9+T3j8 fwxPre/BtAE01MzYN4d89tLG1Thfx99UXzaqY56jPrTgQoRK5zIXBqKEX3LXPcdOycsG K95liKQkO3pz3h5iSDmt1kUj2j2g9gxN190vwHh4cH2OwXBgN1j4U91TDPA2LDRFcQtA rgPDsPXTBs9DR8jjd8TxxGn9kKmQelNGgY4/D9NawJ8YZNSI7pVpbOL9ReGGm51Aofh5 3wfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709821470; x=1710426270; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yMrD5Wxs5PDkGXlVNDeOqSMgdbBP8Z7tpc4n9PJoZbA=; b=LSZJ+zg9dyb1QKME6o9TwMF6ai6zOYTRf2ANmqdtVQSXyWb1/IRujUlcyyBcD7Zfax I+nG/N+4p+/LJ7EJeQVzC8w8B5AVSUiYHepGi6GTH39sbeV6s/NQRpzLOxIWh4zCP6TQ IqEv22dA3ZOG1h3IO56nBVusAFEAgfv5ETYkIB58bnqJIAw+hjOG/o/uQWNIpqKHmM/t elVsNpIsUZ4MjoSNshW9GUPOnJyY1Qt9tYDgX0PXgdpDxfFl739MM41f5D7EanErEZTI VoBtU8Snjy+mx6Hz7TGZTS5nFtRY22pyApC5oml3ki/RUdRRj3nJWY82N6+fuibRm18A sixA== X-Forwarded-Encrypted: i=1; AJvYcCWfDi66S8nHPqo22NUh4OwlIjFfHTPARO3SpmZAr3QWUT7PgVu9k1T8u2DtmpYSh7vqP6Qz5MicR+Wrqm6Vhyb4bTieTeVP4aa+yOhYsyp0WuLs6u2hfHVw6AdGMarxPsJ04emW0grHiY+hLqiIe6+FxTTfbSjT2/hm X-Gm-Message-State: AOJu0YzxEsob8wgqsqbu/aNopwRLRmPtas6YzkC8ydUzT7GLdjn+QJok eFuD/KBqCKiJiFust7pSWC0kZllMtvghhnBjvRyxpKQDcSttKrE2 X-Received: by 2002:a17:906:4818:b0:a45:2fc4:f25d with SMTP id w24-20020a170906481800b00a452fc4f25dmr8617282ejq.12.1709821469653; Thu, 07 Mar 2024 06:24:29 -0800 (PST) Received: from pc-de-david.. ([2a04:cec0:102e:977f:c5e6:aa78:de82:531]) by smtp.gmail.com with ESMTPSA id me12-20020a170906aecc00b00a45af5df0f3sm2371653ejb.112.2024.03.07.06.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 06:24:29 -0800 (PST) From: David Gouarin To: Cc: david.gouarin@thalesgroup.com, David Gouarin , Madalin Bucur , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maciej Fijalkowski , Camelia Groza , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH net v2] dpaa_eth: fix XDP queue index Date: Thu, 7 Mar 2024 15:24:02 +0100 Message-Id: <20240307142402.906681-1-dgouarin@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Make it possible to bind a XDP socket to a queue id. The DPAA FQ Id was passed to the XDP program in the XDP packet metadata which made it unusable with bpf_map_redirect. Instead of the DPAA FQ Id, initialise the XDP rx queue with the channel id. Fixes: d57e57d0cd04 ("dpaa_eth: add XDP_TX support") Signed-off-by: David Gouarin --- v2: add Fixes: in description --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index dcbc598b11c6..988dc9237368 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c @@ -1154,7 +1154,7 @@ static int dpaa_fq_init(struct dpaa_fq *dpaa_fq, bool td_enable) if (dpaa_fq->fq_type == FQ_TYPE_RX_DEFAULT || dpaa_fq->fq_type == FQ_TYPE_RX_PCD) { err = xdp_rxq_info_reg(&dpaa_fq->xdp_rxq, dpaa_fq->net_dev, - dpaa_fq->fqid, 0); + dpaa_fq->channel, 0); if (err) { dev_err(dev, "xdp_rxq_info_reg() = %d\n", err); return err; -- 2.34.1