net/bnxt/tf_ulp: add stats cache for Thor2
This change adds a stats cache for Thor2 flows using counters. Flow stats will be harvested periodically in the background and stats reads by the applicati
net/bnxt/tf_ulp: add stats cache for Thor2
This change adds a stats cache for Thor2 flows using counters. Flow stats will be harvested periodically in the background and stats reads by the application will be returned stats from the cache and not by initiating a read from HW.
This change also adds read-clear functionality for counter resets and restructures the stats collection while loop to guarantee full coverage of entries added or removed during the collection period.
Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Jay Ding <jay.ding@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|