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 63E89A0C46; Fri, 17 Sep 2021 16:29:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48112410EC; Fri, 17 Sep 2021 16:29:27 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2062.outbound.protection.outlook.com [40.107.101.62]) by mails.dpdk.org (Postfix) with ESMTP id 436B9410EC for ; Fri, 17 Sep 2021 16:29:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eM9sASFq7o30qB/0EN77cv5RMwvkcVGhVZyKwE1hvQbODjzATloc5mImMARSq8iffiHd7nggmxdaF12qsqqYbRDDOh2Hw5DjupNMERJCKnwi0R2zyGiQlrXLpFXyDv/mjT1Fuhyl0BdH5e08CH5yLi3NFOSfvvHc5Nq9EFkMPdZOdvGMh6T7QaiwNvgJ2DPOv1HHv283hdGiRzbwAA8zIxhr9enxcz4eW6PbLoGIpsDkqbznvOfz3ae1Kqeej5FXF829UW7KmmyuKYoDYAi/gcvMH0R+fETos6hv63RucVPKbzFlPOdvpQacLcuCcA/Dxw1YLrDnnX9NNylslJrTHA== 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; bh=JUX5EnNDly+vlZxioZbZMygQ9oAK6rsbBe7xodhAalI=; b=dWF6OoHC4hlF/F8xf6HnP4lm+Tbr+tLVlUSf+rGjooMxVTHGzBshW+HDmpTElQP8WTSusSziXb4j039+2IwQ3+qCwEZe+wZFsUi0xZSuH3baWgGBeivIYC3K7aFnWqF//C2aX14RlE0qjDcpPGKoFQEHDrJFW5PWmyLZVHDyGAkq6p5V1VKT/L4RapQ2rxmJ9rwkposI6fbjJ8+L+RtCse8SFlFe8EciqqoA6cZ/rDWrn1z912+icww5033b31ZRe2qCKqqz91ZmCt2la7Wcmr52MpmVeaEZJ2YHk3pL0r447lCdqSMmwwKlg0W1a+Wne1Giu4IDm02g+yTwN3NkWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none 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=JUX5EnNDly+vlZxioZbZMygQ9oAK6rsbBe7xodhAalI=; b=CnPcCH7J6jgAQmQNrixz8vCFwmYOt/ezwBwwgw38CivI1ILViot6u4fBQFmqwd1axuVdZyKJXou05LcO5oPoRwOc6Kp4GaHTMp0dNwR5+8468rw61PJJep8HNmODQ41gY+WI1Yqob9iUtmoOLz8vUiAUHskmr/4pkJDamk0G+UKGF7esG4Vz3lz3KKi1kEqvvKP52TUwKkvrd0aAMpNTM9Qb27tBw6tMqvaZRaPIBDOn1cdC6pHwye4hLk9d9H5vbmRyBPaUB9hfJ4ynT6s0vG9+o/tk/ocjFkYJ07RcgANCbVyXwdrOsWiPdAv5CsTO4KmU2uTi1SvObpwQV40vgg== Received: from DM6PR12CA0004.namprd12.prod.outlook.com (2603:10b6:5:1c0::17) by CH2PR12MB3896.namprd12.prod.outlook.com (2603:10b6:610:25::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Fri, 17 Sep 2021 14:29:23 +0000 Received: from DM6NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1c0:cafe::b2) by DM6PR12CA0004.outlook.office365.com (2603:10b6:5:1c0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Fri, 17 Sep 2021 14:29:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) 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.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by DM6NAM11FT052.mail.protection.outlook.com (10.13.172.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4523.14 via Frontend Transport; Fri, 17 Sep 2021 14:29:23 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 17 Sep 2021 07:28:57 -0700 Received: from nvidia.com (172.20.187.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 17 Sep 2021 14:28:55 +0000 From: Xueming Li To: CC: , Ferruh Yigit , "Andrew Rybchenko" , "Singh, Aman Deep , Thomas Monjalon "@dpdk.org Date: Fri, 17 Sep 2021 22:28:31 +0800 Message-ID: <20210917142834.35352-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210727034134.20556-1-xuemingl@nvidia.com> References: <20210727034134.20556-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 DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 595e4900-c4be-4f3e-4874-08d979e78b89 X-MS-TrafficTypeDiagnostic: CH2PR12MB3896: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:576; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bpr7qiPJTQ+nlGBsCNzlFSAKXPfC5tBh8Stw3yK5NLRrgZduxOkRzukVe3hwE7FKudMzrDXnO4EIpet1tyH+4OJUiwu8eBfGIciSeD2TQGXwkcVXc7T1caEoWelVH2GHLkTqYS1EWSWAy31WCDSqfU8SO42INSFmJg3djTAkHH3HIcUedmtbAkbglx/aGKLOyV6BlRJDpkedlZn5kA+mkbF39Owfs9pz4I4LaF6OWvT1cKpLU/7G/68lJiexz2VtIAQkfaJzkeYa8xem28f+cBV8xBFodc1h8VUsa7i2DdJJF3t3VRC9ovhm0c4rKjXLEhmlboZFT6B6Tf9Vq62Kw0PIoUdi6aM8/wpr29oiZhkOzgjUfe1hrwee+NyuaGGnXBHXgM3QCt5yTcA2+WVMdMbG+vHLswCceHclcUuPL6vDvOvBsr1391yESpKQ1adkiXdNI8FOyZ4lOZipeejEuKx/DKiCKBqxUEJsclWtiR5kmH1WEHMi6fJlVMK9XH5WoCcV+O8KgnFcU9VicRVuuVq16E8TtZtmpIpGUBQFwfzdVUqu4NUYACbOxt6jk177FZDn21iFX0evhPAgGrm7Z6ejAyWPesfpY3ogV6TjQZoOk2/7diMWluYeXq6G7bDMoWqdsPsfLYSLCCsa3gi8O76xAKl/pGZFmTD/hz608oievQNOCEeAkhaQ3lPVaJ43gQJ618BVApIqsNssIobgPDWHKV/htH/OoqyGknfg9uyOeDWkTzi0BQLrF2tDQLavhABNuvoN/m5NlBfz7yME+pwF6N1PlomsbgtxbmzTGdI= X-Forefront-Antispam-Report: CIP:216.228.112.32; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid01.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(4326008)(36860700001)(36756003)(6666004)(8676002)(70206006)(70586007)(6916009)(86362001)(8936002)(7636003)(16526019)(82310400003)(1076003)(107886003)(186003)(316002)(55016002)(2906002)(508600001)(966005)(7696005)(83380400001)(5660300002)(6286002)(426003)(26005)(47076005)(356005)(54906003)(2616005)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2021 14:29:23.3942 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 595e4900-c4be-4f3e-4874-08d979e78b89 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.32]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3896 Subject: [dpdk-dev] [PATCH v4 0/2] ethdev: change queue release callback 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" ethdev: change queue release callback This patch is a preparation of shared Rx queue feature[1]. Rxq object could be shared among ports of a share group, a shared rxq object can't tell which port it belongs to. This is the motativation to clean up queue release callback API to use queue ID. v2: included new NFP PMD driver v3: - commit message update - split allowing empty queue release callback to another patch v4: - use helper funtction to release a single queue - move driver empty callback cleanup to first patch [1] https://mails.dpdk.org/archives/dev/2021-July/215575.html Xueming Li (2): ethdev: make queue release callback optional ethdev: change queue release callback app/test/virtual_pmd.c | 12 ---- drivers/net/af_packet/rte_eth_af_packet.c | 7 -- drivers/net/af_xdp/rte_eth_af_xdp.c | 7 -- drivers/net/atlantic/atl_ethdev.h | 4 +- drivers/net/atlantic/atl_rxtx.c | 24 +++---- drivers/net/avp/avp_ethdev.c | 34 +++------ drivers/net/axgbe/axgbe_dev.c | 2 +- drivers/net/axgbe/axgbe_rxtx.c | 8 +-- drivers/net/axgbe/axgbe_rxtx.h | 4 +- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +-- drivers/net/bnx2x/bnx2x_rxtx.h | 4 +- drivers/net/bnxt/bnxt_reps.c | 20 +++--- drivers/net/bnxt/bnxt_reps.h | 4 +- drivers/net/bnxt/bnxt_ring.c | 2 +- drivers/net/bnxt/bnxt_rxq.c | 12 ++-- drivers/net/bnxt/bnxt_rxq.h | 2 +- drivers/net/bnxt/bnxt_txq.c | 15 ++-- drivers/net/bnxt/bnxt_txq.h | 2 +- drivers/net/bonding/rte_eth_bond_pmd.c | 8 ++- drivers/net/cnxk/cnxk_ethdev.c | 33 ++++----- drivers/net/cxgbe/cxgbe_ethdev.c | 12 ++-- drivers/net/cxgbe/cxgbe_pfvf.h | 4 +- drivers/net/dpaa/dpaa_ethdev.c | 13 ---- drivers/net/dpaa2/dpaa2_ethdev.c | 11 +-- drivers/net/e1000/e1000_ethdev.h | 8 +-- drivers/net/e1000/em_rxtx.c | 12 ++-- drivers/net/e1000/igb_rxtx.c | 12 ++-- drivers/net/ena/ena_ethdev.c | 18 +++-- drivers/net/enetc/enetc_ethdev.c | 12 ++-- drivers/net/enic/enic_ethdev.c | 8 ++- drivers/net/enic/enic_vf_representor.c | 8 ++- drivers/net/failsafe/failsafe_ops.c | 42 +++++------ drivers/net/fm10k/fm10k_ethdev.c | 14 ++-- drivers/net/hinic/hinic_pmd_ethdev.c | 20 +++--- drivers/net/hns3/hns3_rxtx.c | 25 ++++--- drivers/net/hns3/hns3_rxtx.h | 4 +- drivers/net/i40e/i40e_fdir.c | 8 +-- drivers/net/i40e/i40e_rxtx.c | 40 +++++++---- drivers/net/i40e/i40e_rxtx.h | 6 +- drivers/net/iavf/iavf_rxtx.c | 12 ++-- drivers/net/iavf/iavf_rxtx.h | 4 +- drivers/net/ice/ice_dcf_ethdev.c | 4 +- drivers/net/ice/ice_ethdev.c | 4 +- drivers/net/ice/ice_rxtx.c | 12 ++++ drivers/net/ice/ice_rxtx.h | 2 + drivers/net/igc/igc_ethdev.c | 4 +- drivers/net/igc/igc_txrx.c | 12 ++-- drivers/net/igc/igc_txrx.h | 4 +- drivers/net/ionic/ionic_lif.c | 4 +- drivers/net/ionic/ionic_rxtx.c | 14 ++-- drivers/net/ionic/ionic_rxtx.h | 4 +- drivers/net/ipn3ke/ipn3ke_representor.c | 12 ---- drivers/net/ixgbe/ixgbe_ethdev.h | 4 +- drivers/net/ixgbe/ixgbe_rxtx.c | 12 ++-- drivers/net/kni/rte_eth_kni.c | 7 -- drivers/net/liquidio/lio_ethdev.c | 24 ++++--- drivers/net/liquidio/lio_ethdev.h | 4 +- drivers/net/liquidio/lio_rxtx.c | 4 +- drivers/net/memif/rte_eth_memif.c | 23 ++++-- drivers/net/mlx4/mlx4.c | 4 +- drivers/net/mlx4/mlx4_rxq.c | 27 +++---- drivers/net/mlx4/mlx4_rxtx.h | 4 +- drivers/net/mlx4/mlx4_txq.c | 27 +++---- drivers/net/mlx5/mlx5_rx.h | 2 +- drivers/net/mlx5/mlx5_rxq.c | 21 +++--- drivers/net/mlx5/mlx5_tx.h | 2 +- drivers/net/mlx5/mlx5_txq.c | 25 +++---- drivers/net/mvneta/mvneta_ethdev.c | 4 +- drivers/net/mvneta/mvneta_rxtx.c | 22 +++--- drivers/net/mvneta/mvneta_rxtx.h | 4 +- drivers/net/mvpp2/mrvl_ethdev.c | 20 +++--- drivers/net/netvsc/hn_rxtx.c | 10 +-- drivers/net/netvsc/hn_var.h | 4 +- drivers/net/netvsc/hn_vf.c | 14 ++-- drivers/net/nfb/nfb_ethdev.c | 4 +- drivers/net/nfb/nfb_rx.c | 5 +- drivers/net/nfb/nfb_rx.h | 8 ++- drivers/net/nfb/nfb_tx.c | 5 +- drivers/net/nfb/nfb_tx.h | 8 ++- drivers/net/nfp/nfp_rxtx.c | 30 ++++---- drivers/net/nfp/nfp_rxtx.h | 4 +- drivers/net/ngbe/ngbe_ethdev.h | 4 +- drivers/net/ngbe/ngbe_rxtx.c | 12 ++-- drivers/net/null/rte_eth_null.c | 22 ++++-- drivers/net/octeontx/octeontx_ethdev.c | 18 +++-- drivers/net/octeontx2/otx2_ethdev.c | 59 ++++++---------- drivers/net/octeontx_ep/otx_ep_ethdev.c | 20 +++--- drivers/net/pcap/pcap_ethdev.c | 7 -- drivers/net/pfe/pfe_ethdev.c | 14 ---- drivers/net/qede/qede_ethdev.c | 20 ++++-- drivers/net/ring/rte_eth_ring.c | 4 -- drivers/net/sfc/sfc_ethdev.c | 8 +-- drivers/net/szedata2/rte_eth_szedata2.c | 50 ++++++------- drivers/net/tap/rte_eth_tap.c | 8 +-- drivers/net/thunderx/nicvf_ethdev.c | 28 ++++---- drivers/net/txgbe/txgbe_ethdev.h | 4 +- drivers/net/txgbe/txgbe_rxtx.c | 12 ++-- drivers/net/vhost/rte_eth_vhost.c | 14 ++-- drivers/net/virtio/virtio_ethdev.c | 8 --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 14 ++-- drivers/net/vmxnet3/vmxnet3_ethdev.h | 4 +- drivers/net/vmxnet3/vmxnet3_rxtx.c | 8 +-- lib/ethdev/ethdev_driver.h | 3 +- lib/ethdev/rte_ethdev.c | 86 ++++++++++------------- 104 files changed, 631 insertions(+), 709 deletions(-) -- 2.33.0