From c0a08cadee9161554246f707eaf24f782086914d Mon Sep 17 00:00:00 2001 From: Mohammed Hawari Date: Fri, 13 May 2022 09:45:12 +0200 Subject: dpdk: fix overflow in mtu arithmetic When the driver's max_rx_pktlen is >= 65536, max_supported_frame_size overflows and queue creation fails. Change-Id: If78707cb698adf8619ec44a852dd05d570917577 Signed-off-by: Mohammed Hawari Type: fix --- src/plugins/dpdk/device/dpdk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/dpdk/device/dpdk.h') diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h index 008c82df7b0..02cf6812d43 100644 --- a/src/plugins/dpdk/device/dpdk.h +++ b/src/plugins/dpdk/device/dpdk.h @@ -202,7 +202,7 @@ typedef struct u8 *default_mac_address; /* maximum supported max frame size */ - u16 max_supported_frame_size; + u32 max_supported_frame_size; /* due to lack of API to get ethernet max_frame_size we store information * deducted from device info */ -- cgit 1.2.3-korg