]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Report mlx5 packet pacing capabilities when querying device
authorBodong Wang <bodong@mellanox.com>
Thu, 1 Dec 2016 11:43:13 +0000 (13:43 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:50 +0000 (13:39 -0500)
commitc0a11f410cee6430a2e9124d5ae84aecf20e2b12
tree88e16c2330da162bfdb5d7fd75dbdd29d3cf67da
parente825bfdb5f23c1e527260e3e1b50520b94a4f3be
IB/mlx5: Report mlx5 packet pacing capabilities when querying device

Enable mlx5 based hardware to report packet pacing capabilities
from kernel to user space. Packet pacing allows to limit the rate to any
number between the maximum and minimum, based on user settings.

The capabilities are exposed to user space through query_device by uhw.
The following capabilities are reported:

1. The maximum and minimum rate limit in kbps supported by packet pacing.
2. Bitmap showing which QP types are supported by packet pacing operation.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
include/uapi/rdma/mlx5-abi.h