#
1acb7f54 |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
dev: hide driver object
Make rte_driver opaque for non internal users. This will make extending this object possible without breaking the ABI.
Introduce a new driver header and move rte_driver defi
dev: hide driver object
Make rte_driver opaque for non internal users. This will make extending this object possible without breaking the ABI.
Introduce a new driver header and move rte_driver definition. Update drivers and library to use the internal header.
Some applications may have been dereferencing rte_driver objects, mark this object's accessors as stable.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
show more ...
|
#
b0fed384 |
| 21-Dec-2021 |
Weiguo Li <liwg06@foxmail.com> |
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: stable@dpdk.org
Signed-off-by: Weiguo Li <liwg06@foxmail.com> Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
50448dd3 |
| 02-Nov-2021 |
Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> |
net/sfc: merge Rx and Tx doorbell counters into one
Datapath queue is either Rx or Tx, so just one counter is sufficient for doorbells. It can count Tx doorbells in the case of Tx queue and Rx doorb
net/sfc: merge Rx and Tx doorbell counters into one
Datapath queue is either Rx or Tx, so just one counter is sufficient for doorbells. It can count Tx doorbells in the case of Tx queue and Rx doorbells in the case of Rx queue.
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
acc47448 |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: collect per queue stats in EF100 Tx
If Tx datapath collects per queue statistics, use these stats to provide opackets and obytes in basic ethdev stats.
Signed-off-by: Andrew Rybchenko <and
net/sfc: collect per queue stats in EF100 Tx
If Tx datapath collects per queue statistics, use these stats to provide opackets and obytes in basic ethdev stats.
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
show more ...
|
#
395ffcb4 |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: collect per queue stats in EF100 Rx
If Rx datapath collects per queue statistics, use these stats to provide ipackets and ibytes in basic ethdev stats.
Signed-off-by: Andrew Rybchenko <and
net/sfc: collect per queue stats in EF100 Rx
If Rx datapath collects per queue statistics, use these stats to provide ipackets and ibytes in basic ethdev stats.
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
show more ...
|
#
63abf8d2 |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: support SW stats groups
Add support for grouping SW stats together. When stats are grouped the corresponding stats values for each queue are obtained during calling one read callback. This
net/sfc: support SW stats groups
Add support for grouping SW stats together. When stats are grouped the corresponding stats values for each queue are obtained during calling one read callback. This is useful to group per-queue stats 'packets' and 'bytes' to keep stats consistent, i.e. a number of bytes corresponds to a number of packets. These stats will be added in the following patches.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
ec5403d7 |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: add toggle to disable total stat
Add toggle to disable total SW stat. This is useful for per-queue 'packets' and 'bytes' to not conflict with corresponding basic stats. These stats will be
net/sfc: add toggle to disable total stat
Add toggle to disable total SW stat. This is useful for per-queue 'packets' and 'bytes' to not conflict with corresponding basic stats. These stats will be added in the following patches.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
6de52059 |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: prepare not having some SW stats on adapter
Global description structure of SW stats is used currently. Following patches introduce SW stats that may be unavailable for some adapters, so ad
net/sfc: prepare not having some SW stats on adapter
Global description structure of SW stats is used currently. Following patches introduce SW stats that may be unavailable for some adapters, so add per-adapter descriptions to safely work with multiple adapters.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
c704e5df |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: optimize getting number of SW stats
Optimize getting number of SW stats by caching the value during device configure since it's the only place it may change.
Signed-off-by: Ivan Ilchenko <
net/sfc: optimize getting number of SW stats
Optimize getting number of SW stats by caching the value during device configure since it's the only place it may change.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
fc66e84d |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: fix missing const of SW stats descriptions
Description is a global variable shared by all adapters and must not be modified.
Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx doorbells")
net/sfc: fix missing const of SW stats descriptions
Description is a global variable shared by all adapters and must not be modified.
Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx doorbells") Cc: stable@dpdk.org
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
993040da |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: fix cleanup order of SW stats
Fix cleanup order of SW stats structures to be reversed to initialization order.
Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx doorbells") Cc: stable@dp
net/sfc: fix cleanup order of SW stats
Fix cleanup order of SW stats structures to be reversed to initialization order.
Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx doorbells") Cc: stable@dpdk.org
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
e00c3a0c |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: rename SW stats structures
Delete 'x' in: 1. per-adapter 'struct sfc_sw_xstats' with corresponding field 'sw_xstats'. 2. 'struct sfc_sw_xstat_descr' and callback prototype
net/sfc: rename SW stats structures
Delete 'x' in: 1. per-adapter 'struct sfc_sw_xstats' with corresponding field 'sw_xstats'. 2. 'struct sfc_sw_xstat_descr' and callback prototype 'sfc_get_sw_xstat_val_t' with its implementations.
The 'x' stands for 'extended' in RTE but from sfc point of view these are just SW stats.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
a7bc71d1 |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: rename accumulative SW stats to total
This is a better word used in RTE docs.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@ok
net/sfc: rename accumulative SW stats to total
This is a better word used in RTE docs.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
f0243339 |
| 28-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: rename array of SW stats descriptions
Rename global array of SW stats descriptions declared as 'struct sfc_sw_xstat_descr sfc_sw_xstats[]' to 'sfc_sw_stats_descr[]' to avoid ambiguity since
net/sfc: rename array of SW stats descriptions
Rename global array of SW stats descriptions declared as 'struct sfc_sw_xstat_descr sfc_sw_xstats[]' to 'sfc_sw_stats_descr[]' to avoid ambiguity since there is structure declared as 'struct sfc_sw_xstats'.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
67f1b4f1 |
| 15-Sep-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: fix getting accumulative SW xstat
Add missing initialisation of the accumulative SW xstat to zero since it is sum of per-queue xstats.
Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx d
net/sfc: fix getting accumulative SW xstat
Add missing initialisation of the accumulative SW xstat to zero since it is sum of per-queue xstats.
Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx doorbells") Cc: stable@dpdk.org
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
#
fdd7719e |
| 23-Jul-2021 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
net/sfc: add xstats for Rx/Tx doorbells
Rx/Tx doorbells statistics are collected in software and available per queue. These stats are useful for performance investigation.
Signed-off-by: Ivan Ilche
net/sfc: add xstats for Rx/Tx doorbells
Rx/Tx doorbells statistics are collected in software and available per queue. These stats are useful for performance investigation.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Reviewed-by: Andy Moreton <amoreton@xilinx.com>
show more ...
|