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 49286A0503; Wed, 27 Apr 2022 12:44:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EF6AD41109; Wed, 27 Apr 2022 12:44:05 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 0D9A740E78 for ; Wed, 27 Apr 2022 12:44:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651056244; x=1682592244; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=DetfLR/sI3EuJNX+Rv2TQfj6ydSXKY/+7WIRbWeJcXs=; b=kRp0uqPsM1uyp7xE+uoeBYlGN7IW5PVzNhAt6msDYIvBWQklQTSeCNNT gsgG4Q38bWwW585TPVsTryEOcCVvLINseeeHlyR+tE07IEVIL/Rr2L4jk +8AGhMGFnwpmm6mVrb73RPLoJ7DhPSJ19Kpn40rxxGitBNFM1pzkhfs4s o8VzRn6yUd6Gv/OtJlu02PhComDPSoobi1BDhczwNXyoyBVFg+uMNu4X+ ZNGt7LNl8pB/XihZDByBNehGaShT6IDEun6N/b0wPEyJ4JMq4TUd07IFJ UAKdcCLdKKICd07gB8k+DXS5dXvgemb+ryU3s2A2rmIIoC9dSp4RPfwjZ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10329"; a="245810897" X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="245810897" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 03:44:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="661154501" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP; 27 Apr 2022 03:44:03 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 27 Apr 2022 03:44:02 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 27 Apr 2022 03:44:02 -0700 Received: from fmsmsx612.amr.corp.intel.com ([10.18.126.92]) by fmsmsx612.amr.corp.intel.com ([10.18.126.92]) with mapi id 15.01.2308.027; Wed, 27 Apr 2022 03:44:02 -0700 From: "Zhang, Qi Z" To: "Liu, KevinX" , "dev@dpdk.org" CC: "Yang, Qiming" , "Yang, SteveX" , "Wang, Jie1X" Subject: RE: [PATCH v6 05/12] net/ice: add ops dev-supported-ptypes-get to dcf Thread-Topic: [PATCH v6 05/12] net/ice: add ops dev-supported-ptypes-get to dcf Thread-Index: AQHYWh+zB+/blWon80CwPzOu+cHisq0DksMg Date: Wed, 27 Apr 2022 10:44:02 +0000 Message-ID: <8d8cfde58bbb4049a118f4892f2664e1@intel.com> References: <20220421111403.1334288-1-kevinx.liu@intel.com> <20220427181301.1414196-1-kevinx.liu@intel.com> <20220427181301.1414196-6-kevinx.liu@intel.com> In-Reply-To: <20220427181301.1414196-6-kevinx.liu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.401.20 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Liu, KevinX > Sent: Thursday, April 28, 2022 2:13 AM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhang, Qi Z > ; Yang, SteveX ; Wang, Jie1X > ; Liu, KevinX > Subject: [PATCH v6 05/12] net/ice: add ops dev-supported-ptypes-get to dc= f >=20 > From: Jie Wang >=20 > add API "dev_supported_ptypes_get" to dcf, that dcf pmd can get ptypes > through the new API. >=20 > Signed-off-by: Jie Wang > Signed-off-by: Kevin Liu > --- > doc/guides/rel_notes/release_22_07.rst | 1 + > drivers/net/ice/ice_dcf_ethdev.c | 80 ++++++++++++++++---------- > 2 files changed, 50 insertions(+), 31 deletions(-) >=20 > diff --git a/doc/guides/rel_notes/release_22_07.rst > b/doc/guides/rel_notes/release_22_07.rst > index dc37de85f3..a39196c605 100644 > --- a/doc/guides/rel_notes/release_22_07.rst > +++ b/doc/guides/rel_notes/release_22_07.rst > @@ -66,6 +66,7 @@ New Features > * Added enable RSS HASH ops for DCF hardware. > * Added cleanup Tx buffers. > * Added add ops MTU-SET to dcf. > + * Added add ops dev-supported-ptypes-get to dcf. Misc feature is not necessary for release notes update, please remove this. >=20 > Removed Items > ------------- > diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_e= thdev.c > index 06d752fd61..6a577a6582 100644 > --- a/drivers/net/ice/ice_dcf_ethdev.c > +++ b/drivers/net/ice/ice_dcf_ethdev.c > @@ -1218,38 +1218,56 @@ ice_dcf_dev_reset(struct rte_eth_dev *dev) > return ret; > } >=20 > +static const uint32_t * > +ice_dcf_dev_supported_ptypes_get(struct rte_eth_dev *dev __rte_unused) > +{ > + static const uint32_t ptypes[] =3D { > + RTE_PTYPE_L2_ETHER, > + RTE_PTYPE_L3_IPV4_EXT_UNKNOWN, > + RTE_PTYPE_L4_FRAG, > + RTE_PTYPE_L4_ICMP, > + RTE_PTYPE_L4_NONFRAG, > + RTE_PTYPE_L4_SCTP, > + RTE_PTYPE_L4_TCP, > + RTE_PTYPE_L4_UDP, > + RTE_PTYPE_UNKNOWN > + }; > + return ptypes; > +} > + > static const struct eth_dev_ops ice_dcf_eth_dev_ops =3D { > - .dev_start =3D ice_dcf_dev_start, > - .dev_stop =3D ice_dcf_dev_stop, > - .dev_close =3D ice_dcf_dev_close, > - .dev_reset =3D ice_dcf_dev_reset, > - .dev_configure =3D ice_dcf_dev_configure, > - .dev_infos_get =3D ice_dcf_dev_info_get, > - .rx_queue_setup =3D ice_rx_queue_setup, > - .tx_queue_setup =3D ice_tx_queue_setup, > - .rx_queue_release =3D ice_dev_rx_queue_release, > - .tx_queue_release =3D ice_dev_tx_queue_release, > - .rx_queue_start =3D ice_dcf_rx_queue_start, > - .tx_queue_start =3D ice_dcf_tx_queue_start, > - .rx_queue_stop =3D ice_dcf_rx_queue_stop, > - .tx_queue_stop =3D ice_dcf_tx_queue_stop, > - .link_update =3D ice_dcf_link_update, > - .stats_get =3D ice_dcf_stats_get, > - .stats_reset =3D ice_dcf_stats_reset, > - .promiscuous_enable =3D ice_dcf_dev_promiscuous_enable, > - .promiscuous_disable =3D ice_dcf_dev_promiscuous_disable, > - .allmulticast_enable =3D ice_dcf_dev_allmulticast_enable, > - .allmulticast_disable =3D ice_dcf_dev_allmulticast_disable, > - .flow_ops_get =3D ice_dcf_dev_flow_ops_get, > - .udp_tunnel_port_add =3D ice_dcf_dev_udp_tunnel_port_add, > - .udp_tunnel_port_del =3D ice_dcf_dev_udp_tunnel_port_del, > - .tm_ops_get =3D ice_dcf_tm_ops_get, > - .reta_update =3D ice_dcf_dev_rss_reta_update, > - .reta_query =3D ice_dcf_dev_rss_reta_query, > - .rss_hash_update =3D ice_dcf_dev_rss_hash_update, > - .rss_hash_conf_get =3D ice_dcf_dev_rss_hash_conf_get, > - .tx_done_cleanup =3D ice_tx_done_cleanup, > - .mtu_set =3D ice_dcf_dev_mtu_set, > + .dev_start =3D ice_dcf_dev_start, > + .dev_stop =3D ice_dcf_dev_stop, > + .dev_close =3D ice_dcf_dev_close, > + .dev_reset =3D ice_dcf_dev_reset, > + .dev_configure =3D ice_dcf_dev_configure, > + .dev_infos_get =3D ice_dcf_dev_info_get, > + .dev_supported_ptypes_get =3D ice_dcf_dev_supported_ptypes_get, > + .rx_queue_setup =3D ice_rx_queue_setup, > + .tx_queue_setup =3D ice_tx_queue_setup, > + .rx_queue_release =3D ice_dev_rx_queue_release, > + .tx_queue_release =3D ice_dev_tx_queue_release, > + .rx_queue_start =3D ice_dcf_rx_queue_start, > + .tx_queue_start =3D ice_dcf_tx_queue_start, > + .rx_queue_stop =3D ice_dcf_rx_queue_stop, > + .tx_queue_stop =3D ice_dcf_tx_queue_stop, > + .link_update =3D ice_dcf_link_update, > + .stats_get =3D ice_dcf_stats_get, > + .stats_reset =3D ice_dcf_stats_reset, > + .promiscuous_enable =3D ice_dcf_dev_promiscuous_enable, > + .promiscuous_disable =3D ice_dcf_dev_promiscuous_disable, > + .allmulticast_enable =3D ice_dcf_dev_allmulticast_enable, > + .allmulticast_disable =3D ice_dcf_dev_allmulticast_disable, > + .flow_ops_get =3D ice_dcf_dev_flow_ops_get, > + .udp_tunnel_port_add =3D ice_dcf_dev_udp_tunnel_port_add, > + .udp_tunnel_port_del =3D ice_dcf_dev_udp_tunnel_port_del, > + .tm_ops_get =3D ice_dcf_tm_ops_get, > + .reta_update =3D ice_dcf_dev_rss_reta_update, > + .reta_query =3D ice_dcf_dev_rss_reta_query, > + .rss_hash_update =3D ice_dcf_dev_rss_hash_update, > + .rss_hash_conf_get =3D ice_dcf_dev_rss_hash_conf_get, > + .tx_done_cleanup =3D ice_tx_done_cleanup, > + .mtu_set =3D ice_dcf_dev_mtu_set, > }; >=20 > static int > -- > 2.33.1