lkml.org 
[lkml]   [2008]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] virtio_net: free transmit skbs in a timer
Rusty Russell wrote:
> OK. And since the current situation is that the host doesn't throttle, the
> feature bit should be "don't throttle, host is doing it for you", and Mark's
> patch should go in...
>

Yes.

We should have thought of this before, though, especially as Xen does
this or something very similar:

> /* Shared ring page */ \
> struct __name##_sring { \
> RING_IDX req_prod, req_event; \
> RING_IDX rsp_prod, rsp_event; \
> uint8_t pad[48]; \
> union __name##_sring_entry ring[1]; /* variable-length */ \
> }; \

req_event and rsp_event allow the other side to indicate when it wants a
notification.


--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.



\
 
 \ /
  Last update: 2008-05-18 16:29    [W:0.069 / U:23.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site