diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-06-04 02:07:53 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-09 03:26:40 +0300 |
| commit | f0ba7f385de12d237f31c9439256647b25294a01 (patch) | |
| tree | debc57076b7d47a6aa2a7ab5765801ffc9e73ddb /include/uapi/linux | |
| parent | 8084fc9292c2b9b148c9d19d50710c488652214c (diff) | |
| download | linux-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/uapi/linux')
0 files changed, 0 insertions, 0 deletions
