]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9a7685fbf82f6f40bbe4b4da3092e9974d6b6e1
tree74a608cedc17732bbc607d157ddfd3c01e9757f5
parent7b8a9f9887c4533ab4f0db0b021a6169f5ef2772
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