mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
net: hns3: change the function return type from int to bool
hclge_only_alloc_priv_buff() only return true or false, So, change the function return type from integer to boolean. Signed-off-by: Jijie Shao <shaojijie@huawei.com> Link: https://patch.msgid.link/20250815100414.949752-3-shaojijie@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e16e973c57
commit
021f989c86
|
|
@ -2182,8 +2182,8 @@ static bool hclge_drop_pfc_buf_till_fit(struct hclge_dev *hdev,
|
|||
return hclge_is_rx_buf_ok(hdev, buf_alloc, rx_all);
|
||||
}
|
||||
|
||||
static int hclge_only_alloc_priv_buff(struct hclge_dev *hdev,
|
||||
struct hclge_pkt_buf_alloc *buf_alloc)
|
||||
static bool hclge_only_alloc_priv_buff(struct hclge_dev *hdev,
|
||||
struct hclge_pkt_buf_alloc *buf_alloc)
|
||||
{
|
||||
#define COMPENSATE_BUFFER 0x3C00
|
||||
#define COMPENSATE_HALF_MPS_NUM 5
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user