dpdk: fix overflow in mtu arithmetic 31/36131/2
authorMohammed Hawari <mohammed@hawari.fr>
Fri, 13 May 2022 07:45:12 +0000 (09:45 +0200)
committerMohammed HAWARI <momohawari@gmail.com>
Fri, 13 May 2022 09:35:13 +0000 (09:35 +0000)
commitc0a08cadee9161554246f707eaf24f782086914d
tree0870aaacba9b200e2a0db99ef6dd5d8af683ab40
parentd0e0e06984f0ac0c26129484708c10a66f2d6ab5
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
src/plugins/dpdk/device/common.c
src/plugins/dpdk/device/dpdk.h