net/i40e: fix maximum frame size check
authorYanglong Wu <yanglong.wu@intel.com>
Fri, 27 Jul 2018 04:40:00 +0000 (12:40 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 30 Jul 2018 01:01:30 +0000 (03:01 +0200)
commit014a48de609f33c0ab58c796272e62f0f518d9ea
tree32b1da254e18a425e63468d106174be099f614f1
parent33310b592f4157073186cfcf4a21da35d25ee405
net/i40e: fix maximum frame size check

Check packet size according to TSO or no-TSO.

Fixes: bfeed0262b0c ("net/i40e: check illegal packets")

Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_rxtx.c