]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix for the wrong shift problem in hns3_set_txbd_baseinfo
authorFuyun Liang <liangfuyun1@huawei.com>
Sat, 24 Mar 2018 03:32:45 +0000 (11:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 16:12:26 +0000 (12:12 -0400)
commitef9563a3f1c15e0b0b0f5fd773002eb8257b5d30
tree47d6a178c598ce77b718ae5d27c539a6819a73a0
parent7d3747d7d4cf1ddf3b125df203706fc653a279cf
net: hns3: fix for the wrong shift problem in hns3_set_txbd_baseinfo

Third parameter of hnae_set_field is shift, But a mask is given. This
patch fixes it by replacing HNS3_TXD_BDTYPE_M with HNS3_TXD_BDTYPE_S.

Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c