]> git.baikalelectronics.ru Git - kernel.git/commit
csky: Support kernel non-aligned access
authorGuo Ren <ren_guo@c-sky.com>
Tue, 20 Aug 2019 12:15:44 +0000 (20:15 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Tue, 20 Aug 2019 12:15:44 +0000 (20:15 +0800)
commit2c879264eb805ec03b294404686045ac0716f0dd
treebb4a79195274df2fd3903ebb41fa475af808b1a3
parent93ebea86b8309e0d5e0493861ba5af4cf86243ae
csky: Support kernel non-aligned access

We prohibit non-aligned access in kernel mode, but some special NIC
driver needs to support kernel-state unaligned access. For example,
when the bus does not support unaligned access, IP header parsing
will cause non-aligned access and driver does not recopy the skb
buffer to dma for performance reasons.

Added kernel_enable & user_enable to control unaligned access and
added kernel_count  & user_count for statistical unaligned access.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/abiv1/alignment.c