net: hns: Incorrect offset address used for some registers.
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 15 Dec 2018 03:53:20 +0000 (11:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 08:51:00 +0000 (09:51 +0100)
commit41d54657e34bb94ce443964c9f332f6448b3699d
tree2b38ddd3b26396b10f9ca838d3ed33bf80a4d9bf
parent2cd0c6f8d050ea68ed482f16a574c864fcb95b23
net: hns: Incorrect offset address used for some registers.

[ Upstream commit 4e1d4be681b2c26fd874adbf584bf034573ac45d ]

According to the hip06 Datasheet:
1. The offset of INGRESS_SW_VLAN_TAG_DISC should be 0x1A00+4*all_chn_num
2. The offset of INGRESS_IN_DATA_STP_DISC should be 0x1A50+4*all_chn_num

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c