mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
c406ea7c74
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> |
||
---|---|---|
.. | ||
cfg80211.c | ||
debug.c | ||
debugfs.c | ||
ethtool.c | ||
fw_inc.c | ||
fw.c | ||
fw.h | ||
interrupt.c | ||
ioctl.c | ||
Kconfig | ||
main.c | ||
Makefile | ||
netdev.c | ||
pcie_bus.c | ||
rx_reorder.c | ||
trace.c | ||
trace.h | ||
txrx.c | ||
txrx.h | ||
wil6210.h | ||
wil_platform.c | ||
wil_platform.h | ||
wmi.c | ||
wmi.h |