net: core: don't account for udp header size when computing seglen
[firefly-linux-kernel-4.4.55.git] / net / core / pktgen.c
index d0dac57291afab943db9719aa5818ebb6611cf65..d068ec25db1ee42982ed4e6d934de612d9b09a26 100644 (file)
@@ -3340,7 +3340,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
 
        __netif_tx_lock_bh(txq);
 
-       if (unlikely(netif_xmit_frozen_or_stopped(txq))) {
+       if (unlikely(netif_xmit_frozen_or_drv_stopped(txq))) {
                ret = NETDEV_TX_BUSY;
                pkt_dev->last_ok = 0;
                goto unlock;