net/mvpp2: remove CRC length from MRU validation
authorLiron Himi <lironh@marvell.com>
Wed, 27 Jan 2021 16:09:18 +0000 (18:09 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:10 +0000 (18:16 +0100)
commit31536a6892ef9dfe98be26b65d9235d82ea9f9f1
tree1234914782b76c3f40ae78c5d85b09147b080d68
parent8fb1d5eba05899fb2a4c46156546898fffe15917
net/mvpp2: remove CRC length from MRU validation

CRC is being removed by HW before packet get
write to the buffer, so CRC len should not be
included in MRU validation

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