]> 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)
commit3df4da02bc9baeac9aed196c3fe4901a4d70abea
tree74a608cedc17732bbc607d157ddfd3c01e9757f5
parentc244b827c8e34dd923eb0941511defaaced2f0a2
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