Skip to content

Commit 6ae2c56

Browse files
shwangchanglan
authored andcommitted
Explicitly declare kMaxBurst (#522)
This is required for proper linking. Previously we were able to get away with not declaring kMaxBurst, because a compiler optimization ignores this issue when kMaxBurst is used for array sizing.
1 parent f7deda8 commit 6ae2c56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/packet.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
namespace bess {
1717

18+
const size_t PacketBatch::kMaxBurst;
19+
1820
static struct rte_mempool *pframe_pool[RTE_MAX_NUMA_NODES];
1921

2022
static void packet_init(struct rte_mempool *mp, void *opaque_arg, void *_m,

0 commit comments

Comments
 (0)