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)
commitd949167d68b304c0a00331cf33ef49a29b65d85f
tree88e16c2330da162bfdb5d7fd75dbdd29d3cf67da
parentca5b91d63192ceaa41a6145f8c923debb64c71fa
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