summaryrefslogtreecommitdiff
path: root/lib/librte_ip_frag
diff options
context:
space:
mode:
authorWenzhuo Lu <wenzhuo.lu@intel.com>2016-11-06 12:16:14 -0500
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-11-07 21:27:50 +0100
commit91cd905af929ca11ab2b10406fc2d7413dc30e41 (patch)
tree8e111fe5321d405237eca7673dfe2bb1798c7640 /lib/librte_ip_frag
parent9ed2c8a299e0840a341c2d5e347822a782da746c (diff)
downloaddpdk-91cd905af929ca11ab2b10406fc2d7413dc30e41.zip
dpdk-91cd905af929ca11ab2b10406fc2d7413dc30e41.tar.gz
dpdk-91cd905af929ca11ab2b10406fc2d7413dc30e41.tar.xz
ip_frag: fix IP reassembly regression
After changing pkt[0] to pkt[], the example IP reassembly is not working. It's weird because this change is fine. There should be no difference between them. As a workaround, revert this change. Fixes: 347a1e037fd3 ("lib: use C99 syntax for zero-size arrays") Reported-by: Huilong Xu <huilongx.xu@intel.com> Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Diffstat (limited to 'lib/librte_ip_frag')
-rw-r--r--lib/librte_ip_frag/rte_ip_frag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h
index 69596ab..6708906 100644
--- a/lib/librte_ip_frag/rte_ip_frag.h
+++ b/lib/librte_ip_frag/rte_ip_frag.h
@@ -124,7 +124,7 @@ struct rte_ip_frag_tbl {
struct ip_frag_pkt *last; /**< last used entry. */
struct ip_pkt_list lru; /**< LRU list for table entries. */
struct ip_frag_tbl_stat stat; /**< statistics counters. */
- struct ip_frag_pkt pkt[]; /**< hash table. */
+ __extension__ struct ip_frag_pkt pkt[0]; /**< hash table. */
};
/** IPv6 fragment extension header */