[PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()

Subsystems: arm/cavium thunder network driver, networking drivers, the rest

STALE3510d

2 messages, 2 authors, 2017-01-11 · open the first message on its own page

[PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()

From: Robert Richter <hidden>
Date: 2017-01-11 09:17:52

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 <redacted>
---
 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

Re: [PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()

From: David Miller <davem@davemloft.net>
Date: 2017-01-11 15:51:04

From: Robert Richter <redacted>
Date: Wed, 11 Jan 2017 10:17:02 +0100
quoted hunk
@@ -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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help