Message ID | 20200710162137.22973-1-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show |
Series | [1/9] net/dpaa2: remove Rx timestamp enable PMD API | expand |
On 7/10/2020 5:21 PM, Hemant Agrawal wrote: > This experimental API is no longer required as the same > purpose can be solved with standard DEV_RX_OFFLOAD_TIMESTAMP > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> <...> > -/** > - * @warning > - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice > - * > - * Enable/Disable timestamping update in mbuf for LX2160 kind of devices. > - * For LS2088/LS1088 devices, timestamping will be updated in mbuf without > - * calling this API. > - * > - * @param pmd_dpaa2_ts > - * Enum to enable/disable timestamp update in mbuf for LX2160 devices. > - */ > -__rte_experimental > -void rte_pmd_dpaa2_set_timestamp(enum pmd_dpaa2_ts); Need to remove from .map file too, I can do while merging.
-----Original Message----- From: Ferruh Yigit <ferruh.yigit@intel.com> Sent: Tuesday, July 21, 2020 7:03 AM To: Hemant Agrawal <hemant.agrawal@nxp.com>; dev@dpdk.org Subject: Re: [PATCH 1/9] net/dpaa2: remove Rx timestamp enable PMD API Importance: High On 7/10/2020 5:21 PM, Hemant Agrawal wrote: > This experimental API is no longer required as the same purpose can be > solved with standard DEV_RX_OFFLOAD_TIMESTAMP > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> <...> > -/** > - * @warning > - * @b EXPERIMENTAL: this API may change, or be removed, without prior > notice > - * > - * Enable/Disable timestamping update in mbuf for LX2160 kind of devices. > - * For LS2088/LS1088 devices, timestamping will be updated in mbuf > without > - * calling this API. > - * > - * @param pmd_dpaa2_ts > - * Enum to enable/disable timestamp update in mbuf for LX2160 devices. > - */ > -__rte_experimental > -void rte_pmd_dpaa2_set_timestamp(enum pmd_dpaa2_ts); Need to remove from .map file too, I can do while merging. [Hemant] Thanks!
On 7/10/2020 5:21 PM, Hemant Agrawal wrote: > This experimental API is no longer required as the same > purpose can be solved with standard DEV_RX_OFFLOAD_TIMESTAMP > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Series applied to dpdk-next-net/master, thanks.
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 020af4b03..c530596cd 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -64,7 +64,7 @@ static uint64_t dev_tx_offloads_nodis = DEV_TX_OFFLOAD_MULTI_SEGS; /* enable timestamp in mbuf */ -enum pmd_dpaa2_ts dpaa2_enable_ts; +bool dpaa2_enable_ts; struct rte_dpaa2_xstats_name_off { char name[RTE_ETH_XSTATS_NAME_SIZE]; @@ -106,12 +106,6 @@ static int dpaa2_dev_set_link_up(struct rte_eth_dev *dev); static int dpaa2_dev_set_link_down(struct rte_eth_dev *dev); static int dpaa2_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu); -void -rte_pmd_dpaa2_set_timestamp(enum pmd_dpaa2_ts enable) -{ - dpaa2_enable_ts = enable; -} - static int dpaa2_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) { diff --git a/drivers/net/dpaa2/dpaa2_ethdev.h b/drivers/net/dpaa2/dpaa2_ethdev.h index 2bc0f3f5a..2e6d26d4f 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.h +++ b/drivers/net/dpaa2/dpaa2_ethdev.h @@ -91,7 +91,7 @@ #define DPAA2_PKT_TYPE_VLAN_2 0x0260 /* enable timestamp in mbuf*/ -extern enum pmd_dpaa2_ts dpaa2_enable_ts; +extern bool dpaa2_enable_ts; #define DPAA2_QOS_TABLE_RECONFIGURE 1 #define DPAA2_FS_TABLE_RECONFIGURE 2 diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index eb2e84256..86cb95268 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -108,7 +108,7 @@ dpaa2_dev_rx_parse_new(struct rte_mbuf *m, const struct qbman_fd *fd, m->hash.rss = fd->simple.flc_hi; m->ol_flags |= PKT_RX_RSS_HASH; - if (dpaa2_enable_ts == PMD_DPAA2_ENABLE_TS) { + if (dpaa2_enable_ts) { m->timestamp = annotation->word2; m->ol_flags |= PKT_RX_TIMESTAMP; DPAA2_PMD_DP_DEBUG("pkt timestamp:0x%" PRIx64 "", m->timestamp); diff --git a/drivers/net/dpaa2/rte_pmd_dpaa2.h b/drivers/net/dpaa2/rte_pmd_dpaa2.h index ca7bf7d46..ec8df75af 100644 --- a/drivers/net/dpaa2/rte_pmd_dpaa2.h +++ b/drivers/net/dpaa2/rte_pmd_dpaa2.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright 2018-2019 NXP + * Copyright 2018-2020 NXP */ #ifndef _RTE_PMD_DPAA2_H @@ -17,25 +17,6 @@ #include <rte_flow.h> -enum pmd_dpaa2_ts { - PMD_DPAA2_DISABLE_TS, - PMD_DPAA2_ENABLE_TS -}; - -/** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * - * Enable/Disable timestamping update in mbuf for LX2160 kind of devices. - * For LS2088/LS1088 devices, timestamping will be updated in mbuf without - * calling this API. - * - * @param pmd_dpaa2_ts - * Enum to enable/disable timestamp update in mbuf for LX2160 devices. - */ -__rte_experimental -void rte_pmd_dpaa2_set_timestamp(enum pmd_dpaa2_ts); - /** * @warning * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
This experimental API is no longer required as the same purpose can be solved with standard DEV_RX_OFFLOAD_TIMESTAMP Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa2/dpaa2_ethdev.c | 8 +------- drivers/net/dpaa2/dpaa2_ethdev.h | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 2 +- drivers/net/dpaa2/rte_pmd_dpaa2.h | 21 +-------------------- 4 files changed, 4 insertions(+), 29 deletions(-) -- 2.17.1