net: hns3: Fix for DEFAULT_DV when dev doesn't support DCB
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 20 Sep 2017 10:52:52 +0000 (18:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 23:15:39 +0000 (16:15 -0700)
commitd221df4e0faae2b9cc8ad78f3e5e777461b6b542
tree20ae181253c30f1945a1b087a5241c2342abfbd7
parent2daf4a6536f3109ed0ed758cec14743e0e5c20ea
net: hns3: Fix for DEFAULT_DV when dev doesn't support DCB

When ae_dev doesn't support DCB, DEFAULT_DV must be set to
a lower value, otherwise the buffer allocation process will
fail.
This patch fix it by setting it to 30K bytes.

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c