diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2017-09-20 12:52:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 01:15:39 +0200 |
commit | 2daf4a6536f3109ed0ed758cec14743e0e5c20ea (patch) | |
tree | 2b2f04ee94725f0d38e82a375ac4a511ddc8e7ca /drivers/net/ethernet/micrel | |
parent | net: hns3: Cleanup for ROCE capability flag in ae_dev (diff) | |
download | linux-2daf4a6536f3109ed0ed758cec14743e0e5c20ea.tar.xz linux-2daf4a6536f3109ed0ed758cec14743e0e5c20ea.zip |
net: hns3: Fix initialization when cmd is not supported
When ae_dev doesn't support DCB, rx_priv_wl_config,
common_thrd_config and tm_qs_bp_cfg can't be called, otherwise
cmd return fail, which causes the hclge module initialization
process to fail.
This patch fix it by adding a DCB capability flag to check if
the ae_dev support DCB.
Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/micrel')
0 files changed, 0 insertions, 0 deletions