summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/thunder
diff options
context:
space:
mode:
authorRobert Richter <rrichter@cavium.com>2017-01-11 18:04:32 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-11 16:12:01 -0500
commit171d87aca0da1fab6a15b96ad8e298216a5951b0 (patch)
tree24b72cf2efb394164ef76e6eeae85ac8616eb3f5 /drivers/net/ethernet/cavium/thunder
parent60dce04b81424940a3183c8e7e81e1234a27e906 (diff)
downloadop-kernel-dev-171d87aca0da1fab6a15b96ad8e298216a5951b0.zip
op-kernel-dev-171d87aca0da1fab6a15b96ad8e298216a5951b0.tar.gz
net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()
>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>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder')
-rw-r--r--drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
index 2e74bba..5ac4746 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;
OpenPOWER on IntegriCloud