diff options
author | David S. Miller <davem@davemloft.net> | 2014-08-23 01:21:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-25 08:02:45 +0200 |
commit | 4798248e4e023170e937a65a1d30fcc52496dd42 (patch) | |
tree | c043fec145a1c2035f4c9e4ff7b4fbedc07bb1d5 /net/core/pktgen.c | |
parent | ipv6: White-space cleansing : gaps between function and symbol export (diff) | |
download | linux-4798248e4e023170e937a65a1d30fcc52496dd42.tar.xz linux-4798248e4e023170e937a65a1d30fcc52496dd42.zip |
net: Add ops->ndo_xmit_flush()
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 8b849ddfef2e..83e2b4b19eb7 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -3285,8 +3285,6 @@ static void pktgen_wait_for_skb(struct pktgen_dev *pkt_dev) static void pktgen_xmit(struct pktgen_dev *pkt_dev) { struct net_device *odev = pkt_dev->odev; - netdev_tx_t (*xmit)(struct sk_buff *, struct net_device *) - = odev->netdev_ops->ndo_start_xmit; struct netdev_queue *txq; u16 queue_map; int ret; @@ -3339,7 +3337,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev) goto unlock; } atomic_inc(&(pkt_dev->skb->users)); - ret = (*xmit)(pkt_dev->skb, odev); + ret = netdev_start_xmit(pkt_dev->skb, odev); switch (ret) { case NETDEV_TX_OK: |