]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit927d03cc7bc464438701f120e7ed96e939b2e142
tree20ae181253c30f1945a1b087a5241c2342abfbd7
parent2c0efc880953040bdb337d86789939b3d7ad582b
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: 575d84053c84 ("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