summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/main.c
diff options
context:
space:
mode:
authorEli Cohen2014-10-02 11:19:45 +0200
committerDavid S. Miller2014-10-04 00:42:32 +0200
commit5903325a64834211daf63a62db3b35ee580cb8bf (patch)
tree74a608cedc17732bbc607d157ddfd3c01e9757f5 /drivers/net/ethernet/mellanox/mlx5/core/main.c
parentnet/mlx5_core: use set/get macros in device caps (diff)
downloadkernel-qcow2-linux-5903325a64834211daf63a62db3b35ee580cb8bf.tar.gz
kernel-qcow2-linux-5903325a64834211daf63a62db3b35ee580cb8bf.tar.xz
kernel-qcow2-linux-5903325a64834211daf63a62db3b35ee580cb8bf.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/main.c')
0 files changed, 0 insertions, 0 deletions