Skip to content

RFC veth: more flexible channels number configuration

Paolo Abeni netdev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest5 patches 0 repliesNew
  2. v1 RFC3 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- report more consistent 'combined' count
- make set_channel as resilient as possible to errors
- drop module parameter - but I would still consider it.
- more self-tests

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5veth: always report zero combined channelsdrivers/net/veth.c+0 -20 replies
2/5veth: factor out initialization helperdrivers/net/veth.c+92 -490 replies
3/5veth: implement support for set_channel ethtool opdrivers/net/veth.c+123 -20 replies
4/5veth: create by default nr_possible_cpus queuesdrivers/net/veth.c+37 -00 replies
5/5selftests: net: veth: add tests for set_channeltools/testing/selftests/net/veth.sh+182 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH RFC v2 0/5] veth: more flexible channels number configuration

XDP setups can benefit from multiple veth RX/TX queues. Currently veth allow setting such number only at creation time via the 'numrxqueues' and 'numtxqueues' parameters.

This series introduces support for the ethtool set_channel operation and allows configuring the queue number via a new module parameter.

The veth default configuration is not changed.

Finally self-tests are updated to check the new features, with both valid and invalid arguments.

This iteration covers the feedback provided by Toke and Jakub.

RFC v1 -> RFC v2:
- report more consistent 'combined' count
- make set_channel as resilient as possible to errors
- drop module parameter - but I would still consider it.
- more self-tests

Paolo Abeni (5):
veth: always report zero combined channels
veth: factor out initialization helper
veth: implement support for set_channel ethtool op
veth: create by default nr_possible_cpus queues
selftests: net: veth: add tests for set_channel

 drivers/net/veth.c                  | 305 +++++++++++++++++++++++-----
 tools/testing/selftests/net/veth.sh | 183 ++++++++++++++++-
 2 files changed, 434 insertions(+), 54 deletions(-)
Signature · 1 line
2.26.3