linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3/hns3pf
Yunsheng Lin af854724e5 net: hns3: fix a SSU buffer checking bug
When caculating the SSU buffer, it first allocate tx and
rx private buffer, then the remaining buffer is for rx
shared buffer. The remaining buffer size should be at
least bigger than or equal to the shared_std, which is the
minimum shared buffer size required by the driver, but
currently if the remaining buffer size is equal to the
shared_std, it returns failure, which causes SSU buffer
allocation failure problem.

This patch fixes this problem by rounding up shared_std before
checking the the remaining buffer size bigger than or equal to
the shared_std.

Fixes: 46a3df9f97 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-12-18 12:01:01 -08:00
..
hclge_cmd.c net: hns3: implement the IMP reset processing for PF 2018-11-09 16:47:35 -08:00
hclge_cmd.h net: hns3: getting tx and dv buffer size through firmware 2018-12-18 12:01:01 -08:00
hclge_dcb.c net: hns3: add common validation in hclge_dcb 2018-11-19 18:32:11 -08:00
hclge_dcb.h net: hns3: Add SPDX tags to HNS3 PF driver 2018-07-21 08:44:23 -07:00
hclge_debugfs.c net: hns3: Add "tm map" status information query function 2018-12-15 10:54:18 -08:00
hclge_debugfs.h net: hns3: Add "dcb register" status information query function 2018-12-15 10:54:18 -08:00
hclge_err.c net: hns3: fix spelling mistake "offser" -> "offset" 2018-12-10 11:44:30 -08:00
hclge_err.h net: hns3: add handling of RDMA RAS errors 2018-12-07 15:57:01 -08:00
hclge_main.c net: hns3: fix a SSU buffer checking bug 2018-12-18 12:01:01 -08:00
hclge_main.h net: hns3: getting tx and dv buffer size through firmware 2018-12-18 12:01:01 -08:00
hclge_mbx.c net: hns3: Add "queue map" information query function 2018-12-15 10:54:18 -08:00
hclge_mdio.c net: hns3: synchronize speed and duplex from phy when phy link up 2018-12-18 12:01:01 -08:00
hclge_mdio.h net: hns3: Fix for information of phydev lost problem when down/up 2018-08-14 09:54:23 -07:00
hclge_tm.c net: hns3: add common validation in hclge_dcb 2018-11-19 18:32:11 -08:00
hclge_tm.h net: hns3: Add "tm map" status information query function 2018-12-15 10:54:18 -08:00
Makefile net: hns3: Add "FD flow table" info query function 2018-11-23 17:28:59 -08:00