diff options
| author | Marcin Szycik <[email protected]> | 2022-01-27 15:04:26 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2022-03-09 16:02:58 +0000 |
| commit | c8ff29b5874204d26eed90984db6789ccde62e3c (patch) | |
| tree | 2eabfa6273795602fe41f17561d1844b21f422bc /drivers/net/ethernet/intel/ice/ice_main.c | |
| parent | ice: Add support for inner etype in switchdev (diff) | |
| download | kernel-c8ff29b5874204d26eed90984db6789ccde62e3c.tar.gz kernel-c8ff29b5874204d26eed90984db6789ccde62e3c.zip | |
ice: Add slow path offload stats on port representor in switchdev
Implement callbacks to check for stats and fetch port representor stats.
Stats are taken from RX/TX ring corresponding to port representor and show
the number of bytes/packets that were not offloaded.
To see slow path stats run:
ifstat -x cpu_hits -a
Signed-off-by: Marcin Szycik <[email protected]>
Tested-by: Sandeep Penigalapati <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index 289e5c99e313..ca22c60636b9 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -6113,9 +6113,9 @@ int ice_up(struct ice_vsi *vsi) * This function fetches stats from the ring considering the atomic operations * that needs to be performed to read u64 values in 32 bit machine. */ -static void -ice_fetch_u64_stats_per_ring(struct u64_stats_sync *syncp, struct ice_q_stats stats, - u64 *pkts, u64 *bytes) +void +ice_fetch_u64_stats_per_ring(struct u64_stats_sync *syncp, + struct ice_q_stats stats, u64 *pkts, u64 *bytes) { unsigned int start; |
