[PATCH v2 0/7] igb: Implement Transmit Rate Limiting (TRL)

Josh Hilke posted 7 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260611-igb-trl-v2-0-bd58de9eb0fa@google.com
Maintainers: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>, Sriram Yagnaraman <sriram.yagnaraman@ericsson.com>, Jason Wang <jasowang@redhat.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
There is a newer version of this series
hw/net/igb.c           |  44 +++++++++++
hw/net/igb_common.h    |   1 +
hw/net/igb_core.c      | 138 ++++++++++++++++++++++++++++++--
hw/net/igb_core.h      |  11 +++
hw/net/igb_regs.h      |  11 +++
tests/qtest/igb-test.c | 209 +++++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 409 insertions(+), 5 deletions(-)
[PATCH v2 0/7] igb: Implement Transmit Rate Limiting (TRL)
Posted by Josh Hilke 1 month, 2 weeks ago
This is v2 of a patch series implements the Transmit Rate Limiter (TRL) feature for
the Intel 82576 (igb) network device emulation in QEMU.

v1: https://lists.gnu.org/archive/html/qemu-devel/2026-06/msg02516.html

Changes in v2 are minor refactors based on Akihiko's review, and adding an
additional Qtest to verify register state. See the changelog below for more
details.

Changelog
=========
v2:
 - Add VMState for TRL
 - Refactored TRL state in IGBCore to encapsulate all per-queue fields in a
   single IGBTrlQueue structure.
 - Add TRLRC to the TRL state struct to ensure that the rate limit is tracked
   per queue (Akihiko)
 - Add a commit with an additional Qtest to verify TRLC state is per-queue.
 - Fix indentation in Qtest (Akihiko)

Signed-off-by: Josh Hilke <jrhilke@google.com>
---
Josh Hilke (7):
      igb: Define TRL registers and core state
      igb: Add VMState support for TRL state
      igb: Implement TRL register write and configuration
      igb: Refactor TX path to return processed byte count
      igb: Implement TRL throttling and timer resumption
      igb: Add QTest for Transmit Rate Limiter register multiplexing
      igb: Add QTest for Transmit Rate Limiter traffic throttling

 hw/net/igb.c           |  44 +++++++++++
 hw/net/igb_common.h    |   1 +
 hw/net/igb_core.c      | 138 ++++++++++++++++++++++++++++++--
 hw/net/igb_core.h      |  11 +++
 hw/net/igb_regs.h      |  11 +++
 tests/qtest/igb-test.c | 209 +++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 409 insertions(+), 5 deletions(-)
---
base-commit: 98b060da3a4f92b2a994ead5b16a87e783baf77c
change-id: 20260608-igb-trl-19be198da6f2

Best regards,
-- 
Josh Hilke <jrhilke@google.com>