| #
68cde2a3 |
| 01-Feb-2022 |
Ivan Malov <[email protected]> |
net/sfc: use even spread mode in flow action RSS
If the user provides contiguous ascending queue IDs, use the even spread mode to avoid wasting resources which are needed to serve indirection table
net/sfc: use even spread mode in flow action RSS
If the user provides contiguous ascending queue IDs, use the even spread mode to avoid wasting resources which are needed to serve indirection table entries.
Signed-off-by: Ivan Malov <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]> Reviewed-by: Andy Moreton <[email protected]>
show more ...
|
| #
be5cbe47 |
| 01-Feb-2022 |
Ivan Malov <[email protected]> |
net/sfc: use adaptive table entry count in flow action RSS
Currently, every RSS context uses 128 indirection entries in the hardware. That is not always optimal because the entries come from a pool
net/sfc: use adaptive table entry count in flow action RSS
Currently, every RSS context uses 128 indirection entries in the hardware. That is not always optimal because the entries come from a pool shared among all PCI functions of the board, while the format of action RSS allows to pass less queue IDs.
With EF100 boards, it is possible to decide how many entries to allocate for the indirection table of a context. Make use of that in order to optimise resource usage in RSS scenarios.
Signed-off-by: Ivan Malov <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]> Reviewed-by: Andy Moreton <[email protected]>
show more ...
|
| #
f6d23053 |
| 01-Feb-2022 |
Ivan Malov <[email protected]> |
net/sfc: use non-static queue span limit in flow action RSS
On EF10 boards, the limit on how many queues an RSS context can address is 64. On EF100 boards, this parameter may vary.
Signed-off-by: I
net/sfc: use non-static queue span limit in flow action RSS
On EF10 boards, the limit on how many queues an RSS context can address is 64. On EF100 boards, this parameter may vary.
Signed-off-by: Ivan Malov <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]> Reviewed-by: Andy Moreton <[email protected]>
show more ...
|
| #
6da67e70 |
| 01-Feb-2022 |
Ivan Malov <[email protected]> |
net/sfc: rework flow action RSS support
Currently, the driver always allocates a dedicated NIC RSS context for every separate flow rule with action RSS, which is not optimal.
First of all, multiple
net/sfc: rework flow action RSS support
Currently, the driver always allocates a dedicated NIC RSS context for every separate flow rule with action RSS, which is not optimal.
First of all, multiple rules which have the same RSS specification can share a context since filters in the hardware operate this way.
Secondly, entries in a context's indirection table are not precise queue IDs but offsets with regard to the base queue ID of a filter. This way, for example, queue arrays "0, 1, 2" and "3, 4, 5" in two otherwise identical RSS specifications allow the driver to use the same context since they both yield the same table of queue offsets.
Rework flow action RSS support in order to use these optimisations.
Signed-off-by: Ivan Malov <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]> Reviewed-by: Andy Moreton <[email protected]>
show more ...
|