Re: [PATCH net V1] net/mlx4_en: Prevent setting invalid RSS hash function

2015-04-27 Thread David Miller
From: Amir Vadai Date: Mon, 27 Apr 2015 13:40:56 +0300 > 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 a

[PATCH net V1] net/mlx4_en: Prevent setting invalid RSS hash function

2015-04-27 Thread Amir Vadai
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_