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-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
        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)
 {
                 * the skb destructor before the call and restoring it
                 * afterwards, then doing the skb_orphan() ourselves?
                 */
-               if (likely(!rc))
-                       tstamp_tx(skb);
                return rc;
        }
 
                        skb->next = nskb;
                        return rc;
                }
-               tstamp_tx(skb);
                if (unlikely(netif_tx_queue_stopped(txq) && skb->next))
                        return NETDEV_TX_BUSY;
        } while (skb->next);