qio: Queues with no limit are always writable
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Feb 2017 19:34:07 +0000 (14:34 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Feb 2017 19:34:07 +0000 (14:34 -0500)
commite69031e8009ec039e46553856add63e21e7c2b16
tree1b5f2a228e0084b460aaab94cf82cc909aedef5a
parentd692397269ff98e67d2160b0174f786816afea4c
qio: Queues with no limit are always writable

For instance, any queues made with qbypass() (which calls a kick method)
have no q->limit.  You can always try to write to them, and the kick
function pointer will deal with the result, such as dropping a packet.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ns/qio.c