diff mbox series

[v2,1/3] linux-generic: packet: improve packet_init() performance

Message ID 1502748005-17591-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v2,1/3] linux-generic: packet: improve packet_init() performance | expand

Commit Message

Github ODP bot Aug. 14, 2017, 10 p.m. UTC
From: Bill Fischofer <bill.fischofer@linaro.org>


Streamline packet_init() performance by eliminating the redundant
initialization of the unshared_len field of the packet hdr. This field
is initialized when references are created so this processing is not
required here.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
/** Email created from pull request 125 (Bill-Fischofer-Linaro:pktrefs-opt)
 ** https://github.com/Linaro/odp/pull/125
 ** Patch: https://github.com/Linaro/odp/pull/125.patch
 ** Base sha: 90d4ce1b3b25ca18446131906007571cc0ed0191
 ** Merge commit sha: 6d464aeb30e24833ae787e3997a411103c16c70c
 **/
 platform/linux-generic/include/odp_packet_internal.h | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index d923ee23..48c2463f 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -269,7 +269,6 @@  static inline void packet_init(odp_packet_hdr_t *pkt_hdr, uint32_t len)
 	pkt_hdr->input = ODP_PKTIO_INVALID;
 
 	/* By default packet has no references */
-	pkt_hdr->unshared_len = len;
 	pkt_hdr->ref_hdr = NULL;
 }