sfc: Reverse initial buffer table allocation to allow for later resizing
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 21 Feb 2012 23:22:00 +0000 (23:22 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 22 Feb 2012 20:48:08 +0000 (20:48 +0000)
commitc92aaff18e0a48f693678105343160e0bd032dfa
tree363bbef1367573f47e9bf93e67e1d1d6daf22b2c
parent01cb543db8a2d2dbcea5f357365ce1327ac46193
sfc: Reverse initial buffer table allocation to allow for later resizing

We have a very simple way of allocating buffer table entries to
queues, which is just to take the next one available.  The extra
channels are the highest numbered channels but they need to be
allocated the lowest entries so that the traffic channels can be
allocated new entries without any collisions.

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