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)
commit4525a45bfad55a00ef218c5fbe5d98a3d8170bf5
tree98c82fc485103ee2b3b0372c3a9fe0ac1e96c3b8
parent1efbd205b3cc5882a8c386c58a57134044e9d5ba
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: e207b7e99176 ("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