Bug 247111 - pxeboot very slow with i219LM
Summary: pxeboot very slow with i219LM
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
URL:
Keywords: IntelNetworking
Depends on:
Blocks:
 
Reported: 2020-06-09 13:53 UTC by Michel Popp
Modified: 2020-06-18 21:41 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Popp 2020-06-09 13:53:33 UTC
I have a problem with the binary PXEBOOT and the nfs / diskless setup setup. Unfortunately, PXEBOOT loads the kernel with i219LM NICs very slowly. It takes up to 15 minutes to load the kernel. Compared to a Realtek or i210 / i211 NIC, it only takes 2 minutes to load the kernel.


```
BTX loader 1.00 BTX version is 1.02
...
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0xed9008 data=0x117d28+0x176650 syms=[0x8+0x137988+0x8+0x1515f8]

```
Comment 1 longwitz 2020-06-18 20:22:04 UTC
Are you really sure your problem is caused by different NICs ?

I had the same problem and the slowness came from incoming ARPs. In a network without ARP traffic pxeboot had normal speed.

I could solve my problem with the following patch for V12.1 Stable:

--- pxe.c.orig  2019-01-13 08:25:55.000000000 +0100
+++ pxe.c       2020-06-15 21:30:19.000000000 +0200
@@ -424,7 +424,7 @@
        if (undi_open_p == NULL)
                return;
        bzero(undi_open_p, sizeof(*undi_open_p));
-       undi_open_p->PktFilter = FLTR_DIRECTED | FLTR_BRDCST;
+       undi_open_p->PktFilter = FLTR_DIRECTED;
        pxe_call(PXENV_UNDI_OPEN, undi_open_p);
        if (undi_open_p->Status != 0)
                printf("undi open failed: %x\n", undi_open_p->Status);

For more info see
  https://lists.freebsd.org/pipermail/freebsd-net/2020-June/056025.html

Andreas Longwitz