net: hns: fix return value of the function about rss
authorKejian Yan <yankejian@huawei.com>
Tue, 22 Mar 2016 08:06:27 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:45:58 +0000 (15:45 -0400)
commitbeecfe9e269574973ea1b37472dc81dd0364d012
treee650ffc314007ed4c22c64223fe31b2571c07ad3
parent6f80563c03524c658bb4788fa0973f43108670c4
net: hns: fix return value of the function about rss

Both .get_rxfh and .set_rxfh are always return 0, it should return result
from hardware when getting or setting rss. And the rss function should
return the correct data type.

Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c