diff options
| author | Petr Machata <[email protected]> | 2024-04-12 17:03:07 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-04-16 10:14:41 +0000 |
| commit | 042db639bf33aee118846a87223acebe6700137d (patch) | |
| tree | 3f44806f56e487dc79e320a92fe571ac1b4aa8ba /net/unix/unix_bpf.c | |
| parent | selftests: forwarding: bail_on_lldpad() should SKIP (diff) | |
| download | kernel-042db639bf33aee118846a87223acebe6700137d.tar.gz kernel-042db639bf33aee118846a87223acebe6700137d.zip | |
selftests: drivers: hw: Fix ethtool_rmon
When rx-pktsNtoM reports a range that involves very low-valued range, such
as 0-64, the calculated length of the packet will be -4, because FCS is
subtracted from the value. mausezahn then confuses the value for an option
and bails out. As a result, the test dumps many mausezahn error messages.
Instead, cap the value at 0. mausezahn will use an appropriate minimum
packet length.
Cc: Vladimir Oltean <[email protected]>
Cc: Tobias Waldekranz <[email protected]>
Signed-off-by: Petr Machata <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
