search for: max_burst

Displaying 1 result from an estimated 1 matches for "max_burst".

Did you mean: max_burst_l
2013 Jun 24
3
[PATCH v2] xen-netback: add a pseudo pps rate limit
...-git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 8c20935..097a390 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -905,10 +905,16 @@ static void tx_add_credit(struct xenvif *vif) vif->remaining_credit = min(max_credit, max_burst); } +static void tx_add_packets(struct xenvif *vif) +{ + vif->remaining_packets = vif->credit_packets; +} + static void tx_credit_callback(unsigned long data) { struct xenvif *vif = (struct xenvif *)data; tx_add_credit(vif); + tx_add_packets(vif); xen_netbk_check_rx_xenvif(vif); }...