From 1a6324970d4cb0f0508caa3a685355d500709f1a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 9 Oct 2021 18:26:16 +0000 Subject: devip: cache arp entry in Routehint Instead of having to do an arp hash table lookup for each outgoing ip packet, forward the Routehint pointer to the medium's bwrite() function and let it cache the arp entry pointer. This avoids route and arp hash table lookups for tcp, il and connection oriented udp. It also allows us to avoid multiple route and arp table lookups for the retransmits once an arp/neighbour solicitation response arrives. --- sys/src/9/ip/loopbackmedium.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/9/ip/loopbackmedium.c') diff --git a/sys/src/9/ip/loopbackmedium.c b/sys/src/9/ip/loopbackmedium.c index 2bb4271be..036de1137 100644 --- a/sys/src/9/ip/loopbackmedium.c +++ b/sys/src/9/ip/loopbackmedium.c @@ -71,7 +71,7 @@ loopbackunbind(Ipifc *ifc) } static void -loopbackbwrite(Ipifc *ifc, Block *bp, int, uchar*) +loopbackbwrite(Ipifc *ifc, Block *bp, int, uchar*, Routehint*) { LB *lb; -- cgit v1.2.3