net/ice: fix Tx when TSO is enabled
authorXiaoyun Li <xiaoyun.li@intel.com>
Thu, 26 Dec 2019 06:54:28 +0000 (14:54 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:59:18 +0000 (19:59 +0100)
commitf1514bcb27214557d349ca96a94857421135a844
treeae9f6030b47aaac27b656005d034e64314b00830
parente1b8ed33c519015cbe39230654ce313e0aca8830
net/ice: fix Tx when TSO is enabled

Hardware limits that max buffer size per Tx descriptor should be
(16K-1)B. So when TSO enabled, the mbuf data size may exceed the
limit and cause malicious behavior to the NIC. This patch fixes
this issue by using more Tx descs for this kind of large buffer.

Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_rxtx.c