diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2022-05-13 09:45:12 +0200 |
---|---|---|
committer | Mohammed HAWARI <momohawari@gmail.com> | 2022-05-13 09:35:13 +0000 |
commit | c0a08cadee9161554246f707eaf24f782086914d (patch) | |
tree | 0870aaacba9b200e2a0db99ef6dd5d8af683ab40 /src/plugins/dpdk/device/common.c | |
parent | d0e0e06984f0ac0c26129484708c10a66f2d6ab5 (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/common.c')
-rw-r--r-- | src/plugins/dpdk/device/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/common.c b/src/plugins/dpdk/device/common.c index a37659508dc..b8c6eddd34b 100644 --- a/src/plugins/dpdk/device/common.c +++ b/src/plugins/dpdk/device/common.c @@ -65,7 +65,7 @@ dpdk_device_setup (dpdk_device_t * xd) struct rte_eth_dev_info dev_info; struct rte_eth_conf conf = {}; u64 rxo, txo; - u16 max_frame_size; + u32 max_frame_size; int rv; int j; |