summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-06-04 02:07:53 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-09 03:26:40 +0300
commitf0ba7f385de12d237f31c9439256647b25294a01 (patch)
treedebc57076b7d47a6aa2a7ab5765801ffc9e73ddb /include/linux
parent8084fc9292c2b9b148c9d19d50710c488652214c (diff)
downloadlinux-f0ba7f385de12d237f31c9439256647b25294a01.tar.xz
net: ibm: emac: Clear MAL descriptors without memset
Clear MAL descriptor rings with explicit field stores instead of memset(). The descriptor rings are carved from MAL coherent DMA memory, which may be mapped uncached on 32-bit powerpc. The optimized memset() path can use dcbz there and trigger an alignment warning. Use WRITE_ONCE() for each field to prevent the compiler from merging the stores back into a memset() call. The skb tracking arrays remain ordinary CPU memory and still use memset(). Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://patch.msgid.link/20260603230754.5535-1-rosenp@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions