• Or Gerlitz's avatar
    mlx4_core: Add network flow counters · f2a3f6a3
    Or Gerlitz authored
    ConnectX devices support a set of flow counters that can be attached
    to a set containing one or more QPs.  Each such counter tracks receive
    and transmit packets and bytes of these QPs.  This patch queries the
    device to check support for counters, handles initialization of the
    HCA to enable counters, and initializes a bitmap allocator to control
    counter allocations.  Derived from patch by Eli Cohen <eli@mellanox.co.il>.
    Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.co.il>
    Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
    f2a3f6a3
main.c 40.6 KB