net/mvpp2: fix frame size checking
authorLiron Himi <lironh@marvell.com>
Wed, 27 Jan 2021 16:09:19 +0000 (18:09 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:10 +0000 (18:16 +0100)
commit1c9a958a8bfb7cb4e2082b97d01849d4ba91c13b
tree63ee38c89a926b5d99baa0bb0142575c1d1241ca
parent31536a6892ef9dfe98be26b65d9235d82ea9f9f1
net/mvpp2: fix frame size checking

Need to add CRC len to the frame-size to compare against
max_rx_pkt_len which includes it.

Fixes: 79ec62028b9a ("net/mvpp2: update MTU and MRU related calculations")
Cc: stable@dpdk.org
Signed-off-by: Liron Himi <lironh@marvell.com>
Reviewed-by: Yuri Chipchev <yuric@marvell.com>
drivers/net/mvpp2/mrvl_ethdev.c