]> 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)
commit958e9b7a02de84ea0988be69720641236cad6a97
treef66170f26f6c4b094351d37f86ceda357557cf9f
parent9f5e1fe11ce116095b4d6b6b30f473efa0a5d459
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