diff options
author | Kim Jones <kim-marie.jones@intel.com> | 2016-02-02 04:51:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-06 09:13:49 +0100 |
commit | ba905f5e2f63d86ed4cfbd3d9096fb28d156f1ee (patch) | |
tree | 7e28780cf157ed7c135e10a06a52757538201b63 /net | |
parent | Merge branch 'tcp_fast_open_synack_fin' (diff) | |
download | linux-ba905f5e2f63d86ed4cfbd3d9096fb28d156f1ee.tar.xz linux-ba905f5e2f63d86ed4cfbd3d9096fb28d156f1ee.zip |
ethtool: Declare netdev_rss_key as __read_mostly.
netdev_rss_key is written to once and thereafter is read by
drivers when they are initialising. The fact that it is mostly
read and not written to makes it a candidate for a __read_mostly
declaration.
Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
Signed-off-by: Alan Carey <alan.carey@intel.com>
Acked-by: Rami Rosen <rami.rosen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index daf04709dd3c..453c803f1c87 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -632,7 +632,7 @@ static int ethtool_copy_validate_indir(u32 *indir, void __user *useraddr, return 0; } -u8 netdev_rss_key[NETDEV_RSS_KEY_LEN]; +u8 netdev_rss_key[NETDEV_RSS_KEY_LEN] __read_mostly; void netdev_rss_key_fill(void *buffer, size_t len) { |