Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp143094lqg; Wed, 10 Apr 2024 19:41:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgPp/fTSECt3P2BUncagSmPZH1JRYGllHNpZlo2EsQLE5kBC5mnA0jOqr2ipX9gOEcoJeQJnYiRK/XPbkBOnWXRCggWfFd4P17BfpM1A== X-Google-Smtp-Source: AGHT+IHfm7a1ZW/x5Cub6CWLztI7Iuq4uSw2LAVP28MneeusakXfdh4cCoEYGc973NrPUfGHKq9B X-Received: by 2002:ac8:5ad4:0:b0:434:f1f5:3c4d with SMTP id d20-20020ac85ad4000000b00434f1f53c4dmr5073206qtd.2.1712803269731; Wed, 10 Apr 2024 19:41:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712803269; cv=pass; d=google.com; s=arc-20160816; b=QL/IM6RcRhNIVbR0fYy7eqHjth7YCRpZJfjCgm3E1F8YHAj+KYw+TxU+P4pqx8VYhU lVVdzALBkzaDNi8SLFmsve+Q54UVOvRnq/Y1w5ULpK0PcxhBKejLb4TIvF/sobgPrgLm 0rh6UiwyhTOQnx3pH32JkuxnZAHdCQ8lOaZH336R9JAWbc5FPmfUH99Enw0/jtEd22nN O18JBo6Jm4if4kBY1h7fvLfUwxCJzyq+ra/Od/EqWm5mu3HsJpgQhxQAA5eGhiKNf6bu Lj7i62cIBgTdcKEMe8YW8gknVFdsd/thcfFU1rPcA79MZW5BOklUpOMEIaHguPSQ0abj pMbw== 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 :subject:cc:to:from:date:dkim-signature; bh=bNcVx6brCd61qxuBv7/8VM/5Hg9/XDdSKS5xU25kd8c=; fh=sZ12SYupFSTDJZxEeUptdif7iQ8soR9qYEAA1LvgO2A=; b=JjwGK/+C2HvjMNkxeOZMc0mADWaRa3je2Yoxhrf1/QvFXkWThOqZwB0Hf7K3Y0Enhh MFn6uBKiTOOcFwXa5qJZQPqQs9mxLoDJJ5MTEQ5lRMF4ZGpAnm+vJKIc1bNMoXnieTxr FIBQUAngPV5MDhtIw1XbzPjX4AxFmdP//NIhlIGjRsWWeQcDFvledi5VPvMHz++0mUdo z3eBacEcUXF5o18zLzIJ9iUSM3vVK7NIvaEJ86QQkvIzLVCQ6DfYmdjOr9g0/6KySUOQ FtL8/IpDleqMnFVei7Je/eyQ6in0wITKhErpiQbbrpgNkfXlyoUVstfaFb5wNdmKPZVd bcvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CCLMROu9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p3-20020a05622a00c300b004317c3ac9d5si601877qtw.264.2024.04.10.19.41.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 19:41:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CCLMROu9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7243A1C22B6E for ; Thu, 11 Apr 2024 02:41:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC2A613B2BD; Thu, 11 Apr 2024 02:40:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CCLMROu9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09BF313AD2E; Thu, 11 Apr 2024 02:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712803258; cv=none; b=O2rvKMpldb3ThP7fgS9rzYC5PUdyy/HBbodb6Oa400U334C87IeORHdK80Y+/9FDb2HOSaP+ZsDk7ADi6r2xazA6+Ns1ThtX3APK1fqDQ6SPs38BZmcN0sgdOsYZjHVM+Z2pqjrvgCLILcpnn7kfXuMdSf0qt2CjWGKrwPERO7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712803258; c=relaxed/simple; bh=Nbl2is2U3WrrBfLIDYACMv1pv0cSrz85+RNvb8hYl/o=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=c2QEkimqQ0Y0D2NTC+Cfg0tM/VewpJjBzTm8qNBKBV7CvkyBetzd31wCknPsHzGyMpR4Ius4pF7VeJVtpiYf7FQJODkIJjco9i685oJPUhsDVoMIfDZRElvzRHXnXrwLTL7cIU+m3AhWDO1DbvKdcDU6ysKXAd9oWXqjBVwvQoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CCLMROu9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 016A7C433C7; Thu, 11 Apr 2024 02:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712803257; bh=Nbl2is2U3WrrBfLIDYACMv1pv0cSrz85+RNvb8hYl/o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CCLMROu97ipfxoLZXQkdGz6B7+EJ7xDeHjXUwaIqE17/hhV4kMbO3XZDWi0TgMhUU yD8A7kqe2e35yzUKy/l+ZxEcq+TW/grmPx7yYPm2t9kPNnno2NGNLG7+kQiX4cCjSL 051gyG5uhSHwHp1/8nXsWoVdOBEMqY8N2G8K9JgMuIrm/2feEMoWhD6zozZYH69KsF K4ov73CRpBrDBLGVsKdk3jX3a2rrTq1eVv0OTZ4rqXpRN0PH6ba5UXmHn2PJeJT2Dh xdy3CyqBcqGZNQ3YdFUFHASc3mLkH8ZZ8NWk18f/+pnXT1mFqZzUcbDnXr6RbciwOS JPYBy5CK3yW+w== Date: Wed, 10 Apr 2024 19:40:55 -0700 From: Jakub Kicinski To: Camelia Groza Cc: David Gouarin , david.gouarin@thalesgroup.com, Madalin Bucur , "David S. Miller" , Eric Dumazet , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Maciej Fijalkowski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH net v4] dpaa_eth: fix XDP queue index Message-ID: <20240410194055.2bc89eeb@kernel.org> In-Reply-To: <20240409093047.5833-1-dgouarin@gmail.com> References: <8edda7aa8ff27cee1b3fa60421734e508d319481.camel@redhat.com> <20240409093047.5833-1-dgouarin@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 9 Apr 2024 11:30:46 +0200 David Gouarin wrote: > 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_rxq_info->queue_index instead of the Ethernet device queue number, > which made it unusable with bpf_map_redirect. > Instead of the DPAA FQ Id, initialise the XDP rx queue with the queue number. Camelia, looks good?