]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: modify tcam table and set mac key
authorQianqian Xie <xieqianqian@huawei.com>
Wed, 9 Nov 2016 18:13:54 +0000 (18:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Nov 2016 16:45:37 +0000 (11:45 -0500)
commite61033f55747ab24bb39a33a42870bbe70c55d96
treec2749792a58ed332235b2d2dfbeb8adf77fb0f5d
parent6121d6822c8199d056c045de31b19581c43b72e6
net: hns: modify tcam table and set mac key

The current definition of dsaf_drv_tbl_tcam_key is only suitable for
Little-endian. If data is stored in Big-endian, this may lead to
error in data use. Shift operation can make it work normally in both
Big-endian and Little-endian.

Signed-off-by: Qianqian Xie <xieqianqian@huawei.com>
Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h