]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd54468dd6cfcc403f3ca9cc6d7d4def3b9b0ed6f
tree363bbef1367573f47e9bf93e67e1d1d6daf22b2c
parent19948df8a425c8e20c8f699d8829a52534a156f9
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