]> asedeno.scripts.mit.edu Git - linux.git/commit
ibmvnic: Add device identification to requested IRQs
authorMurilo Fossa Vicentini <muvic@linux.ibm.com>
Thu, 25 Apr 2019 14:02:33 +0000 (11:02 -0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 00:20:06 +0000 (20:20 -0400)
commite56e2515669af9f2444228db39699d02c5a4989a
tree06f59c4eaeecf095a53b7e0c7d2add62fb952a98
parent026cc9c3eeacb6537e06f284c0fc7ed435af1707
ibmvnic: Add device identification to requested IRQs

The ibmvnic driver currently uses the same fixed name when using
request_irq, this makes it hard to parse when multiple VNIC devices are
available at the same time. This patch adds the unit_address as the device
identification along with an id for each queue.

The original idea was to use the interface name as an identifier, but it
is not feasible given these requests happen at adapter probe, and at this
point netdev is not yet registered so it doesn't have the proper name
assigned to it.

Signed-off-by: Murilo Fossa Vicentini <muvic@linux.ibm.com>
Reviewed-by: Mauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>
Reviewed-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h