mlx4_core: supporting 64b counters
Support 64b counters using PMA_COUNTERS_EXT mad:
. Sending the mad to fw for IB transport using MAD_IFC
. Sending mailbox command QUERY_IF_STAT to fw for EN transport
Note: Ported from Mellanox OFED 2.4.
64-bit counters can wrap around. 32-bit counters saturate at UINT_MAX
(as in upstream code but unlike in Mellanox OFED 2.4 code where they
can wrap around!)
Orabug:
21094165
Signed-off-by: Vu Pham <vu@mellanox.com>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Reviewed-by: Ajaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>