Re: [PATCH] macvlan: add tap device backend

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Sunday, August 9, 2009 - 1:42 pm

On Sunday 09 August 2009 08:02:16 Michael S. Tsirkin wrote:

Sure, will do.


Something seems to be missing in your last sentence here.

My driver OTOH is also missing any sort of flow control in both
RX and TX direction ;) For RX, there should probably just be
a limit of frames that get buffered in the ring.

For TX, I guess there should be a way to let the packet
scheduler handle this and give us a chance to block and
unblock at the right time. I haven't found out yet how to
do that.

Would it be enough to check the dev_queue_xmit() return
code for NETDEV_TX_BUSY?

How would I get notified when it gets free again?


AFAIK, we never do for any driver. They are statistics only and
need not be 100% correct, so the networking stack goes for
lower overhead and 99.9% correct.


Ah, good catch. I had copied that from the tun driver before you
fixed it there and failed to fix it the right way when I adapted
it for the new interface.

Thanks for the review,

	Arnd <><
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] macvlan: add tap device backend, Arnd Bergmann, (Thu Aug 6, 2:50 pm)
Re: [PATCH] macvlan: add tap device backend, David Miller, (Thu Aug 6, 8:20 pm)
Re: [Bridge] [PATCH] macvlan: add tap device backend, Daniel Robbins, (Fri Aug 7, 10:35 am)
Re: [PATCH] macvlan: add tap device backend, Michael S. Tsirkin, (Sun Aug 9, 1:02 am)
Re: [PATCH] macvlan: add tap device backend, Arnd Bergmann, (Sun Aug 9, 1:42 pm)
Re: [PATCH] macvlan: add tap device backend, Patrick McHardy, (Sun Aug 9, 11:47 pm)
Re: [PATCH] macvlan: add tap device backend, Michael S. Tsirkin, (Mon Aug 10, 1:50 am)
Re: [PATCH] macvlan: add tap device backend, Arnd Bergmann, (Mon Aug 10, 6:29 am)
Re: [PATCH] macvlan: add tap device backend, Michael S. Tsirkin, (Mon Aug 10, 6:42 am)
Re: [PATCH] macvlan: add tap device backend, Arnd Bergmann, (Mon Aug 10, 11:43 am)