]> asedeno.scripts.mit.edu Git - linux.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)
commitf56c1b3de7a2c7435e991a01350b0b32664ba5fb
tree1963b016edd0936f9d6059faed29b7783e0cf054
parentb76238168991f8b000c90ba053f6f125e4cf1e8c
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