Re: [patch net 1/2] net: hns: fix return value of the function about rss
From: Andy Shevchenko
Date: Thu Mar 10 2016 - 03:11:15 EST
On Thu, 2016-03-10 at 10:16 +0800, Kejian Yan wrote:
> Both .get_rxfh and .get_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.
>
@@ -1213,7 +1213,7 @@ hns_get_rss(struct net_device *netdev, u32
> *indir, u8 *key, u8 *hfunc)
> Â
>
> Â ret = ops->get_rss(priv->ae_handle, indir, key, hfunc);
> Â
> - return 0;
> + return ret;
All three can be one line.
> @@ -1241,7 +1241,7 @@ hns_set_rss(struct net_device *netdev, const
> u32 *indir, const u8 *key,
> Â
> Â ret = ops->set_rss(priv->ae_handle, indir, key, hfunc);
> Â
> - return 0;
> + return ret;
Ditto.
--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy