| b0fed384 | 21-Dec-2021 |
Weiguo Li <[email protected]> |
net/sfc: fix memory allocation size for cache
The size of unit cache should be sizeof(**cache) instead of sizeof(*cache). Memory reallocation is inadequate by sizeof(*cache) for the platform whose s
net/sfc: fix memory allocation size for cache
The size of unit cache should be sizeof(**cache) instead of sizeof(*cache). Memory reallocation is inadequate by sizeof(*cache) for the platform whose size of pointer is 32-bits. Found by coccinelle (see https://coccinelle.gitlabpages.inria.fr/website) script.
Fixes: 63abf8d29225 ("net/sfc: support SW stats groups") Cc: [email protected]
Signed-off-by: Weiguo Li <[email protected]> Reviewed-by: Andrew Rybchenko <[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 ...
|
| 55ac9b25 | 17-Nov-2021 |
Ivan Malov <[email protected]> |
net/sfc: refine order of checks on MAE action set attach
The number of counters being non-zero can be detected before the action set registry traversal, so move the check outside.
Signed-off-by: Iv
net/sfc: refine order of checks on MAE action set attach
The number of counters being non-zero can be detected before the action set registry traversal, so move the check outside.
Signed-off-by: Ivan Malov <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]> Reviewed-by: Andy Moreton <[email protected]>
show more ...
|
| 69fbb4e9 | 25-Oct-2021 |
Ivan Malov <[email protected]> |
net/sfc: ignore direction attributes in transfer flows
[1] has deprecated the use of direction attributes in "transfer" flows. Ignore them during the transition period.
[1] commit 9d2a349b388a ("et
net/sfc: ignore direction attributes in transfer flows
[1] has deprecated the use of direction attributes in "transfer" flows. Ignore them during the transition period.
[1] commit 9d2a349b388a ("ethdev: deprecate direction attributes in transfer flows")
Signed-off-by: Ivan Malov <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]>
show more ...
|