OSDN Git Service

net: hns: modify table index to get mac entry
authorQianqian Xie <xieqianqian@huawei.com>
Wed, 9 Nov 2016 18:13:56 +0000 (18:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Nov 2016 16:45:37 +0000 (11:45 -0500)
commit39a6c9ebcbc6b6c3f3aefbe5449eb45d78f2034f
tree75b47db7f56927443799cc33bafc26672593d0e6
parentc9c0b37072f5d75ec498539c90ab7113e02c26d6
net: hns: modify table index to get mac entry

Big-endian is not supported by the current definition of table index to get
mac entry. It needs to be modified to support both Little-endian
and Big-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