summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/dpdk.h
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2022-05-13 09:45:12 +0200
committerMohammed HAWARI <momohawari@gmail.com>2022-05-13 09:35:13 +0000
commitc0a08cadee9161554246f707eaf24f782086914d (patch)
tree0870aaacba9b200e2a0db99ef6dd5d8af683ab40 /src/plugins/dpdk/device/dpdk.h
parentd0e0e06984f0ac0c26129484708c10a66f2d6ab5 (diff)
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 <mohammed@hawari.fr> Type: fix
Diffstat (limited to 'src/plugins/dpdk/device/dpdk.h')
-rw-r--r--src/plugins/dpdk/device/dpdk.h2
1 files changed, 1 insertions, 1 deletions
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 */