linux_dsm_epyc7002/drivers/net/wireless/ath/wil6210
Vladimir Kondratiev c406ea7c74 wil6210: Align Rx frames on 4*n+2 by having SNAP
For the networking code and for hardware network accelerators,
it is better to have IP header 4*n aligned. On the other side,
DMA on Rx path require buffer to be aligned on 4*n as well.
Having 14 bytes of Ethernet header, these 2 alignment
requests are in contradiction.

To solve this, order hardware offload block to not remove
SNAP header. This adds extra 6 bytes between addresses and
ethertype, making it 20 bytes total. This way, both buffer and
IP header are 4*n aligned. Remaining is only to remove SNAP
by shifting addresses 6 bytes. This involves data copying, so
this feature should be disabled unless required by the platform.

Module parameter "rx_align_2" (bool, default - false)
introduced to control this feature. Feature is completely disabled
when parameter is false.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2015-03-20 08:33:19 +02:00
..
cfg80211.c wil6210: support AP isolation 2015-03-13 15:17:35 +02:00
debug.c wil6210: add handling of RX HTRSH interrupt 2014-12-01 15:57:22 -05:00
debugfs.c wil6210: support AP isolation 2015-03-13 15:17:35 +02:00
ethtool.c wil6210: remove support for old hardware 2015-02-27 10:15:14 +02:00
fw_inc.c wil6210: boot loader 2015-02-27 10:15:13 +02:00
fw.c wil6210: boot loader 2015-02-27 10:15:13 +02:00
fw.h wil6210: firmware download 2014-09-11 15:27:36 -04:00
interrupt.c wil6210: branch prediction hints 2015-02-27 10:15:18 +02:00
ioctl.c wil6210: atomic I/O for the card memory 2014-10-02 14:23:14 -04:00
Kconfig wil6210: Remove msm platform related code 2015-02-03 15:36:41 +02:00
main.c wil6210: fix check for FW responsiveness 2015-03-20 08:33:17 +02:00
Makefile wil6210: Remove msm platform related code 2015-02-03 15:36:41 +02:00
netdev.c wil6210: NAPI completion refactor 2015-03-13 15:17:31 +02:00
pcie_bus.c wil6210: fix check for FW responsiveness 2015-03-20 08:33:17 +02:00
rx_reorder.c wil6210: move Rx reorder buffer allocation out of spinlock 2015-01-29 09:55:27 +02:00
trace.c wil6210: trace support 2013-05-22 15:08:27 -04:00
trace.h wil6210: Align WMI header with latest FW 2013-07-22 16:54:37 -04:00
txrx.c wil6210: Align Rx frames on 4*n+2 by having SNAP 2015-03-20 08:33:19 +02:00
txrx.h wil6210: Tx/Rx descriptors documentation 2015-01-15 14:31:42 +02:00
wil6210.h wil6210: Align Rx frames on 4*n+2 by having SNAP 2015-03-20 08:33:19 +02:00
wil_platform.c wil6210: Remove msm platform related code 2015-02-03 15:36:41 +02:00
wil_platform.h wil6210: platform specific module 2014-09-11 15:27:37 -04:00
wmi.c wil6210: Align Rx frames on 4*n+2 by having SNAP 2015-03-20 08:33:19 +02:00
wmi.h wil6210: Align Rx frames on 4*n+2 by having SNAP 2015-03-20 08:33:19 +02:00