igb: offloading of receive filters
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest10 patches 20 repliesIn review
- v610 patches 6 repliesSuperseded
- v59 patches 4 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 8 patches | 8 replies | Superseded | |
| v3 posting 2/2 | 0 of 8 patches | 0 replies | Superseded | |
| v3 posting 1/2 | 8 patches | 4 replies | Superseded | |
| v2 | 8 patches | 4 replies | Superseded | |
| v1 | 8 patches | 12 replies | Superseded |
Changes in v7 from the cover letter
- Because the i210 doesn't support steering traffic per source address (only filtering works), an error is emitted when only an source address is specified in a classification rule;
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | igb: Fix not adding filter elements to the listdrivers/ | +1 | 2 replies | |
| 2/10 | igb: Fix queue selection on MAC filters on i210drivers/ | +9 | 2 replies | |
| 3/10 | igb: Enable the hardware traffic class feature bit for igb modelsdrivers/ | +3 | 2 replies | |
| 4/10 | igb: Add support for MAC address filters specifying source addressesdrivers/ drivers/ drivers/ | +37 | 2 replies | |
| 5/10 | igb: Add support for enabling queue steering in filtersdrivers/ drivers/ drivers/ | +33 | 2 replies | |
| 6/10 | igb: Allow filters to be added for the local MAC addressdrivers/ | +36 | 2 replies | |
| 7/10 | igb: Enable nfc filters to specify MAC addressesdrivers/ drivers/ | +32 | 2 replies | |
| 8/10 | igb: Add MAC address support for ethtool nftuple filtersdrivers/ | +39 | 2 replies | |
| 9/10 | igb: Add the skeletons for tc-flower offloadingdrivers/ | +66 | 2 replies | |
| 10/10 | igb: Add support for adding offloaded clsflower filtersdrivers/ drivers/ | +188 | 2 replies |
Reviews trailers per patch
None of the 10 patches has a Reviewed-by or Acked-by.
| Patch | Aaron Brown |
|---|---|
| 1/10 | T-b |
| 2/10 | T-b |
| 3/10 | T-b |
| 4/10 | T-b |
| 5/10 | T-b |
| 6/10 | T-b |
| 7/10 | T-b |
| 8/10 | T-b |
| 9/10 | T-b |
| 10/10 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [next-queue PATCH v7 00/10] igb: offloading of receive filters
Hi,
Known issue:
- It seems that the the QSEL bits in the RAH registers do not have any effect for source address (i.e. steering doesn't work for source address filters), everything is pointing to a hardware (or documentation) issue;
Changes from v6:
- Because the i210 doesn't support steering traffic per source address (only filtering works), an error is emitted when only an source address is specified in a classification rule;
Changes from v5:
- Filters can now be added for local MAC addresses, when removed, they return to their initial configuration (thanks for the testing Aaron);
Changes from v4:
- Added a new bit to the MAC address filters internal representation to mean that some filters are steering filters (i.e. they direct traffic to queues);
- And, this is only supported in i210;
Changes from v3:
- Addressed review comments from Aaron F. Brown and Jakub Kicinski;
Changes from v2:
- Addressed review comments from Jakub Kicinski, mostly about coding style adjustments and more consistent error reporting;
Changes from v1:
- Addressed review comments from Alexander Duyck and Florian Fainelli;
- Adding and removing cls_flower filters are now proposed in the same patch;
- cls_flower filters are kept in a separated list from "ethtool" filters (so that section of the original cover letter is no longer valid);
- The patch adding support for ethtool filters is now independent from the rest of the series;
Original cover letter:
This series enables some ethtool and tc-flower filters to be offloaded to igb-based network controllers. This is useful when the system configurator want to steer kinds of traffic to a specific hardware queue.
The first two commits are bug fixes.
The basis of this series is to export the internal API used to configure address filters, so they can be used by ethtool, and extending the functionality so an source address can be handled.
Then, we enable the tc-flower offloading implementation to re-use the same infrastructure as ethtool, and storing them in the per-adapter "nfc" (Network Filter Config?) list. But for consistency, for destructive access they are separated, i.e. an filter added by tc-flower can only be removed by tc-flower, but ethtool can read them all.
Only support for VLAN Prio, Source and Destination MAC Address, and Ethertype is enabled for now.
Open question:
- igb is initialized with the number of traffic classes as 1, if we want to use multiple traffic classes we need to increase this value, the only way I could find is to use mqprio (for example). Should igb be initialized with, say, the number of queues as its "num_tc"?
--
Vinicius Costa Gomes (10):
igb: Fix not adding filter elements to the list
igb: Fix queue selection on MAC filters on i210
igb: Enable the hardware traffic class feature bit for igb models
igb: Add support for MAC address filters specifying source addresses
igb: Add support for enabling queue steering in filters
igb: Allow filters to be added for the local MAC address
igb: Enable nfc filters to specify MAC addresses
igb: Add MAC address support for ethtool nftuple filters
igb: Add the skeletons for tc-flower offloading
igb: Add support for adding offloaded clsflower filters
.../net/ethernet/intel/igb/e1000_defines.h | 2 + drivers/net/ethernet/intel/igb/igb.h | 13 + drivers/net/ethernet/intel/igb/igb_ethtool.c | 73 +++- drivers/net/ethernet/intel/igb/igb_main.c | 370 +++++++++++++++++- 4 files changed, 441 insertions(+), 17 deletions(-)
--
2.17.0