|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH net-next v4 8/9] xen-netback: Timeout packets in RX path
On 20/01/14 16:53, Wei Liu wrote:
Here we want to avoid timeout messages if an skb can be legitimatly stucked somewhere else. As we discussed earlier, realisticly this could be an another vif's internal or QDisc queue. That another vif also has this rx_drain_timeout_msecs timeout, but now with Paul's recent changes the timer only ditches the internal queue. After that, the QDisc queue can put in worst case XEN_NETIF_RX_RING_SIZE / MAX_SKB_FRAGS skbs into that another vif's internal queue, so we need several rounds of such timeouts until we can be sure that no another vif should have skb's from us. We are not sending more skb's, so newly stucked packets are not interesting for us here. But actually using the current vif's queue length is not relevant in this calculation, as it doesn't mean other vif's has the same. I think it is better to stick with XENVIF_QUEUE_LENGTH. I've added this explanation as a comment and moved the calculation into a separate variable, so it doesn't cause such long lines. Zoli _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |