]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Check ets capability before initializing ets settings
authorHuy Nguyen <huyn@mellanox.com>
Wed, 28 Dec 2016 12:58:40 +0000 (14:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:36:53 +0000 (14:36 -0500)
commit898c76d51fa1f16a6a5fd94a3d1728e47bea25c6
tree98c82fc485103ee2b3b0372c3a9fe0ac1e96c3b8
parent67b84443dc7578f1259f2adc3a7d6202a2e87400
net/mlx5e: Check ets capability before initializing ets settings

During the initial setup, the ets command is sent to firmware
without checking if the HCA supports ets. This causes the invalid
command error. Add the ets capiblity check before sending firmware
command to initialize ets settings.

Fixes: 5727a61a16a8 ("net/mlx5e: ConnectX-4 firmware support for DCBX")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c