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)
commit3c8f5c0339515202e8662b6e3ae36a7b16610caf
tree47d6a178c598ce77b718ae5d27c539a6819a73a0
parentda44a00f06df1f823ea449065e79581ee624de4b
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