aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>2016-03-24 19:46:16 +0200
committerIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>2016-03-24 20:06:37 +0200
commit4e5a6cfecbeb5432c6dd37e1a54bb4d96c443e01 (patch)
treedd3e8f735406ff958ac70042c3d02420d0b0e5f5
parent50e39f8d2538b02255caffab551f690d8983c874 (diff)
downloadodp-keystone2-4e5a6cfecbeb5432c6dd37e1a54bb4d96c443e01.tar.gz
linux-ks2: packet: reset packet header while freeing a packet
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
-rw-r--r--platform/linux-keystone2/odp_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/linux-keystone2/odp_packet.c b/platform/linux-keystone2/odp_packet.c
index 13edf77b..7ed7302e 100644
--- a/platform/linux-keystone2/odp_packet.c
+++ b/platform/linux-keystone2/odp_packet.c
@@ -158,6 +158,8 @@ static inline void __odp_packet_free(odp_packet_t pkt)
pool_id = _cppi_desc_pool_id(desc);
pool_entry = _odp_pool_id_to_entry(pool_id);
+ packet_header_reset(_odp_pkt_hdr(pkt),
+ _odp_pool_uarea_size(pool_entry));
while (desc) {
Cppi_HostDesc *next_desc;