https://github.com/torvalds/linux
Revision df727d4547de568302b0ed15b0d4e8a469bdb456 authored by Rasmus Villemoes on 23 November 2022, 13:38:52 UTC, committed by David S. Miller on 25 November 2022, 09:37:40 UTC
Currently, when a FEC device is brought up, the irq coalesce settings
are reset to their default values (1000us, 200 frames). That's
unexpected, and breaks for example use of an appropriate .link file to
make systemd-udev apply the desired
settings (https://www.freedesktop.org/software/systemd/man/systemd.link.html),
or any other method that would do a one-time setup during early boot.

Refactor the code so that fec_restart() instead uses
fec_enet_itr_coal_set(), which simply applies the settings that are
stored in the private data, and initialize that private data with the
default values.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 32b931c
History
Tip revision: df727d4547de568302b0ed15b0d4e8a469bdb456 authored by Rasmus Villemoes on 23 November 2022, 13:38:52 UTC
net: fec: don't reset irq coalesce settings to defaults on "ip link up"
Tip revision: df727d4
File Mode Size
platform
acbuffer.h -rw-r--r-- 8.9 KB
acconfig.h -rw-r--r-- 7.4 KB
acexcep.h -rw-r--r-- 16.9 KB
acnames.h -rw-r--r-- 2.2 KB
acoutput.h -rw-r--r-- 16.4 KB
acpi.h -rw-r--r-- 1.3 KB
acpi_bus.h -rw-r--r-- 22.6 KB
acpi_drivers.h -rw-r--r-- 2.6 KB
acpi_io.h -rw-r--r-- 723 bytes
acpi_lpat.h -rw-r--r-- 1.2 KB
acpi_numa.h -rw-r--r-- 944 bytes
acpiosxf.h -rw-r--r-- 11.3 KB
acpixf.h -rw-r--r-- 30.7 KB
acrestyp.h -rw-r--r-- 19.0 KB
actbl.h -rw-r--r-- 18.3 KB
actbl1.h -rw-r--r-- 43.2 KB
actbl2.h -rw-r--r-- 68.9 KB
actbl3.h -rw-r--r-- 22.0 KB
actypes.h -rw-r--r-- 42.0 KB
acuuid.h -rw-r--r-- 3.4 KB
apei.h -rw-r--r-- 1.4 KB
battery.h -rw-r--r-- 594 bytes
button.h -rw-r--r-- 401 bytes
cppc_acpi.h -rw-r--r-- 4.6 KB
ghes.h -rw-r--r-- 3.6 KB
hed.h -rw-r--r-- 370 bytes
nfit.h -rw-r--r-- 351 bytes
pcc.h -rw-r--r-- 807 bytes
pdc_intel.h -rw-r--r-- 1.0 KB
processor.h -rw-r--r-- 11.8 KB
reboot.h -rw-r--r-- 201 bytes
video.h -rw-r--r-- 2.9 KB

back to top