1
0
Fork 0
alistair23-linux/drivers/net/ethernet/amazon/ena
Shay Agroskin 1396d3148b net: ena: fix packet's addresses for rx_offset feature
This patch fixes two lines in which the rx_offset received by the device
wasn't taken into account:

- prefetch function:
	In our driver the copied data would reside in
	rx_info->page + rx_headroom + rx_offset

	so the prefetch function is changed accordingly.

- setting page_offset to zero for descriptors > 1:
	for every descriptor but the first, the rx_offset is zero. Hence
	the page_offset value should be set to rx_headroom.

	The previous implementation changed the value of rx_info after
	the descriptor was added to the SKB (essentially providing wrong
	page offset).

Fixes: 68f236df93 ("net: ena: add support for the rx offset feature")
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-24 16:07:13 -08:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ena_admin_defs.h net: ena: Change RSS related macros and variables names 2020-09-21 13:54:23 -07:00
ena_com.c drivers/net/ethernet: remove incorrectly formatted doc 2020-09-25 16:29:00 -07:00
ena_com.h net: ena: Capitalize all log strings and improve code readability 2020-09-21 13:54:23 -07:00
ena_common_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_eth_com.c net: ena: handle bad request id in ena_netdev 2020-11-24 16:07:13 -08:00
ena_eth_com.h net: ena: Capitalize all log strings and improve code readability 2020-09-21 13:54:23 -07:00
ena_eth_io_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_ethtool.c net: ena: Capitalize all log strings and improve code readability 2020-09-21 13:54:23 -07:00
ena_netdev.c net: ena: fix packet's addresses for rx_offset feature 2020-11-24 16:07:13 -08:00
ena_netdev.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_pci_id_tbl.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_regs_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00