diff options
author | Eric Dumazet <edumazet@google.com> | 2014-11-16 06:23:16 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-16 15:59:13 -0500 |
commit | b9d1ab7eb42ede51ffbb6cafffd0a521b30c12e1 (patch) | |
tree | 98b5fe3058b3ec7e8743444fa277bfe8a98891c9 /include/linux/mlx4 | |
parent | 9913c61c4486e2452ca848729dede6038adb6ec2 (diff) | |
download | blackbird-op-linux-b9d1ab7eb42ede51ffbb6cafffd0a521b30c12e1.tar.gz blackbird-op-linux-b9d1ab7eb42ede51ffbb6cafffd0a521b30c12e1.zip |
mlx4: use netdev_rss_key_fill() helper
Use of well known RSS key increases attack surface.
Switch to a random one, using generic helper so that all
ports share a common key.
Also provide ethtool -x support to fetch RSS key
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/qp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 5f4e36cf0091..467ccdf94c98 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h @@ -120,13 +120,15 @@ enum { MLX4_RSS_QPC_FLAG_OFFSET = 13, }; +#define MLX4_EN_RSS_KEY_SIZE 40 + struct mlx4_rss_context { __be32 base_qpn; __be32 default_qpn; u16 reserved; u8 hash_fn; u8 flags; - __be32 rss_key[10]; + __be32 rss_key[MLX4_EN_RSS_KEY_SIZE / sizeof(__be32)]; __be32 base_qpn_udp; }; |