Mike Marciniszyn e5cce44aff IB/hfi1: Fix tstats alloc and dealloc
The tstats allocation is done in the accelerated ndo_init function but the
allocation is not tested to succeed.

The deallocation is not done in the accelerated ndo_uninit function.

Resolve issues by testing for an allocation failure and adding the
free_percpu in the uninit function.

Fixes: aa0616a9bd52 ("IB/hfi1: switch to core handling of rx/tx byte/packet counters")
Link: https://lore.kernel.org/r/1642287756-182313-5-git-send-email-mike.marciniszyn@cornelisnetworks.com
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-01-28 11:12:15 -04:00
..
2019-06-28 22:34:26 -03:00
2021-08-25 14:56:48 -03:00
2021-12-07 13:22:54 -04:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-12-07 13:22:54 -04:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2020-05-21 11:23:56 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-05-01 09:15:05 -07:00
2019-02-05 18:07:43 -05:00
2019-04-24 11:31:49 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-07-30 10:06:08 -03:00
2021-09-08 08:33:04 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00