]> 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)
commit9279c686275c6f6815136952dc24d1178e304a20
tree20ae181253c30f1945a1b087a5241c2342abfbd7
parente301a4fefef2781545041f769a64f63ce0c2557d
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: 22c0e2ce21dd ("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