[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100708192125.GB15167@exar.com>
Date: Thu, 8 Jul 2010 14:21:26 -0500
From: Jon Mason <jon.mason@...r.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org,
Sreenivasa Honnur <sreenivasa.honnur@...r.com>,
Ramkrishna Vepa <ram.vepa@...r.com>
Subject: [PATCH 2/6 net-next-2.6] vxge: Use fifo based trans_start time
Use the fifo based netdev_queue->trans_start time in vxge_xmit, instead
of the device based netdev->trans_start time.
Signed-off-by: Jon Mason <jon.mason@...r.com>
Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@...r.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@...r.com>
---
drivers/net/vxge/vxge-main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c
index e78703d..b8eed71 100644
--- a/drivers/net/vxge/vxge-main.c
+++ b/drivers/net/vxge/vxge-main.c
@@ -802,6 +802,7 @@ vxge_xmit(struct sk_buff *skb, struct net_device *dev)
unsigned long flags = 0;
int vpath_no = 0;
int do_spin_tx_lock = 1;
+ struct netdev_queue *txq;
vxge_debug_entryexit(VXGE_TRACE, "%s: %s:%d",
dev->name, __func__, __LINE__);
@@ -968,8 +969,10 @@ vxge_xmit(struct sk_buff *skb, struct net_device *dev)
VXGE_HW_FIFO_TXD_TX_CKO_UDP_EN);
vxge_hw_fifo_txdl_post(fifo_hw, dtr);
+
#ifdef NETIF_F_LLTX
- dev->trans_start = jiffies; /* NETIF_F_LLTX driver :( */
+ txq = netdev_get_tx_queue(dev, vpath_no);
+ txq->trans_start = jiffies;
#endif
spin_unlock_irqrestore(&fifo->tx_lock, flags);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists