From 21264022388cc795478511d03b72ddc0ce213c5b Mon Sep 17 00:00:00 2001 From: andre Date: Fri, 27 Aug 2004 18:33:08 +0000 Subject: 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 MFC after: 3 days --- sys/net/rtsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net/rtsock.c') diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 0108f5e..8616e23 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -978,7 +978,7 @@ rt_dispatch(struct mbuf *m, const struct sockaddr *sa) *family = sa ? sa->sa_family : 0; m_tag_prepend(m, tag); } - netisr_queue(NETISR_ROUTE, m); + netisr_queue(NETISR_ROUTE, m); /* mbuf is free'd on failure. */ } /* -- cgit v1.1