diff options
author | Sreenivasa Honnur <sreenivasa.honnur@neterion.com> | 2009-10-28 05:46:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 05:46:54 -0400 |
commit | 5beefb4f7793e5bb4d3527ee6559f8281d7d2b76 (patch) | |
tree | 22ea04604157ad9ad2e67f43ca1e2e0fdc747d2d /drivers/net/vxge/vxge-main.c | |
parent | 0531d7b85177cda05f574ddf0aa4b25050159101 (diff) |
vxge: Configure the number of transmit descriptors per packet to MAX_SKB_FRAGS + 1.
- Configure the number of transmit descriptors per packet to MAX_SKB_FRAGS + 1.
Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge/vxge-main.c')
-rw-r--r-- | drivers/net/vxge/vxge-main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index 63d0f891ffae..e21358e82c74 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c | |||
@@ -3612,11 +3612,12 @@ static int __devinit vxge_config_vpaths( | |||
3612 | device_config->vp_config[i].fifo.enable = | 3612 | device_config->vp_config[i].fifo.enable = |
3613 | VXGE_HW_FIFO_ENABLE; | 3613 | VXGE_HW_FIFO_ENABLE; |
3614 | device_config->vp_config[i].fifo.max_frags = | 3614 | device_config->vp_config[i].fifo.max_frags = |
3615 | MAX_SKB_FRAGS; | 3615 | MAX_SKB_FRAGS + 1; |
3616 | device_config->vp_config[i].fifo.memblock_size = | 3616 | device_config->vp_config[i].fifo.memblock_size = |
3617 | VXGE_HW_MIN_FIFO_MEMBLOCK_SIZE; | 3617 | VXGE_HW_MIN_FIFO_MEMBLOCK_SIZE; |
3618 | 3618 | ||
3619 | txdl_size = MAX_SKB_FRAGS * sizeof(struct vxge_hw_fifo_txd); | 3619 | txdl_size = device_config->vp_config[i].fifo.max_frags * |
3620 | sizeof(struct vxge_hw_fifo_txd); | ||
3620 | txdl_per_memblock = VXGE_HW_MIN_FIFO_MEMBLOCK_SIZE / txdl_size; | 3621 | txdl_per_memblock = VXGE_HW_MIN_FIFO_MEMBLOCK_SIZE / txdl_size; |
3621 | 3622 | ||
3622 | device_config->vp_config[i].fifo.fifo_blocks = | 3623 | device_config->vp_config[i].fifo.fifo_blocks = |