net: hns: fixes the issue by using ethtool -s
authorChenny Xu <chenny.xu@huawei.com>
Fri, 16 Oct 2015 09:03:19 +0000 (17:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2015 02:57:06 +0000 (19:57 -0700)
commit20ddb1d3d0015ff77f83561a0ede7aaebf7417bf
treec366649ba72202979a7bea8f6e0662df1cb8669d
parent4639a3b522f1acec462896f1770523f380fe0157
net: hns: fixes the issue by using ethtool -s

  before this patch, hns driver only permits user to set the net device
by using ethtool -s when the device is link up. it is obviously not so
good. it needs to be set no matter it is link up or down. so this patch
fixes this issue.

Signed-off-by: yankejian <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: lisheng <lisheng011@huawei.com>
Signed-off-by: lipeng <lipeng321@huawei.com>
Signed-off-by: Chenny Xu <chenny.xu@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c