net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()
authorRobert Richter <rrichter@cavium.com>
Wed, 11 Jan 2017 17:04:32 +0000 (18:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 21:12:01 +0000 (16:12 -0500)
>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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c

index 2e74bbaa38e1e41ceae25885586424cd74cfa07a..5ac474683c985cbc1fbe9b6fe4114a7d5f6c019a 100644 (file)
@@ -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;