aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/cq.h
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2019-06-30 19:23:27 +0300
committerLeon Romanovsky <leonro@mellanox.com>2019-07-03 21:00:20 +0300
commit4e0e2ea1886afe8c001971ff767f6670312a9b04 (patch)
tree2c49440a718dbc3d179432c5aaf1400b54760f71 /include/linux/mlx5/cq.h
parentnet/mlx5: Report a CQ error event only when a handler was set (diff)
downloadlinux-dev-4e0e2ea1886afe8c001971ff767f6670312a9b04.tar.xz
linux-dev-4e0e2ea1886afe8c001971ff767f6670312a9b04.zip
net/mlx5: Report EQE data upon CQ completion
Report EQE data upon CQ completion to let upper layers use this data. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Acked-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/linux/mlx5/cq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mlx5/cq.h b/include/linux/mlx5/cq.h
index e44157a2b7db..40748fc1b11b 100644
--- a/include/linux/mlx5/cq.h
+++ b/include/linux/mlx5/cq.h
@@ -47,7 +47,7 @@ struct mlx5_core_cq {
struct completion free;
unsigned vector;
unsigned int irqn;
- void (*comp) (struct mlx5_core_cq *);
+ void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe);
void (*event) (struct mlx5_core_cq *, enum mlx5_event);
u32 cons_index;
unsigned arm_sn;
@@ -55,7 +55,7 @@ struct mlx5_core_cq {
int pid;
struct {
struct list_head list;
- void (*comp)(struct mlx5_core_cq *);
+ void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe);
void *priv;
} tasklet_ctx;
int reset_notify_added;