sfc: Add support for 'extra' channel types
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 13 Feb 2012 23:45:02 +0000 (23:45 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 16 Feb 2012 00:25:10 +0000 (00:25 +0000)
commit7f967c011ae9c59fc7e7a017070ef7b22a5a4fbf
treec3ad2e039a8596ecbf9c7d1dc58bc8a251ecd8d2
parenta16e5b246c5b1aff3141ca6ae443307f3241a133
sfc: Add support for 'extra' channel types

Abstract some of the channel operations to allow for 'extra'
channels that do not have RX or TX queues.

- Try to assign a channel to each extra channel type that is enabled
  for the NIC, but gracefully degrade if we can't allocate sufficient
  MSI-X vectors
- Allow each extra channel type to generate its own channel name
- Allow channel types to disable reallocation and reinitialisation
  of their channels

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/net_driver.h