summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaor Gottlieb <maorg@mellanox.com>2016-04-28 22:36:39 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-04-29 20:29:11 (GMT)
commit5a7b27eb9cf3986f487469b57a3a41286d2e7100 (patch)
treef88465fb4f1a7e4a9bbe2ac3e1e189c53d24b5f3 /include
parent33cfaaa8f36ffbee9ad259264334325b5449f5fe (diff)
downloadlinux-5a7b27eb9cf3986f487469b57a3a41286d2e7100.tar.xz
net/mlx5: Initializing CPU reverse mapping
Allocating CPU rmap and add entry for each IRQ. CPU rmap is used in aRFS to get the RX queue number of the RX completion interrupts. Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 96a428d..d552944 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -560,6 +560,9 @@ struct mlx5_core_dev {
struct mlx5_profile *profile;
atomic_t num_qps;
u32 issi;
+#ifdef CONFIG_RFS_ACCEL
+ struct cpu_rmap *rmap;
+#endif
};
struct mlx5_db {