Displaying 2 results from an estimated 2 matches for "copy_pending_req".
2009 Feb 05
0
[PATCH] netback: add ethtool stat to track copied skbs
...netback/netback.c
--- a/drivers/xen/netback/netback.c Wed Feb 04 12:26:00 2009 +0000
+++ b/drivers/xen/netback/netback.c Thu Feb 05 15:11:35 2009 +0000
@@ -914,7 +914,11 @@ inline static void net_tx_action_dealloc
if (time_after(inuse->alloc_time + HZ / 2, jiffies))
break;
- switch (copy_pending_req(inuse - pending_inuse)) {
+ pending_idx = inuse - pending_inuse;
+
+ pending_tx_info[pending_idx].netif->nr_copied_skbs++;
+
+ switch (copy_pending_req(pending_idx)) {
case 0:
list_move_tail(&inuse->list, &list);
continue;
_________________________________________...
2007 Mar 20
62
RFC: [0/2] Remove netloop by lazy copying in netback
Hi Keir:
These two patches remove the need for netloop by performing the
copying in netback and only if it is necessary. The rationale
is that most packets will be processed without delay allowing
them to be freed without copying at all. So instead of copying
every packet destined to dom0 we''ll only copy those that linger
longer than a specified amount of time (currently 0.5s).
As it