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 <>
Reviewed-by: Yisen Zhuang <>
Signed-off-by: Salil Mehta <>
Signed-off-by: David S. Miller <>
2 files changed