commit | b9162d20ed493bc0d5ea3016647d636628e1f9d5 | [log] [tgz] |
---|---|---|
author | Jiangfeng Xiao <xiaojiangfeng@huawei.com> | Tue Jul 09 11:31:09 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 09 14:29:26 2019 -0700 |
tree | 58833787af6f890a82143c2e6d42b3895caa1220 | |
parent | 06ddc0d8d7fc43d872c3d1c9399050e40ddbec4d [diff] |
net: hisilicon: Offset buf address to adapt HI13X1_GMAC The buf unit size of HI13X1_GMAC is cache_line_size, which is 64, so the address we write to the buf register needs to be shifted right by 6 bits. The 31st bit of the PPE_CFG_CPU_ADD_ADDR register of HI13X1_GMAC indicates whether to release the buffer of the message, and the low indicates that it is valid. Signed-off-by: Jiangfeng Xiao <xiaojiangfeng@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>