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)
commitc1e0bfc1312d0e06bdb24e6e4e7e10b0b4313ec6
tree3bb0dbd385118bcc6cb1ef4157fc0f29e57cf9d3
parent7d9336d80b0b35d3537d37ff35e08dcb425073ed
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