* [PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()
@ 2017-01-11 9:17 Robert Richter
2017-01-11 15:51 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Robert Richter @ 2017-01-11 9:17 UTC (permalink / raw)
To: David Miller; +Cc: Sunil Goutham, Robert Richter, netdev, Robert Richter
>From struct ethtool_ops:
int (*set_rxfh)(struct net_device *, const u32 *indir,
const u8 *key, const u8 hfunc);
Change function arg of hfunc to const type.
Signed-off-by: Robert Richter <rrichter@cavium.com>
---
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
index 2e74bbaa38e1..3a4761aa8efd 100644
--- a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
+++ b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
@@ -635,7 +635,7 @@ static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey,
}
static int nicvf_set_rxfh(struct net_device *dev, const u32 *indir,
- const u8 *hkey, u8 hfunc)
+ const u8 *hkey, const u8 hfunc)
{
struct nicvf *nic = netdev_priv(dev);
struct nicvf_rss_info *rss = &nic->rss_info;
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()
2017-01-11 9:17 [PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh() Robert Richter
@ 2017-01-11 15:51 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-01-11 15:51 UTC (permalink / raw)
To: rrichter; +Cc: sgoutham, rric, netdev
From: Robert Richter <rrichter@cavium.com>
Date: Wed, 11 Jan 2017 10:17:02 +0100
> @@ -635,7 +635,7 @@ static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey,
> }
>
> static int nicvf_set_rxfh(struct net_device *dev, const u32 *indir,
> - const u8 *hkey, u8 hfunc)
> + const u8 *hkey, const u8 hfunc)
Please do not change the indentation, it is currently correct.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-11 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-11 9:17 [PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh() Robert Richter
2017-01-11 15:51 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).