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 C1F814326D; Thu, 2 Nov 2023 11:34:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B1B740282; Thu, 2 Nov 2023 11:34:21 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id D461140262 for ; Thu, 2 Nov 2023 11:34:18 +0100 (CET) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SLgGY4YVNzVjwj; Thu, 2 Nov 2023 18:34:13 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Thu, 2 Nov 2023 18:34:16 +0800 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.031; Thu, 2 Nov 2023 11:34:14 +0100 From: Konstantin Ananyev To: Fengchengwen , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , "ajit.khaparde@broadcom.com" , haijie , "Zhuangyuzeng (Yisen)" CC: "dev@dpdk.org" , "andrew.rybchenko@oktetlabs.ru" , "kalesh-anakkur.purayil@broadcom.com" , "Honnappa.Nagarahalli@arm.com" Subject: RE: [PATCH v2 2/7] net/hns3: replace fp ops config function Thread-Topic: [PATCH v2 2/7] net/hns3: replace fp ops config function Thread-Index: AQHaAz244VxMPC7A1EyiGU+Yqu+m47Bm6ZrQ Date: Thu, 2 Nov 2023 10:34:14 +0000 Message-ID: <557880c572b343e6993f8d16caf8f330@huawei.com> References: <20230301030610.49468-1-fengchengwen@huawei.com> <20231020100746.31520-1-fengchengwen@huawei.com> <20231020100746.31520-3-fengchengwen@huawei.com> In-Reply-To: <20231020100746.31520-3-fengchengwen@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.206.138.42] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected 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 > -----Original Message----- > From: Fengchengwen > Sent: Friday, October 20, 2023 11:08 AM > To: thomas@monjalon.net; ferruh.yigit@amd.com; Konstantin Ananyev ; > ajit.khaparde@broadcom.com; haijie ; Zhuangyuzeng (Yi= sen) > Cc: dev@dpdk.org; andrew.rybchenko@oktetlabs.ru; kalesh-anakkur.purayil@b= roadcom.com; Honnappa.Nagarahalli@arm.com > Subject: [PATCH v2 2/7] net/hns3: replace fp ops config function >=20 > This patch replace hns3_eth_dev_fp_ops_config() with > rte_eth_fp_ops_setup(). >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: Chengwen Feng > Acked-by: Dongdong Liu > --- > drivers/net/hns3/hns3_rxtx.c | 21 +++------------------ > 1 file changed, 3 insertions(+), 18 deletions(-) >=20 > diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c > index f3c3b38c55..f43f1eb9ad 100644 > --- a/drivers/net/hns3/hns3_rxtx.c > +++ b/drivers/net/hns3/hns3_rxtx.c > @@ -4434,21 +4434,6 @@ hns3_trace_rxtx_function(struct rte_eth_dev *dev) > rx_mode.info, tx_mode.info); > } >=20 > -static void > -hns3_eth_dev_fp_ops_config(const struct rte_eth_dev *dev) > -{ > - struct rte_eth_fp_ops *fpo =3D rte_eth_fp_ops; > - uint16_t port_id =3D dev->data->port_id; > - > - fpo[port_id].rx_pkt_burst =3D dev->rx_pkt_burst; > - fpo[port_id].tx_pkt_burst =3D dev->tx_pkt_burst; > - fpo[port_id].tx_pkt_prepare =3D dev->tx_pkt_prepare; > - fpo[port_id].rx_descriptor_status =3D dev->rx_descriptor_status; > - fpo[port_id].tx_descriptor_status =3D dev->tx_descriptor_status; > - fpo[port_id].rxq.data =3D dev->data->rx_queues; > - fpo[port_id].txq.data =3D dev->data->tx_queues; > -} > - > void > hns3_set_rxtx_function(struct rte_eth_dev *eth_dev) > { > @@ -4471,7 +4456,7 @@ hns3_set_rxtx_function(struct rte_eth_dev *eth_dev) > } >=20 > hns3_trace_rxtx_function(eth_dev); > - hns3_eth_dev_fp_ops_config(eth_dev); > + rte_eth_fp_ops_setup(eth_dev); > } >=20 > void > @@ -4824,7 +4809,7 @@ hns3_stop_tx_datapath(struct rte_eth_dev *dev) > { > dev->tx_pkt_burst =3D rte_eth_pkt_burst_dummy; > dev->tx_pkt_prepare =3D NULL; > - hns3_eth_dev_fp_ops_config(dev); > + rte_eth_fp_ops_setup(dev); >=20 > if (rte_eal_process_type() =3D=3D RTE_PROC_SECONDARY) > return; > @@ -4841,7 +4826,7 @@ hns3_start_tx_datapath(struct rte_eth_dev *dev) > { > dev->tx_pkt_burst =3D hns3_get_tx_function(dev); > dev->tx_pkt_prepare =3D hns3_get_tx_prepare(dev); > - hns3_eth_dev_fp_ops_config(dev); > + rte_eth_fp_ops_setup(dev); >=20 > if (rte_eal_process_type() =3D=3D RTE_PROC_SECONDARY) > return; > -- Acked-by: Konstantin Ananyev =20 > 2.17.1