dpdk: Ditch MAX_PKT_BURST macro.
authorEthan Jackson <ethan@nicira.com>
Sat, 16 May 2015 15:18:20 +0000 (08:18 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 19 May 2015 21:47:00 +0000 (14:47 -0700)
commitcd159f1a82674eca96e8e2c0f184e3abac92172d
tree629f994171737c786b726a7e7c5cbae5a22840ff
parentbce01e3a89ac4b05d9e81408aa57717f2776f0be
dpdk: Ditch MAX_PKT_BURST macro.

The MAX_PKT_BURST and NETDEV_MAX_RX_BATCH macros had a confusing
relationship.  They basically purport to do the same thing, making it
unclear which is the source of truth.

Furthermore, while NETDEV_MAX_RX_BATCH was 256, MAX_PKT_BURST was 32,
meaning we never process a batch larger than 32 packets further adding
to the confusion.

This patch resolves the issue by removing MAX_PKT_BURST completely,
and shrinking the new NETDEV_MAX_BURST macro to only 32.  This should
have no change in the execution path except shrinking a couple of
structs and memory allocations (can't hurt).

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/dpif-netdev.c
lib/netdev-dpdk.c
lib/netdev.h