diff mbox

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

Message ID 20170111170432.31210-1-rrichter@cavium.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Robert Richter Jan. 11, 2017, 5:04 p.m. UTC
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.

V2: Fixed indentation.

Signed-off-by: Robert Richter <rrichter@cavium.com>
---
 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller Jan. 11, 2017, 9:13 p.m. UTC | #1
From: Robert Richter <rrichter@cavium.com>
Date: Wed, 11 Jan 2017 18:04:32 +0100

> 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.
> 
> V2: Fixed indentation.
> 
> Signed-off-by: Robert Richter <rrichter@cavium.com>

Applied.
diff mbox

Patch

diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
index 2e74bbaa38e1..5ac474683c98 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;