Hello,
It seems there is a problem in the network layer of the 2.6.3 kernel. When
IFF_NOARP is enabled on the device, the first outgoing packet is getting
lost.
I tried the following configuration: two computers are connected with the
network cable. On both sides ARP is switched off on the network adapters,
and MAC addresses are configured manually using the arp utility. When I ping
one computer from another, I am getting ping replies only starting from the
third one. The reason is the following: network layer is caching hardware
(ethernet) headers. When I send a packet, this cache is examined for the
proper header. If it is not found, the arp table is examined too. The data
from the arp table is used for constructing the header for the packet
(eth_header() in eth.c) and creating a cache entry (eth_hard_header() in
eth.c). The cache entry is created correctly, but the header for outgoing
packet in case of IFF_NOARP switched on the device is filled with zero
destination address (MAC). So this packet is then lost. Next time the cache
entry is used, and the packets are send correctly. So when I am pinging one
computer from another the first ping request is lost so there is no answer
for it. The second ping request gets to the other computer, and it sends a
reply, wich is lost on the other side. And only for the third packet I get a
reply from the other computer.
This causes for example internet pages open very slowly on the links with
ARP turned off, because the first request is lost, and it takes a while when
the client resends it.
Please, include the attached patch in the kernel. It fixes this problem on
the 2.6.3 kernel. The same problem is in the 2.4.18 kernel. I verified it on
both 2.6.3 and 2.4.18 kernels and they work fine after the correction.
Thank you.
Dmitry
patch-2.6.3-ethernet
Description: Binary data
|