]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: aligning buffer size in SSU to 256 bytes
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 18 Dec 2018 11:37:58 +0000 (19:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 20:01:01 +0000 (12:01 -0800)
commitc6a5aa873886d0dfa2c21a63ca079aa16d48a8a5
treef66170f26f6c4b094351d37f86ceda357557cf9f
parentaf4519198e8c746d6e6e4454712e6c619123167e
net: hns3: aligning buffer size in SSU to 256 bytes

The hardware expects the buffer size set to SSU is aligned to
256 bytes, this patch aligns the buffer size to 256 byte using
roundup or rounddown function.

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c