virtio_net: add per queue interrupt coalescing support
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 0 repliesApplied 3/3
- v43 patches 6 repliesSuperseded
- v34 patches 3 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 4 patches | 6 replies | Superseded | |
| v1 posting 2/2 | 4 patches | 2 replies | Superseded | |
| v1 posting 1/2 | 4 patches | 13 replies | Superseded |
Changes in v5 from the cover letter
- Addressed the comment From Paolo Abeni
- Update comment for the range of queues to be updated according to current code
---
virtio_net: enable per queue interrupt coalesce feature
Patches in v5 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | virtio_net: extract interrupt coalescing settings to a structuredrivers/ | +19 | 0 replies | Applied |
| 2/3 | virtio_net: support per queue interrupt coalesce commanddrivers/ include/ | +155 | 0 replies | Applied |
| 3/3 | virtio_net: enable per queue interrupt coalesce featuredrivers/ | +3 | 0 replies | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Dragos Tatulea | Jiri Pirko | Jason Wang | Michael S. Tsirkin | Heng Qi |
|---|---|---|---|---|---|
| 1/3 | R-b | R-b | A-b | A-b | R-b |
| 2/3 | R-b | R-b | A-b | A-b | R-b |
| 3/3 | R-b | R-b | A-b | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH net-next V5 0/3] virtio_net: add per queue interrupt coalescing support
Currently, coalescing parameters are grouped for all transmit and receive virtqueues. This patch series add support to set or get the parameters for a specified virtqueue.
When the traffic between virtqueues is unbalanced, for example, one virtqueue is busy and another virtqueue is idle, then it will be very useful to control coalescing parameters at the virtqueue granularity.
Example command:
$ ethtool -Q eth5 queue_mask 0x1 --coalesce tx-packets 10 Would set max_packets=10 to VQ 1. $ ethtool -Q eth5 queue_mask 0x1 --coalesce rx-packets 10 Would set max_packets=10 to VQ 0. $ ethtool -Q eth5 queue_mask 0x1 --show-coalesce Queue: 0 Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0
rx-usecs: 222
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 256
tx-usecs: 222
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256
rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0
rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0
Gavin Li (3):
virtio_net: extract interrupt coalescing settings to a structure
virtio_net: support per queue interrupt coalesce command
---
changelog:v1->v2
- Addressed the comment from Xuan Zhuo
- Allocate memory from heap instead of using stack memory for control vq messagesv2->v3
- Addressed the comment from Heng Qi
- Use control_buf for control vq messagesv3->v4
- Addressed the comment from Michael S. Tsirkin
- Refactor set_coalesce of both per queue and global config that were littered with if/else branchesv4->v5
- Addressed the comment From Paolo Abeni
- Update comment for the range of queues to be updated according to current code
---
virtio_net: enable per queue interrupt coalesce feature
drivers/net/virtio_net.c | 187 ++++++++++++++++++++++++++++---- include/uapi/linux/virtio_net.h | 14 +++ 2 files changed, 177 insertions(+), 24 deletions(-)
Signature · 1 line
2.39.1