Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214304
b: refs/heads/master
c: e8cb7eb
h: refs/heads/master
v: v3
  • Loading branch information
Santiago Leon authored and David S. Miller committed Sep 7, 2010
1 parent 77b472a commit 8e7e78b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c033a6d1390bb6cc0c11c3b4137b856dfd8cb7c8
refs/heads/master: e8cb7eb473ac47703282db6f90b4926f31cdf376
7 changes: 1 addition & 6 deletions trunk/drivers/net/ibmveth.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@ static netdev_tx_t ibmveth_start_xmit(struct sk_buff *skb,
union ibmveth_buf_desc desc;
unsigned long lpar_rc;
unsigned long correlator;
unsigned long flags;
unsigned int retry_count;
unsigned int tx_dropped = 0;
unsigned int tx_bytes = 0;
Expand Down Expand Up @@ -965,20 +964,18 @@ static netdev_tx_t ibmveth_start_xmit(struct sk_buff *skb,
} else {
tx_packets++;
tx_bytes += skb->len;
netdev->trans_start = jiffies; /* NETIF_F_LLTX driver :( */
}

if (!used_bounce)
dma_unmap_single(&adapter->vdev->dev, data_dma_addr,
skb->len, DMA_TO_DEVICE);

out: spin_lock_irqsave(&adapter->stats_lock, flags);
out:
netdev->stats.tx_dropped += tx_dropped;
netdev->stats.tx_bytes += tx_bytes;
netdev->stats.tx_packets += tx_packets;
adapter->tx_send_failed += tx_send_failed;
adapter->tx_map_failed += tx_map_failed;
spin_unlock_irqrestore(&adapter->stats_lock, flags);

dev_kfree_skb(skb);
return NETDEV_TX_OK;
Expand Down Expand Up @@ -1290,8 +1287,6 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_
netdev->netdev_ops = &ibmveth_netdev_ops;
netdev->ethtool_ops = &netdev_ethtool_ops;
SET_NETDEV_DEV(netdev, &dev->dev);
netdev->features |= NETIF_F_LLTX;
spin_lock_init(&adapter->stats_lock);

memcpy(netdev->dev_addr, &adapter->mac_addr, netdev->addr_len);

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/ibmveth.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ struct ibmveth_adapter {
u64 rx_no_buffer;
u64 tx_map_failed;
u64 tx_send_failed;
spinlock_t stats_lock;
};

struct ibmveth_buf_desc_fields {
Expand Down

0 comments on commit 8e7e78b

Please sign in to comment.