net/enic: fix size check in Tx prepare handler
authorHyong Youb Kim <hyonkim@cisco.com>
Tue, 13 Nov 2018 15:38:10 +0000 (07:38 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit7ac790d63bf0045d79b1c9f3bf692fc460fcd375
tree4d17af8c2252dfa8ee92cab00c52773b2b9af3f7
parentf7c8539801480bf39f1792daf562c664ee6ad37b
net/enic: fix size check in Tx prepare handler

The current code wrongly assumes that packets are non-TSO and ends up
rejecting large TSO packets. Check non-TSO and TSO max packet sizes
separately.

Fixes: 5a12c387405a ("net/enic: check maximum packet size in Tx prepare handler")
Cc: stable@dpdk.org
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_rxtx.c