Skip to content

Commit

Permalink
DPDK: increase max packet size from 9160B to 9kB.
Browse files Browse the repository at this point in the history
Packet size is passed to the ixgbe driver as a buffer
size. Then it is calculated to get the buffer size in kilobytes
using right bitshift by 10. 9160 >> 10 is 8. This leads to truncating
incoming 9kB frames to 8kB. Changing packet size to integer multiple
of 1kB solves the problem.

Change-Id: I202c7f9430c5952b5e89b1ef9fff101ed36bfe82
Closes-bug: #1547782
  • Loading branch information
semihalf-zmuda-wojciech authored and opencontrail-ci-admin committed Mar 21, 2016
1 parent 91e2d3a commit aa66037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vr_dpdk.h
Expand Up @@ -111,7 +111,7 @@ extern unsigned int vr_flow_hold_limit;
/* Maximum number of bond interfaces per lcore */
#define VR_DPDK_MAX_BONDS 2
/* Max size of a single packet */
#define VR_DPDK_MAX_PACKET_SZ 9160
#define VR_DPDK_MAX_PACKET_SZ 9 * 1024
/* Number of bytes needed for each mbuf */
#define VR_DPDK_MBUF_SZ (VR_DPDK_MAX_PACKET_SZ \
+ sizeof(struct rte_mbuf) \
Expand Down

0 comments on commit aa66037

Please sign in to comment.