From f01ff15b7530053e18bb79cd529a84e3f15b294a Mon Sep 17 00:00:00 2001 From: Oleksandr Kuchmystyi Date: Thu, 25 Dec 2025 16:48:03 +0300 Subject: ethtool: T7730: Add configuration coalesce for interface This change introduces CLI support for configuring network interface interrupt coalescing parameters via `netlink`. Note: Not all NIC drivers support interrupt coalescing. On unsupported interfaces, `netlink` returns an error and the VyOS commit will fail. --- interface-definitions/interfaces_ethernet.xml.in | 307 +++++++++++++++++++++++ 1 file changed, 307 insertions(+) (limited to 'interface-definitions') diff --git a/interface-definitions/interfaces_ethernet.xml.in b/interface-definitions/interfaces_ethernet.xml.in index 819ceb2cb..e9814817f 100644 --- a/interface-definitions/interfaces_ethernet.xml.in +++ b/interface-definitions/interfaces_ethernet.xml.in @@ -221,6 +221,313 @@ + + + Interrupt coalescing options for the interface + + + + + Enable adaptive receive interrupt coalescing + + + + + + Enable adaptive transmit interrupt coalescing + + + + + + Delay in microseconds before generating RX interrupt + + u32:0-16384 + RX interrupt coalescing delay + + + + + + + + + Number of RX frames before generating interrupt + + u32:0-4294967295 + RX interrupt coalescing frames threshold + + + + + + + + + Delay in microseconds before generating RX interrupt while servicing IRQ + + u32:0-16384 + RX IRQ interrupt coalescing delay + + + + + + + + + Number of RX frames before generating interrupt while servicing IRQ + + u32:0-4294967295 + RX IRQ interrupt coalescing frames threshold + + + + + + + + + Delay in microseconds before generating TX interrupt + + u32:0-16384 + TX interrupt coalescing delay + + + + + + + + + Number of TX frames before generating interrupt + + u32:0-4294967295 + TX interrupt coalescing frames threshold + + + + + + + + + Delay in microseconds before generating TX interrupt while servicing IRQ + + u32:0-16384 + TX IRQ interrupt coalescing delay + + + + + + + + + Number of TX frames before generating interrupt while servicing IRQ + + u32:0-4294967295 + TX IRQ interrupt coalescing frames threshold + + + + + + + + + Time in microseconds between updating coalescing statistics + + u32:0-4294967295 + Statistics block interval + + + + + + + + + Lower packet rate threshold for adaptive coalescing + + u32:0-4294967295 + Low packet rate threshold + + + + + + + + + RX coalescing delay (usecs) for low packet rate + + u32:0-16384 + Low-rate RX coalescing delay + + + + + + + + + RX coalescing frames threshold for low packet rate + + u32:0-4294967295 + Low-rate RX coalescing frames threshold + + + + + + + + + TX coalescing delay (usecs) for low packet rate + + u32:0-16384 + Low-rate TX coalescing delay + + + + + + + + + TX coalescing frames threshold for low packet rate + + u32:0-4294967295 + Low-rate TX coalescing frames threshold + + + + + + + + + Upper packet rate threshold for adaptive coalescing + + u32:0-4294967295 + High packet rate threshold + + + + + + + + + RX coalescing delay (usecs) for high packet rate + + u32:0-16384 + High-rate RX coalescing delay + + + + + + + + + RX coalescing frames threshold for high packet rate + + u32:0-4294967295 + High-rate RX coalescing frames threshold + + + + + + + + + TX coalescing delay (usecs) for high packet rate + + u32:0-16384 + High-rate TX coalescing delay + + + + + + + + + TX coalescing frames threshold for high packet rate + + u32:0-4294967295 + High-rate TX coalescing frames threshold + + + + + + + + + Sampling interval for adaptive coalescing (in seconds) + + u32:0-4294967295 + Adaptive sampling interval + + + + + + + + + Enable RX CQE (Completion Queue Entry) mode + + + + + + Enable TX CQE (Completion Queue Entry) mode + + + + + + Maximum number of bytes to aggregate before transmitting + + u32:0-4294967295 + TX aggregation maximum bytes + + + + + + + + + Maximum number of frames to aggregate before transmitting + + u32:0-4294967295 + TX aggregation maximum frames + + + + + + + + + Maximum time in microseconds to wait before transmitting aggregated frames + + u32:0-16384 + TX aggregation timeout + + + + + + + + #include #include #include -- cgit v1.2.3