From patchwork Wed May 4 14:03:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kumar X-Patchwork-Id: 753822 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p44E3NGO023159 for ; Wed, 4 May 2011 14:03:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753519Ab1EDODO (ORCPT ); Wed, 4 May 2011 10:03:14 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:33317 "EHLO e28smtp08.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753438Ab1EDODN (ORCPT ); Wed, 4 May 2011 10:03:13 -0400 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp08.in.ibm.com (8.14.4/8.13.1) with ESMTP id p44E1LQe004901; Wed, 4 May 2011 19:31:21 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p44E3BmD4124876; Wed, 4 May 2011 19:33:11 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p44E39cf008848; Wed, 4 May 2011 19:33:10 +0530 Received: from krkumar2.in.ibm.com ([9.124.221.167]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p44E397G008841; Wed, 4 May 2011 19:33:09 +0530 From: Krishna Kumar To: davem@davemloft.net Cc: eric.dumazet@gmail.com, kvm@vger.kernel.org, mst@redhat.com, netdev@vger.kernel.org, rusty@rustcorp.com.au, Krishna Kumar Date: Wed, 04 May 2011 19:33:09 +0530 Message-Id: <20110504140309.14817.61411.sendpatchset@krkumar2.in.ibm.com> In-Reply-To: <20110504140258.14817.66596.sendpatchset@krkumar2.in.ibm.com> References: <20110504140258.14817.66596.sendpatchset@krkumar2.in.ibm.com> Subject: [PATCH 1/4] [RFC] netdevice: Introduce per-txq xmit_restart Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 04 May 2011 14:03:23 +0000 (UTC) Add a per-txq field that can (optionally) be set by participating drivers to indicate when to restart tx. Signed-off-by: Krishna Kumar --- include/linux/netdevice.h | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -ruNp org/include/linux/netdevice.h new/include/linux/netdevice.h --- org/include/linux/netdevice.h 2011-05-04 18:57:06.000000000 +0530 +++ new/include/linux/netdevice.h 2011-05-04 18:57:09.000000000 +0530 @@ -571,6 +571,7 @@ struct netdev_queue { * please use this field instead of dev->trans_start */ unsigned long trans_start; + unsigned long xmit_restart_jiffies; /* jiffies to restart */ } ____cacheline_aligned_in_smp; static inline int netdev_queue_numa_node_read(const struct netdev_queue *q)