net: hns: Optimize the code for GMAC pad and crc Config
authorlipeng <lipeng321@huawei.com>
Sat, 1 Apr 2017 11:03:33 +0000 (12:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 21:48:43 +0000 (14:48 -0700)
commitde99208cc7ceb964ea4e912000f2102f927f75ea
tree0bce33bf3926b0180693519d901939fc1f8a1191
parent87ff7e1f460d709100cf5203738d62629ab6949b
net: hns: Optimize the code for GMAC pad and crc Config

This patch optimises the init configuration code leg
for gmac pad and crc set interface.

Signed-off-by: lipeng <lipeng321@huawei.com>
Signed-off-by: JinchuanTian <tianjinchuan1@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_gmac.c