From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6A0CBA0548; Thu, 4 Nov 2021 13:34:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64C434270E; Thu, 4 Nov 2021 13:34:46 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2084.outbound.protection.outlook.com [40.107.236.84]) by mails.dpdk.org (Postfix) with ESMTP id E4DED411A4 for ; Thu, 4 Nov 2021 13:34:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QzBhWoMtQR556onYCqLXuTlQ4x7IUkWo1jRzlfAbD/CgG18Zm5JrHdjfgd+RovCB79uSWvfmAJALBKTlmqlvj1rjbBGIxFg+lYCzqMHnJ07K65xtt995xwPmI6Kmm4mpy/zCiUj4morE1QdiwmAG8wW58oGQRoFAXH05ma7OPX5rqP7iIDCrLgjQyex0kV3zv+54Nbk3epsZsy9BJL+imk0A0IhJcSERmYj5XqfT16OI6w94Rrya8gnzcmaNKLXRqUD3NNDk2UK4GYqnN+GGj6w/sq+0fMWDacq08J6q7Vfb2hWsc1yqd+73ncUovpKl4IxSzmBouAL0rhE68gB1zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1lX1dhrE6LOjzZQOa8VNx0BD5vGEQf82p19dY0hx5Z4=; b=PIemcZoTj3wnutVfiAhOKve/EWr9gAaoa6mp7xc8c7YjV9YZWA07pAVVTrnMinbNdnc7Y+9jA6i6cUiSh7myUCqJJn77UCj+YtGxJsUELYIuaXtslrzLtU2GsXhvA1YgZ9Bs+8FunVR3C3H6GWhaLFcitP30wRALwU0vHEhZabvqkhqh3zapJFaVUq8Pnpgf3c5ZVezofGJf/Ct2HGNE8LQgbCjvFZlVih81WIU0lZoZFUbOyGdgc81UNWGVD/mpOVUF8lzTdaNH5awA6FWYfuE/E3UupbApwpLyVKgltyky5LhA99fqTBWIrjrYTDEuNeh4IBeOGAM4le1T4JbO1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1lX1dhrE6LOjzZQOa8VNx0BD5vGEQf82p19dY0hx5Z4=; b=PGWgFx46Qtt5sOlkg4kzOOhxkZMODtNABORGhp8AOVGSxIim5Uv1YYzQBPfM4PXgn5hfn+KR4x3pstCLQKnlGWTH3GhPyJv12sHmT/r1ugPzJ/+a+Q7lM8hwzNTnU0vxEwq9Qd2SqQiH2I39UPNvZmoUxRhcmYGyoYgwWQiCfCNcHnkdUoHW1tIz9lKxzZwXVYcTEqK1s4wMaHqzUQsna/t+6u3YWfQUdlMYkL3dlVzxeb+dHyrR9NFDatMrDOzcEu80DO0XIwvCjdsdJOak+zrCwkOSuGfbc40dfYnOkNhnd8cUghf5ZomiHFt0YCRB1M6Sldw+kT9L6tSsKTNiww== Received: from BN6PR14CA0019.namprd14.prod.outlook.com (2603:10b6:404:79::29) by CH2PR12MB5004.namprd12.prod.outlook.com (2603:10b6:610:62::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10; Thu, 4 Nov 2021 12:34:43 +0000 Received: from BN8NAM11FT055.eop-nam11.prod.protection.outlook.com (2603:10b6:404:79:cafe::37) by BN6PR14CA0019.outlook.office365.com (2603:10b6:404:79::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Thu, 4 Nov 2021 12:34:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT055.mail.protection.outlook.com (10.13.177.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Thu, 4 Nov 2021 12:34:43 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 4 Nov 2021 12:34:18 +0000 From: Xueming Li To: CC: , Lior Margalit , "Slava Ovsiienko" , Matan Azrad Date: Thu, 4 Nov 2021 20:33:12 +0800 Message-ID: <20211104123320.1638915-7-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211104123320.1638915-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211104123320.1638915-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 673988c8-ff66-46e0-9d63-08d99f8f7a71 X-MS-TrafficTypeDiagnostic: CH2PR12MB5004: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:324; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XhnV6Y7HuR4V0kOfGzQaWeWILfbkoE2E2PUxJYSXzv0xGCWVj+fCj+o3/X8CkFbOjhvQXpQ7IhB1TPZfuVbLulK70KbJ0NFSm9n0bnr5gjaBN1gIknHbcR2iGjS8zmRtWlyYQgQGfTVu0klTXOTG3iA7LC0x1XvMjsgBZHeLL4deNwXIsmKyugiS0dVK1+MZSwVtArTxAoqDoBsBmv5joqKOxAFD/XvtFhMbXb5PklTOhqmEbh7ueurpHZJUvrZe85uDUZIvq17VT/issbPd6ildMSPIc+cP0S49dpjBm4G7BwLLyuK9l39HtZXueCRaOMcN01nRvSyP8Po33/B/RkV8Xa5DbaQ9VaJ4i8iv0HcYNTweuGjqEJY4CLdphWDjumjkSnWOkOCyoDYD0C2kw6aX+A0G/nm8hjsqBqDcHK+jyMWWLeVpEMMPOBLGu/DfC4V57bQA1Camvp34MxYNjO9j9fOVKhOnknXbbCOpZKawywNqI8NzuSC9/tLZB/ocl+GXqPFqEPxYRWxUgs+eNt5u32fqpVJeh3f0K4DNFCcvns+K8uVqSNaWVnDuXXzZlc0HBXSocIP6c4F7OQ/XZDpc/hF7NkY03qj8NQXJZt+9bwcnvxyKjSjmRZF4/MKlSxmc4M+j3cETvxzYKhot5uNNnsA0pSpuXOpcXoMT3ly52k+53nZh5v/F9vh7IPLbX3LcGfdLSnqt+/EE71xQ/Q== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(86362001)(6666004)(336012)(55016002)(6286002)(47076005)(2906002)(26005)(316002)(70586007)(4326008)(70206006)(186003)(16526019)(83380400001)(82310400003)(5660300002)(6916009)(107886003)(8936002)(8676002)(426003)(1076003)(54906003)(356005)(508600001)(2616005)(7636003)(36860700001)(36756003)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 12:34:43.1402 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 673988c8-ff66-46e0-9d63-08d99f8f7a71 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT055.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB5004 Subject: [dpdk-dev] [PATCH v4 06/14] net/mlx5: clean Rx queue code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch removes unused Rx queue code. Signed-off-by: Xueming Li Acked-by: Slava Ovsiienko --- drivers/net/mlx5/mlx5_rxq.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 4567b43c1b6..b2e4389ad60 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -674,9 +674,7 @@ mlx5_rx_queue_setup(struct rte_eth_dev *dev, uint16_t idx, uint16_t desc, struct rte_mempool *mp) { struct mlx5_priv *priv = dev->data->dev_private; - struct mlx5_rxq_data *rxq = (*priv->rxqs)[idx]; - struct mlx5_rxq_ctrl *rxq_ctrl = - container_of(rxq, struct mlx5_rxq_ctrl, rxq); + struct mlx5_rxq_ctrl *rxq_ctrl; struct rte_eth_rxseg_split *rx_seg = (struct rte_eth_rxseg_split *)conf->rx_seg; struct rte_eth_rxseg_split rx_single = {.mp = mp}; @@ -743,9 +741,7 @@ mlx5_rx_hairpin_queue_setup(struct rte_eth_dev *dev, uint16_t idx, const struct rte_eth_hairpin_conf *hairpin_conf) { struct mlx5_priv *priv = dev->data->dev_private; - struct mlx5_rxq_data *rxq = (*priv->rxqs)[idx]; - struct mlx5_rxq_ctrl *rxq_ctrl = - container_of(rxq, struct mlx5_rxq_ctrl, rxq); + struct mlx5_rxq_ctrl *rxq_ctrl; int res; res = mlx5_rx_queue_pre_setup(dev, idx, &desc); -- 2.33.0