In case we cannot queue a packet reaching the queue limit, retain the
semantics netisr_queue() always had and free the mbuf along with returning the error. Reviewed by: rwatson Approved by: re (kensmith)
This commit is contained in:
parent
5ed6940d13
commit
ba3b25b35a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195182
@ -803,6 +803,7 @@ netisr_queue_workstream(struct netisr_workstream *nwsp, u_int proto,
|
||||
npwp->nw_queued++;
|
||||
return (0);
|
||||
} else {
|
||||
m_freem(m);
|
||||
npwp->nw_qdrops++;
|
||||
return (ENOBUFS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user