numam-dpdk/drivers/net/ena
Michal Krawczyk bc5ef57d43 net/ena: calculate partial checksum if DF bit is disabled
When TSO is disabled we still have to calculate partial checksum if DF bit
if turned off. This is caused by firmware bug.

First of all, we must make sure that we are dealing with IPV4 packet.
If not, we will just skip further checking of this packet and move to
the next one.

If application will not set m2_len field, we assume we that it was Ethernet
frame because we have to look inside the packet to check for the DF flag.
To make it work properly, PMD is assuming that before sending
packet application called function rte_eth_tx_prepare().

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Jakub Palider <jpalider@gmail.com>
Acked-by: Jan Medala <jan.medala@outlook.com>
2017-04-19 15:37:37 +02:00
..
base net/ena: fix return of hash control flushing 2017-04-04 18:59:40 +02:00
ena_ethdev.c net/ena: calculate partial checksum if DF bit is disabled 2017-04-19 15:37:37 +02:00
ena_ethdev.h net/ena: prepare TSO offload calculation 2017-01-30 22:18:26 +01:00
ena_logs.h ena: add polling-mode driver 2016-03-25 18:56:43 +01:00
ena_platform.h ena: add polling-mode driver 2016-03-25 18:56:43 +01:00
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
rte_pmd_ena_version.map ena: add polling-mode driver 2016-03-25 18:56:43 +01:00