netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG PATCH NET-NEXT-2.6] kernel panic in dev_hard_start_xmit: remove faulty software TX time stamping
@ 2009-02-21  9:28 Patrick Ohly
  2009-02-21 10:37 ` Jeff Kirsher
  2009-02-21 10:42 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Patrick Ohly @ 2009-02-21  9:28 UTC (permalink / raw)
  To: David Miller, netdev@vger.kernel.org
  Cc: Tantilov, Emil S, Ronciak, John, Brandeburg, Jesse,
	Kirsher, Jeffrey T

The current implementation of the TX software time stamping fallback is
faulty because it accesses the skb after ndo_start_xmit() returns
successfully. This patch removes the fallback, which fixes kernel panics
seen during stress tests. Hardware time stamping is not affected by this
removal.

Signed-Off: Patrick Ohly <patrick.ohly@intel.com>
Signed-Off: Emil Tantilov <emil.s.tantilov@intel.com>

diff --git a/net/core/dev.c b/net/core/dev.c
index d393fc9..1dcace3 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1672,16 +1672,6 @@ static int dev_gso_segment(struct sk_buff *skb)
 	return 0;
 }
 
-static void tstamp_tx(struct sk_buff *skb)
-{
-	union skb_shared_tx *shtx =
-		skb_tx(skb);
-	if (unlikely(shtx->software &&
-			!shtx->in_progress)) {
-		skb_tstamp_tx(skb, NULL);
-	}
-}
-
 int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
 			struct netdev_queue *txq)
 {
@@ -1715,8 +1705,6 @@ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
 		 * the skb destructor before the call and restoring it
 		 * afterwards, then doing the skb_orphan() ourselves?
 		 */
-		if (likely(!rc))
-			tstamp_tx(skb);
 		return rc;
 	}
 
@@ -1732,7 +1720,6 @@ gso:
 			skb->next = nskb;
 			return rc;
 		}
-		tstamp_tx(skb);
 		if (unlikely(netif_tx_queue_stopped(txq) && skb->next))
 			return NETDEV_TX_BUSY;
 	} while (skb->next);




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [BUG PATCH NET-NEXT-2.6] kernel panic in dev_hard_start_xmit: remove faulty software TX time stamping
  2009-02-21  9:28 [BUG PATCH NET-NEXT-2.6] kernel panic in dev_hard_start_xmit: remove faulty software TX time stamping Patrick Ohly
@ 2009-02-21 10:37 ` Jeff Kirsher
  2009-02-21 10:42 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Kirsher @ 2009-02-21 10:37 UTC (permalink / raw)
  To: Patrick Ohly
  Cc: David Miller, netdev@vger.kernel.org, Tantilov, Emil S,
	Ronciak, John, Brandeburg, Jesse

On Sat, Feb 21, 2009 at 1:28 AM, Patrick Ohly <patrick.ohly@intel.com> wrote:
> The current implementation of the TX software time stamping fallback is
> faulty because it accesses the skb after ndo_start_xmit() returns
> successfully. This patch removes the fallback, which fixes kernel panics
> seen during stress tests. Hardware time stamping is not affected by this
> removal.
>
> Signed-Off: Patrick Ohly <patrick.ohly@intel.com>
> Signed-Off: Emil Tantilov <emil.s.tantilov@intel.com>
>

Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

-- 
Cheers,
Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG PATCH NET-NEXT-2.6] kernel panic in dev_hard_start_xmit: remove faulty software TX time stamping
  2009-02-21  9:28 [BUG PATCH NET-NEXT-2.6] kernel panic in dev_hard_start_xmit: remove faulty software TX time stamping Patrick Ohly
  2009-02-21 10:37 ` Jeff Kirsher
@ 2009-02-21 10:42 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2009-02-21 10:42 UTC (permalink / raw)
  To: patrick.ohly
  Cc: netdev, emil.s.tantilov, john.ronciak, jesse.brandeburg,
	jeffrey.t.kirsher

From: Patrick Ohly <patrick.ohly@intel.com>
Date: Sat, 21 Feb 2009 10:28:08 +0100

> The current implementation of the TX software time stamping fallback is
> faulty because it accesses the skb after ndo_start_xmit() returns
> successfully. This patch removes the fallback, which fixes kernel panics
> seen during stress tests. Hardware time stamping is not affected by this
> removal.
> 
> Signed-Off: Patrick Ohly <patrick.ohly@intel.com>
> Signed-Off: Emil Tantilov <emil.s.tantilov@intel.com>

It's "Signed-of-by", three words, only the first capitalized.

Aplied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-21 10:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-21  9:28 [BUG PATCH NET-NEXT-2.6] kernel panic in dev_hard_start_xmit: remove faulty software TX time stamping Patrick Ohly
2009-02-21 10:37 ` Jeff Kirsher
2009-02-21 10:42 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).