vxge: Configure the number of transmit descriptors per packet to MAX_SKB_FRAGS + 1.
authorSreenivasa Honnur <sreenivasa.honnur@neterion.com>
Wed, 28 Oct 2009 09:46:54 +0000 (02:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2009 09:46:54 +0000 (02:46 -0700)
- 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>
drivers/net/vxge/vxge-main.c
drivers/net/vxge/vxge-version.h

index 63d0f891ffaeddf2d1e57c07fdfb782fe3d83fc8..e21358e82c740d401f19940d9abdd0f0f50afd03 100644 (file)
@@ -3612,11 +3612,12 @@ static int __devinit vxge_config_vpaths(
                device_config->vp_config[i].fifo.enable =
                                                VXGE_HW_FIFO_ENABLE;
                device_config->vp_config[i].fifo.max_frags =
-                               MAX_SKB_FRAGS;
+                               MAX_SKB_FRAGS + 1;
                device_config->vp_config[i].fifo.memblock_size =
                        VXGE_HW_MIN_FIFO_MEMBLOCK_SIZE;
 
-               txdl_size = MAX_SKB_FRAGS * sizeof(struct vxge_hw_fifo_txd);
+               txdl_size = device_config->vp_config[i].fifo.max_frags *
+                               sizeof(struct vxge_hw_fifo_txd);
                txdl_per_memblock = VXGE_HW_MIN_FIFO_MEMBLOCK_SIZE / txdl_size;
 
                device_config->vp_config[i].fifo.fifo_blocks =
index fa66248aae6d0b01998d2a9aa6658e7d2693ead1..77c2a754b7b8572e674273bf9a242e8ab7896499 100644 (file)
@@ -18,6 +18,6 @@
 #define VXGE_VERSION_MAJOR     "2"
 #define VXGE_VERSION_MINOR     "0"
 #define VXGE_VERSION_FIX       "6"
-#define VXGE_VERSION_BUILD     "18707"
+#define VXGE_VERSION_BUILD     "18937"
 #define VXGE_VERSION_FOR       "k"
 #endif