]> 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)
commitb081496f346869b8aa4de474313c2543d2ccafb4
tree32989bf175e0e99691c9fd4bc47237dc7dc359de
parent486aaa966c86458307d747f6ab02caf6668a158e
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: 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