]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 20:07:31 +0000 (12:07 -0800)
commit41d3c99a470ea5aabc8ee051ea7f9d2d71c22bea
tree0b645443a40520141b7b463fda7c5be95edf2b9a
parentef8d0457ccdfc4757ef60caf51aadcd298ecc34f
net: hns: Incorrect offset address used for some registers.

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>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c