]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for rx_priv_buf_alloc not setting rx shared buffer
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 20 Sep 2017 10:52:54 +0000 (18:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 23:15:39 +0000 (16:15 -0700)
commitd479e16b8b54a6ad8c8e91b54c3b37dfc5368d21
tree32989bf175e0e99691c9fd4bc47237dc7dc359de
parentc6090bdbdebb942c9933f3002284a30528a39f3a
net: hns3: Fix for rx_priv_buf_alloc not setting rx shared buffer

rx_priv_buf_alloc is used to tell hardware how much buffer is
used for rx direction, right now only the private buffer is
assigned.
For ae_dev that doesn't support DCB, private rx buffer is assigned
to zero, only shared rx buffer is used. So not setting the shared
rx buffer cause dropping of packet in SSU.

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