IB/mlx5: Add support to dropless RQ
RQs that were configured for "delay drop" will prevent packet drops when their WQEs are depleted. Marking an RQ to be drop-less is done by setting delay_drop_en in RQ context using CREATE_RQ command. Since this feature is globally activated/deactivated by using the SET_DELAY_DROP command on all the marked RQs, we activated/deactivated it according to the number of RQs with 'delay_drop' enabled. When timeout is expired, then the feature is deactivated. Therefore the driver handles the delay drop timeout event and reactivate it. Signed-off-by:Maor Gottlieb <maorg@mellanox.com> Reviewed-by:
Yishai Hadas <yishaih@mellanox.com> Signed-off-by:
Leon Romanovsky <leon@kernel.org> Signed-off-by:
Doug Ledford <dledford@redhat.com>
Showing
- drivers/infiniband/hw/mlx5/main.c 56 additions, 4 deletionsdrivers/infiniband/hw/mlx5/main.c
- drivers/infiniband/hw/mlx5/mlx5_ib.h 19 additions, 0 deletionsdrivers/infiniband/hw/mlx5/mlx5_ib.h
- drivers/infiniband/hw/mlx5/qp.c 37 additions, 0 deletionsdrivers/infiniband/hw/mlx5/qp.c
- include/linux/mlx5/mlx5_ifc.h 1 addition, 1 deletioninclude/linux/mlx5/mlx5_ifc.h
Loading
Please register or sign in to comment