• Y
    net/mlx5: Expose raw packet pacing APIs · 1326034b
    Yishai Hadas 提交于
    Expose raw packet pacing APIs to be used by DEVX based applications.
    The existing code was refactored to have a single flow with the new raw
    APIs.
    
    The new raw APIs considered the input of 'pp_rate_limit_context', uid,
    'dedicated', upon looking for an existing entry.
    
    This raw mode enables future device specification data in the raw
    context without changing the existing logic and code.
    
    The ability to ask for a dedicated entry gives control for application
    to allocate entries according to its needs.
    
    A dedicated entry may not be used by some other process and it also
    enables the process spreading its resources to some different entries
    for use different hardware resources as part of enforcing the rate.
    
    The counter per entry was changed to be u64 to prevent any option to
    overflow.
    Signed-off-by: NYishai Hadas <yishaih@mellanox.com>
    Acked-by: NSaeed Mahameed <saeedm@mellanox.com>
    Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
    1326034b
driver.h 30.8 KB