login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
20
Re: [git patches] net driver updates
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [git patches] net driver updates
Date: Wednesday, February 20, 2008 - 1:38 pm
Divy Le Ray wrote:
quoted text
> Jeff Garzik wrote: >> Mostly fixes, a few cleanups (generally assisting fixes), and an >> exception for PS3 wireless because it had been posted, reviewed and >> acked for a while, just not committed. >> >> Please pull from 'upstream-davem' branch of >> master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git >> upstream-davem >> >> to receive the following updates: >> >> >> drivers/net/cxgb3/sge.c | 35 +- >> >> diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c >> index 9ca8c66..979f3fc 100644 >> --- a/drivers/net/cxgb3/sge.c >> +++ b/drivers/net/cxgb3/sge.c >> @@ -1059,6 +1059,14 @@ static void write_tx_pkt_wr(struct adapter >> *adap, struct sk_buff *skb, >> htonl(V_WR_TID(q->token))); >> } >> >> +static inline void t3_stop_queue(struct net_device *dev, struct >> sge_qset *qs, >> + struct sge_txq *q) >> +{ >> + netif_stop_queue(dev); >> + set_bit(TXQ_ETH, &qs->txq_stopped); >> + q->stops++; >> +} >> + >> /** >> * eth_xmit - add a packet to the Ethernet Tx queue >> * @skb: the packet >> @@ -1090,31 +1098,18 @@ int t3_eth_xmit(struct sk_buff *skb, struct >> net_device *dev) >> ndesc = calc_tx_descs(skb); >> >> if (unlikely(credits < ndesc)) { >> - if (!netif_queue_stopped(dev)) { >> - netif_stop_queue(dev); >> - set_bit(TXQ_ETH, &qs->txq_stopped); >> - q->stops++; >> - dev_err(&adap->pdev->dev, >> - "%s: Tx ring %u full while queue awake!\n", >> - dev->name, q->cntxt_id & 7); >> - } >> + t3_stop_queue(dev, qs, q); >> + dev_err(&adap->pdev->dev, >> + "%s: Tx ring %u full while queue awake!\n", >> + dev->name, q->cntxt_id & 7); >> spin_unlock(&q->lock); >> return NETDEV_TX_BUSY; >> } >> >> q->in_use += ndesc; >> - if (unlikely(credits - ndesc < q->stop_thres)) { >> - q->stops++; >> - netif_stop_queue(dev); >> - set_bit(TXQ_ETH, &qs->txq_stopped); >> -#if !USE_GTS >> - if (should_restart_tx(q) && >> - test_and_clear_bit(TXQ_ETH, &qs->txq_stopped)) { >> - q->restarts++; >> - netif_wake_queue(dev); >> - } >> -#endif >> - } >> + if (unlikely(credits - ndesc < q->stop_thres)) >> + if (USE_GTS || !should_restart_tx(q)) >> + t3_stop_queue(dev, qs, q); >> >> gen = q->gen; >> q->unacked += ndesc; >> > Hi Jeff, > > I thought I had NAK'ed the patch modifying sge.c from Krishna Kumar. > Looking back at my answer at the time, I was obviously unclear. > Can you please revert the drivers/net/cxgb3sge.c change ?
Explain why, so I can include it in the changelog please... Jeff --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[git patches] net driver updates
, Jeff Garzik
, (Mon Feb 11, 10:05 am)
Re: [git patches] net driver updates
, Divy Le Ray
, (Mon Feb 11, 1:07 pm)
Re: [git patches] net driver updates
, David Miller
, (Mon Feb 11, 10:57 pm)
Re: [git patches] net driver updates
, Jeff Garzik
, (Wed Feb 20, 1:38 pm)
Re: [git patches] net driver updates
, Divy Le Ray
, (Wed Feb 20, 6:16 pm)
Re: [git patches] net driver updates
, Krishna Kumar2
, (Wed Feb 20, 8:43 pm)
Re: [git patches] net driver updates
, David Miller
, (Wed Feb 20, 10:46 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate