OSDN Git Service

IB/hfi1: switch to core handling of rx/tx byte/packet counters
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 10 Nov 2020 19:47:34 +0000 (20:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 22:58:13 +0000 (14:58 -0800)
commitaa0616a9bd524f8dc2461af2c4acfea90833b38c
tree619f1cf82d880a4794327646253060602c552e96
parentc9f64d1fc101c64ea2be1b2e562b4395127befc9
IB/hfi1: switch to core handling of rx/tx byte/packet counters

Use netdev->tstats instead of a member of hfi1_ipoib_dev_priv for storing
a pointer to the per-cpu counters. This allows us to use core
functionality for statistics handling.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/infiniband/hw/hfi1/driver.c
drivers/infiniband/hw/hfi1/ipoib.h
drivers/infiniband/hw/hfi1/ipoib_main.c
drivers/infiniband/hw/hfi1/ipoib_tx.c