virtio-net: Support flow filter for receive packets
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest5 patches 15 repliesIn review
- v65 patches 52 repliesSuperseded
- v55 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 1 of 5 patches | 1 reply | Superseded | |
| v2 | 6 patches | 1 reply | Superseded | |
| v1 | 7 patches | 16 replies | Superseded |
Changes in v7 from the cover letter
- fixed plenty of grammar suggestions from Cornelia
- had to drop Michael's suggestion on placing things in net config space because:
a. its huge in size
b. different across member devices
c. creating new dma interface adds more registers and duplicates functionality
of cvq
d. existing cvq provides single comm channel for get and set all rarely accessed
config attributes and capabilities, provides single place for device implmentation to to get/set/query
e. matches with recent net statistics cvq commands
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | virtio-net: Add theory of operation for flow filterdevice-types/ | +78 | 0 replies | |
| 2/5 | virtio-net: Add flow filter capabilities read commandsdevice-types/ | +206 | 15 replies | |
| 3/5 | virtio-net: Add flow filter group life cycle commandsdevice-types/ | +35 | 0 replies | |
| 4/5 | virtio-net: Add flow filter match entry, action and requestsdevice-types/ | +209 | 0 replies | |
| 5/5 | virtio-net: Add flow filter device and driver requirementsdevice-types/ device-types/ device-types/ | +106 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.
Cover letter [virtio-comment] [PATCH v7 0/5] virtio-net: Support flow filter for receive packets
Summary:
========
This series improves virtio net receive packet steering to forward/steer packets to specific RQ.
This basic functionality will enable Linux ethtool steering, Accelerated receive flow steering (ARFS) as starting point, and more use cases in future.
Problem statement:
==================
Currently packet allow/drop interface has few limitations.
1. Driver cannot add or delete an individual entry for mac and vlan.
2. Driver cannot select mac+vlan combination for which
to allow/drop packet.
3. Driver cannot not set other commonly used packet match fields such as IP header fields, TCP, UDP, SCP header fields.
4. Driver cannot steer specific packets based on the match fields to specific receiveq.
5. Driver do not have multiple or dedicated virtqueues to perform flow filter requests in accelerated manner in the device.
Solution:
=========
Flow filter as a generic framework to overcome above limitations.
Overview:
=========
A flow filter defines the flow based on one or more match fields of the packet, defines an action like drop/forward to RQ.
The flow filters are organized in flow filter groups so that their processing can be ordered when multiple applications wants to use it.
Flow filters requests can be transported via control vq or dedicated flow filter virtqueue so that it does not get intermixed with other slow operations of cvq.
Flow filter requirements addressed by this series is worked by virtio community at [1].
It uses updated control vq command format from [2].
[1] https://lists.oasis-open.org/archives/virtio-comment/202308/msg00263.html
[2] https://lists.oasis-open.org/archives/virtio-comment/202310/msg00047.html
Patch summary:
==============
patch-1 adds theory of operation description for flow filter patch-2 adds device capabilities cvq commands
patch-3 adds group add/delete commands
patch-4 adds flow filter match key, action and requests to transport via vq patch-5 adds device and driver requirements
Please review.
Changelog:
==========v6->v7:
- fixed plenty of grammar suggestions from Cornelia
- had to drop Michael's suggestion on placing things in net config space because:
a. its huge in size
b. different across member devices
c. creating new dma interface adds more registers and duplicates functionality
of cvq
d. existing cvq provides single comm channel for get and set all rarely accessed
config attributes and capabilities, provides single place for device implmentation to to get/set/query
e. matches with recent net statistics cvq commandsv5->v6:
- pick next unique bit 65 as to avoid conflict with rss context feature
- fixed missing conformance links
- removed white spaces at end of linev3->v5:
- removed left over dependencies of flow filter virtqueues
- removed partial sentencev2->v3:
- removed dependency on dynamic queue infrastucture which is
not yet readyv1->v2:
- addressed comments from Satananda
- squashed with match fields definition patch of v1
- added length to the flexible array definition struct to benefit
from future runtime length bound checkers listed in
https://people.kernel.org/kees/bounded-flexible-arrays-in-c
- renamed value to key
- addressed comments from Satananda
- merged destination and action to one struct
- added vlan type match field
- kept space for types between l2, l3, l4 header match types
- renamed mask to mask_supported with shorter width
- made more fields reserved for future
- addressed comments from Heng
- grammar correction
- added field to indicate supported number of actions per flow
filter match entry
- added missing documentation for max_flow_priorities_per_group
- fixed comments from Heng
- grammar corrections
- spelling corrections
- fixed spelling from initializaton to initialization
- added more requirements for multiple actions
v0->v1:
- addressed comments from Satananda
- added device requirement to return non zero value in fields_bmap
- added device requirement to not repeat filter type in response
- added driver requirement to order filter match field as it appears in the packet
- added device requirement to fail group delete command on existing flow entries
- added mask field in the type to indicate supported mask by device and also in later patch to use it to indicate mask on adding flow filter. As a result removed the mask_supported capability field
Parav Pandit (5):
virtio-net: Add theory of operation for flow filter
virtio-net: Add flow filter capabilities read commands
virtio-net: Add flow filter group life cycle commands
virtio-net: Add flow filter match entry, action and requests
virtio-net: Add flow filter device and driver requirements
device-types/net/description.tex | 631 ++++++++++++++++++++++++ device-types/net/device-conformance.tex | 1 + device-types/net/driver-conformance.tex | 1 + 3 files changed, 633 insertions(+)
Signature · 18 lines
2.34.1 This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: [email protected] Unsubscribe: [email protected] List help: [email protected] List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/