[ipxe-devel] IPv4 TFTP performance issue

Wissam Shoukair wissams at mellanox.com
Mon Oct 13 10:10:57 UTC 2014


Hi,

I’m updating my driver with the latest iPXE patches.
The base code from which I started to add my changes is this commit:
commit 0cc2f42f467e27945070a4036a6a1f928bc7018f
Author: Michael Brown <mcb30 at ipxe.org>
Date:   Fri Aug 29 13:10:18 2014 +0100
    [efi] Wrap any images loaded by our wrapped image


I’m trying to boot linux OS over IPv4 TFTP but the process is significantly slower than when using my previous driver. I opened wireshark on the DHCP/PXE server, and I noticed this behavior in the image.
[cid:image002.jpg at 01CFE641.856FE7C0]
[cid:image003.jpg at 01CFE6E7.1EDC4660]
Do you have any idea what this issue might be?
Any clue will be very helpful.

I also found a work-around patch for this issue.
The block size with this patch is the same 1456

From b9ef792bbf0845bd36e2b4b350760155d32a6ee8 Mon Sep 17 00:00:00 2001
From: Itay Gazit <itayg at mellanox.co.il>
Date: Thu, 6 Sep 2012 14:00:55 +0300
Subject: [PATCH 10/17] [netdevice] - Do not parse all lost packets, only the
last one
Signed-off-by: Itay Gazit <itayg at mellanox.co.il>
---
src/net/netdevice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 6afe2d5..4a745ef 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -751,7 +751,7 @@ void net_poll ( void ) {
                                               continue;
                                /* Process all received packets */
-                              while ( ( iobuf = netdev_rx_dequeue ( netdev ) ) ) {
+                             if ( ( iobuf = netdev_rx_dequeue ( netdev ) ) ) {
                                                DBGC2 ( netdev, "NETDEV %s processing %p (%p+%zx)\n",
                                                               netdev->name, iobuf, iobuf->data,
--
1.7.11.1


Thanks,
Wissam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20141013/553258df/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 67553 bytes
Desc: image002.jpg
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20141013/553258df/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 69238 bytes
Desc: image003.jpg
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20141013/553258df/attachment-0001.jpg>


More information about the ipxe-devel mailing list