1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-07 13:14:51 +00:00
freebsd/sys
Andre Oppermann 3161f583ca Apply error and success logic consistently to the function netisr_queue() and
its users.

netisr_queue() now returns (0) on success and ERRNO on failure.  At the
moment ENXIO (netisr queue not functional) and ENOBUFS (netisr queue full)
are supported.

Previously it would return (1) on success but the return value of IF_HANDOFF()
was interpreted wrongly and (0) was actually returned on success.  Due to this
schednetisr() was never called to kick the scheduling of the isr.  However this
was masked by other normal packets coming through netisr_dispatch() causing the
dequeueing of waiting packets.

PR:		kern/70988
Found by:	MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
MFC after:	3 days
2004-08-27 18:33:08 +00:00
..
alpha Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
amd64 Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
arm
boot B1FLAGS -> BOOT_BOOT1_FLAGS, which is consistent with 2004-08-27 15:01:56 +00:00
cam
coda
compat
conf Properly document and enable the IPFIREWALL_FORWARD option. 2004-08-27 15:46:16 +00:00
contrib
crypto
ddb
dev Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
doc
fs Remove bogus vrele() call added in previous. 2004-08-27 11:24:31 +00:00
gdb
geom Introduce g_alloc_bio() as a waiting variant of g_new_bio(). 2004-08-27 14:43:11 +00:00
gnu
i4b Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
i386 Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
ia64 Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
isa
isofs/cd9660
kern Reintroduce slightly modified patch from kern/69964. Check for 2004-08-27 01:41:28 +00:00
libkern
modules Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
net Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
net80211
netatalk
netatm
netgraph Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
netinet Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
netinet6 Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
netipsec Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
netipx
netkey Diff reduce against KAME: minor white space synchronization to KAME 2004-08-27 18:24:59 +00:00
netnatm
netncp
netsmb
nfs
nfs4client
nfsclient
nfsserver
opencrypto
pc98 Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
pccard
pci
posix4
powerpc Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
rpc
security
sparc64 Always compile PFIL_HOOKS into the kernel and remove the associated kernel 2004-08-27 15:16:24 +00:00
sys Add a new module information type MODINFOMD_SHDR that will be used 2004-08-27 01:10:16 +00:00
tools
ufs
vm
Makefile