]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Introduce set delay drop command
authorMaor Gottlieb <maorg@mellanox.com>
Tue, 30 May 2017 07:29:11 +0000 (10:29 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:34:28 +0000 (10:34 -0400)
commit19190cc8f83738e3f3f4d1f9c93200828fe0992c
tree3bb0dbd385118bcc6cb1ef4157fc0f29e57cf9d3
parentcbc14a1a9c5f2a12c98787b6b68160413e402936
net/mlx5: Introduce set delay drop command

Add support to SET_DELAY_DROP command.

This command will be used in downstream patches for delay packet drop.
The timeout value should be indicated by delay_drop_timeout field.
Packet processing will be delayed till timeout value passed or until
more WQEs are posted.

Setting this value to 0 disables the feature.

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>
drivers/net/ethernet/mellanox/mlx5/core/qp.c
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/qp.h