diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2015-09-28 17:18:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 03:18:51 +0200 |
commit | 71457d482751a38e78da32fde80e87b6f670c389 (patch) | |
tree | 5a5c845fb2a78d9c33ee48b1448473316af73cfa /drivers/staging/most/aim-network | |
parent | c81c9c3e0fd5170e7bede7d06202062338644e93 (diff) | |
download | linux-71457d482751a38e78da32fde80e87b6f670c389.tar.bz2 |
staging: most: add fair buffer distribution
This patch ensures a fair distribution of buffers, when two AIMs share a
single channel. The AIMs then won't be able to use more than half of all
pre-allocated buffers of the linked channel. However, in case the channel
is not shared, the AIM can exclusively use all available buffers.
Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/aim-network')
-rw-r--r-- | drivers/staging/most/aim-network/networking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c index c13bd89226d3..f0d9a439544e 100644 --- a/drivers/staging/most/aim-network/networking.c +++ b/drivers/staging/most/aim-network/networking.c @@ -245,7 +245,7 @@ static netdev_tx_t most_nd_start_xmit(struct sk_buff *skb, BUG_ON(nd->dev != dev); - mbo = most_get_mbo(nd->iface, nd->tx.ch_id); + mbo = most_get_mbo(nd->iface, nd->tx.ch_id, &aim); if (!mbo) { netif_stop_queue(dev); |