]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: fix bug of getting the wrong tcam data
authorDaode Huang <huangdaode@hisilicon.com>
Tue, 21 Jun 2016 03:56:32 +0000 (11:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 08:51:55 +0000 (04:51 -0400)
commitd459b40e63adcfc49ca5f50d570d65093f07e272
tree1963b016edd0936f9d6059faed29b7783e0cf054
parent298d34a523e3aa420bed1fa3a03d664d1a4f601c
net: hns: fix bug of getting the wrong tcam data

The current driver stores the high bit value of tcam data register
to the tcam data low element, stores the low bit value of tcam data
register to tcam data high element, this patch fixes this bug.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c