diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-02-08 00:04:38 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-02-15 20:45:34 +0100 |
commit | 525da9072c28df815bff64bf00f3b11ab88face8 (patch) | |
tree | 0649a1fff4d110796dd7f22168c9413cd8eb5caa /drivers/net/sfc/tx.c | |
parent | sfc: Move TX queue core queue mapping into tx.c (diff) | |
download | linux-525da9072c28df815bff64bf00f3b11ab88face8.tar.xz linux-525da9072c28df815bff64bf00f3b11ab88face8.zip |
sfc: Distinguish queue lookup from test for queue existence
efx_channel_get_{rx,tx}_queue() currently return NULL if the channel
isn't used for traffic in that direction. In most cases this is a
bug, but some callers rely on it as an existence test.
Add existence test functions efx_channel_has_{rx_queue,tx_queues}()
and use them as appropriate.
Change efx_channel_get_{rx,tx}_queue() to assert that the requested
queue exists.
Remove now-redundant initialisation from efx_set_channels().
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/sfc/tx.c')
0 files changed, 0 insertions, 0 deletions