Displaying 1 result from an estimated 1 matches for "ring_slots_requir".
Did you mean:
ring_slots_required
2013 Jul 02
3
[PATCH RFC] xen-netback: remove guest RX path dependence on MAX_SKB_FRAGS
...44
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -96,18 +96,24 @@ static irqreturn_t xenvif_interrupt(int irq, void *dev_id)
static int xenvif_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct xenvif *vif = netdev_priv(dev);
+ unsigned int ring_slots_required;
BUG_ON(skb->dev != dev);
if (vif->netbk == NULL)
goto drop;
+ ring_slots_required = xen_netbk_count_skb_slots(vif, skb);
+
+ /* Reserve ring slots for the worst-case number of fragments. */
+ vif->rx_req_cons_peek += ring_slots_required;
+
/* Drop the packet if the target...