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: 347a1e037f
("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>
This commit is contained in:
parent
9ed2c8a299
commit
91cd905af9
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user