diff options
| author | James Nugraha <aslan.jnn@gmail.com> | 2026-08-28 09:22:19 +1000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-30 14:17:19 -0700 |
| commit | ac8d6b28d48c5d951dcd923d33e461588e762a6d (patch) | |
| tree | 98e127bcb6bb5b03dcc372f8d638b45e359123d2 /tools/perf/scripts/python | |
| parent | ac08d183dac0441e41f77bbad50798fe609d90f1 (diff) | |
net: amd-xgbe: discard rx packets with bad FCS
amd-xgbe driver currently sets the MAC_RCR.DCRCC bit whenever
RX is enabled. This disables hardware FCS validation, causing packets
with bad FCS to be accepted unconditionally.
This change unsets DCRCC so that packets with bad FCS will be dropped,
in-line with typical behaviours of many other network controllers.
Tests:
- Verified that packets with bad FCS are now dropped.
- Verified that receiving packets with bad FCS will increment the
`rx_crc_errors` counter.
Fixes: c5aa9e3b8156 ("amd-xgbe: Initial AMD 10GbE platform driver")
Signed-off-by: James Nugraha <aslan.jnn@gmail.com>
Link: https://patch.msgid.link/20260827232220.69907-1-aslan.jnn@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
