net/mlx5_core: Identify resources by their type
authorEli Cohen <eli@mellanox.com>
Thu, 2 Oct 2014 09:19:45 +0000 (12:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Oct 2014 22:42:32 +0000 (15:42 -0700)
commit5903325a64834211daf63a62db3b35ee580cb8bf
tree74a608cedc17732bbc607d157ddfd3c01e9757f5
parentb775516b042f9e35f856bd2914afefd9d23021d7
net/mlx5_core: Identify resources by their type

This patch puts a common part as the first field of mlx5_core_qp. This field is
used to identify which resource generated an event. This is required since upcoming
new resource types such as DC targets are allocated for the same numerical space
as regular QPs and may generate the same events. By searching the resource in the
same table we can then look at the common field to identify the resource.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/qp.c
include/linux/mlx5/driver.h
include/linux/mlx5/qp.h