git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
287f425
)
net/dpaa2: enable timestamp for Rx offload case
author
Gagandeep Singh
<g.singh@nxp.com>
Tue, 7 Jul 2020 09:22:18 +0000
(14:52 +0530)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:52 +0000
(06:18 +0200)
This patch enables the packet timestamping
conditionally when Rx offload is enabled for timestamp.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/dpaa2/dpaa2_ethdev.c
b/drivers/net/dpaa2/dpaa2_ethdev.c
index
a1f1919
..
8edd4b3
100644
(file)
--- a/
drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/
drivers/net/dpaa2/dpaa2_ethdev.c
@@
-524,8
+524,10
@@
dpaa2_eth_dev_configure(struct rte_eth_dev *dev)
return ret;
}
+#if !defined(RTE_LIBRTE_IEEE1588)
if (rx_offloads & DEV_RX_OFFLOAD_TIMESTAMP)
- dpaa2_enable_ts = true;
+#endif
+ dpaa2_enable_ts = true;
if (tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM)
tx_l3_csum_offload = true;