diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-06 02:08:31 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-06 02:08:31 +0000 |
commit | 2ce46f099e305079439e5da87d339ccdc1bf0006 (patch) | |
tree | 29bfa2cbace46cc915032519c98724eea2bee7ee /sys/kern/kern_timeout.c | |
parent | 9b4d7989dc75d938565d34f07026d0ce2ee59f59 (diff) | |
download | FreeBSD-src-2ce46f099e305079439e5da87d339ccdc1bf0006.zip FreeBSD-src-2ce46f099e305079439e5da87d339ccdc1bf0006.tar.gz |
When iterating the UDP inpcb list processing an inbound broadcast
or multicast packet, we don't need to acquire the inpcb mutex
unless we are actually using inpcb fields other than the bound port
and address. Since we hold the pcbinfo lock already, these can't
change. Defer acquiring the inpcb mutex until we have a high
chance of a match. This avoids about 120 mutex operations per UDP
broadcast packet received on one of my work systems.
Reviewed by: sam
Diffstat (limited to 'sys/kern/kern_timeout.c')
0 files changed, 0 insertions, 0 deletions