• O
    mlx4_core: Add network flow counters · f2a3f6a3
    Or Gerlitz 提交于
    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: NOr Gerlitz <ogerlitz@mellanox.co.il>
    Signed-off-by: NRoland Dreier <roland@purestorage.com>
    f2a3f6a3
device.h 15.5 KB