summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/8390/etherh.c
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2015-04-27 13:40:56 +0300
committerDavid S. Miller <davem@davemloft.net>2015-04-27 13:36:48 -0400
commitb37069090b7c5615610a8aa6b36533d67b364d38 (patch)
tree51016dd7408b67d63b09da9c8f3d024f0a67bcac /drivers/net/ethernet/8390/etherh.c
parent33df10e2ee414183953cc89453bf9c85027a188b (diff)
downloadlinux-b37069090b7c5615610a8aa6b36533d67b364d38.tar.bz2
net/mlx4_en: Prevent setting invalid RSS hash function
mlx4_en_check_rxfh_func() was checking for hardware support before setting a known RSS hash function, but didn't do any check before setting unknown RSS hash function. Need to make it fail on such values. In this occasion, moved the actual setting of the new value from the check function into mlx4_en_set_rxfh(). Fixes: 947cbb0 ("net/mlx4_en: Support for configurable RSS hash function") Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/8390/etherh.c')
0 files changed, 0 insertions, 0 deletions