RE: ip_finish_output2() what happens in this part of code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 169         if (hh) {
> 170                 read_lock_bh(&hh->hh_lock);
> 171                 memcpy(skb->data - 16, hh->hh_data, 16);
> 172                 read_unlock_bh(&hh->hh_lock);
> 173                 skb_push(skb, hh->hh_len);
> 174                 return hh->hh_output(skb);
> 175         } else if (dst->neighbour)
> 176                 return dst->neighbour->output(skb);
>

>We cache the L1 headers for some devices when ARP entries are
>resolved, when we have such a cached hardware-level header we just
>copy it directly in front of the IPV4 header and transmit the packet.
----------------------------------------------------------------------------
-----------------------

 is this cache device dependent? because there is ...else if.... so it might
 not be any cache there on the NIC

----------------------------------------------------------------------------
----------------------

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux