net/ena: do not set Tx L4 offloads in Rx path
authorRafal Kozik <rk@semihalf.com>
Thu, 25 Jan 2018 15:27:43 +0000 (16:27 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commitfd617795679019c7aea5ab1e8c85db02cf53f169
treefd08a3bb5ac04adc631fb6f884881cb90fea1c01
parent4a984153430cbdafe2b971e999bba8d96610b299
net/ena: do not set Tx L4 offloads in Rx path

Information about received packet type detected by NIC should be
stored in packet_type field of rte_mbuf. TX L4 offload flags should
not be set in RX path. Only fields that could be set in of_flags
during packet receiving are information if L4 and L3 checksum is
correct.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")
Cc: stable@dpdk.org
Reported-by: Matthew Smith <mgsmith@netgate.com>
Signed-off-by: Rafal Kozik <rk@semihalf.com>
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c