]> git.ipfire.org Git - thirdparty/linux.git/commit
net: fec: allow disable coalescing
authorJonas Rebmann <jre@pengutronix.de>
Thu, 26 Jun 2025 13:44:02 +0000 (15:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Jul 2025 01:22:32 +0000 (18:22 -0700)
commitb7ad21258f9e9a7f58b19595d5ceed2cde3bed68
treeb49b20d176e48b39d4f87f1b1dcb51ca784bbe12
parentb28fe7f20a05f824a07aeecccd8bd71c29ff99e4
net: fec: allow disable coalescing

In the current implementation, IP coalescing is always enabled and
cannot be disabled.

As setting maximum frames to 0 or 1, or setting delay to zero implies
immediate delivery of single packets/IRQs, disable coalescing in
hardware in these cases.

This also guarantees that coalescing is never enabled with ICFT or ICTT
set to zero, a configuration that could lead to unpredictable behaviour
according to i.MX8MP reference manual.

Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
Reviewed-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20250626-fec_deactivate_coalescing-v2-1-0b217f2e80da@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_main.c