]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: Receive buffer support for DCBX
authorHuy Nguyen <huyn@mellanox.com>
Thu, 22 Mar 2018 02:39:17 +0000 (21:39 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 24 May 2018 21:23:33 +0000 (14:23 -0700)
commitecdf2dadee8e8c5015771b802a9851ff332d3fc4
treebdd4db7813649a1aa9d3969cc0109a6cc73388c2
parent0696d60853d58f1b9431bc689e4e4526845b790a
net/mlx5e: Receive buffer support for DCBX

Add dcbnl's set/get buffer configuration callback that allows user to
set/get buffer size configuration and priority to buffer mapping.

By default, firmware controls receive buffer configuration and priority
of buffer mapping based on the changes in pfc settings. When set buffer
call back is triggered, the buffer configuration changes to manual mode.

The manual mode means mlx5 driver will adjust the buffer configuration
accordingly based on the changes in pfc settings.

ConnectX buffer stride is 128 Bytes. If the buffer size is not multiple
of 128, the buffer size will be rounded down to the nearest multiple of
128.

Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c