]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Check ets capability before ets query FW command
authorMoshe Shemesh <moshe@mellanox.com>
Thu, 19 Jan 2017 12:53:07 +0000 (14:53 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 29 Jan 2017 21:31:26 +0000 (23:31 +0200)
commit0a0094638bc5d218841ba1a8e03ce8e3d1c15daa
tree0cd5f5b66688fc23634a6e89f848d80f64b66dc7
parentd0e107eceaef4dc7569b48f54c6387951d9fa034
net/mlx5e: Check ets capability before ets query FW command

On dcbnl callback getpgtccfgtx, the driver should check the ets
capability before ets query command is sent to firmware.
It is valid to return from this void function without changing in/out
parameters, as these parameters are initialized to
DCB_ATTR_VALUE_UNDEFINED.

Fixes: 21ecc4b47aa4 ("net/mlx5e: Support DCBX CEE API")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c