summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dpdk/device/common.c')
-rw-r--r--src/plugins/dpdk/device/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dpdk/device/common.c b/src/plugins/dpdk/device/common.c
index 0f54a616773..df80a85872d 100644
--- a/src/plugins/dpdk/device/common.c
+++ b/src/plugins/dpdk/device/common.c
@@ -169,8 +169,8 @@ dpdk_device_setup (dpdk_device_t * xd)
}
else
{
- mtu = 1500;
- xd->max_supported_frame_size = mtu + xd->driver_frame_overhead;
+ xd->max_supported_frame_size =
+ clib_min (1500 + xd->driver_frame_overhead, buf_sz);
}
#else
if (xd->conf.disable_multi_seg)