]> git.baikalelectronics.ru Git - kernel.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)
commit65f2f4e558cb6d20c97a5d33fbdb8714437774c1
tree06f59c4eaeecf095a53b7e0c7d2add62fb952a98
parent2ca99797427f29ecceaff848f59290e3714e996b
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