net/bnxt: avoid hard coded values when reading counters
authorSomnath Kotur <somnath.kotur@broadcom.com>
Mon, 6 Jul 2020 08:25:02 +0000 (13:55 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:53 +0000 (06:18 +0200)
commit49b8d40b1f38ac4c197768c6e585c1c15c490f47
tree8f5544f564f73fc2a73f057ba675f8e560f4b2aa
parent16dbe6abdd83b55071f4fe3b884e8cac59cc2353
net/bnxt: avoid hard coded values when reading counters

Instead of using hardcoded values for the byte/pkt value shifts/masks
to read from the HW counters, use the shift/mask values from the device
template params

Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_ulp/ulp_fc_mgr.c
drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h