[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1430058966-24046-1-git-send-email-amirv@mellanox.com>
Date: Sun, 26 Apr 2015 17:36:04 +0300
From: Amir Vadai <amirv@...lanox.com>
To: "David S. Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org, Or Gerlitz <ogerlitz@...lanox.com>,
Tal Alon <talal@...lanox.com>,
Ben Hutchings <ben@...adent.org.uk>,
Amir Vadai <amirv@...lanox.com>
Subject: [PATCH net 0/2] net/ethtool, mlx4_en: RSS hash function setting fixes
Hi Dave,
This small patchset fixes a small issue in the ethtool User/kernel API.
Hash function is represented as an eight bit field, every bit represents a
function. Currently possible values are: 1 for Toeplitz and 2 for XOR.
This commit changes the representation from bit flags into a value. Because
only one hash function will be used at a time, there is no sense using bit
flags for it.
Since today only 2 functions are supported, and there is no user space ethtool
that supports this feature, we can switch into values without causing any
backward compatibility issues.
After this patchset is applied, I will send the user space patch.
In this occasion I added a missing validation to the hash function value.
This patchset was applied and tested over commit 2ea2f62 ("net: fix crash in build_skb()")
Please push this patchset to stable 3.19.y in which those two issues were introduced.
Thanks,
Amir
Amir Vadai (2):
ethtool: Use values instead of bit flags for RSS hash function
net/mlx4_en: Prevent setting invalid RSS hash function
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 29 ++++++++++++++-----------
include/linux/ethtool.h | 9 ++------
net/core/ethtool.c | 4 ++--
3 files changed, 20 insertions(+), 22 deletions(-)
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists