]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_core: supporting 64b counters
authorVu Pham <vu@mellanox.com>
Fri, 18 May 2012 22:01:29 +0000 (15:01 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:23 +0000 (14:45 -0700)
commit8606100969dc1aafdef36b08fcbdea59afa03a47
tree82d2ca6a59fca3fa0507ab93debab65323be9ed8
parent41126bba927a2fc4ecb4ab45226536bc2c31f7ee
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>
drivers/infiniband/hw/mlx4/mad.c