net/ice: calculate TCP header size for offload
authorHaiyue Wang <haiyue.wang@intel.com>
Wed, 29 Jul 2020 07:50:39 +0000 (15:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:24 +0000 (00:41 +0200)
commit7365a3cee51fb0a0535336f5a5da1c3d41ee256a
tree5a2159b7ca8f652d98328cb91ed6fc3f22b84e44
parent185fe122f4899f48569d0086c9dcacc431ef0967
net/ice: calculate TCP header size for offload

The ice needs the exact TCP header size including options for TCP
checksum offload, but according to PKT_TX_TCP_CKSUM note, l4_len
is not required to be set, so it needs to calculate the TCP header
size if not set.

Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/ice_rxtx.c