Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355036
b: refs/heads/master
c: d723485
h: refs/heads/master
v: v3
  • Loading branch information
Jon Mason authored and Greg Kroah-Hartman committed Jan 20, 2013
1 parent e5dba03 commit 14f46e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 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: 765ccc7bc3d913e18b887a86de1e86db701a2d78
refs/heads/master: d723485cb4ca9eefaf43fd9f165554094b97f2c2
11 changes: 0 additions & 11 deletions trunk/drivers/net/ntb_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ static void ntb_netdev_tx_handler(struct ntb_transport_qp *qp, void *qp_data,
}

dev_kfree_skb(skb);

if (netif_queue_stopped(ndev))
netif_wake_queue(ndev);
}

static netdev_tx_t ntb_netdev_start_xmit(struct sk_buff *skb,
Expand All @@ -166,7 +163,6 @@ static netdev_tx_t ntb_netdev_start_xmit(struct sk_buff *skb,
err:
ndev->stats.tx_dropped++;
ndev->stats.tx_errors++;
netif_stop_queue(ndev);
return NETDEV_TX_BUSY;
}

Expand Down Expand Up @@ -270,18 +266,11 @@ static int ntb_netdev_change_mtu(struct net_device *ndev, int new_mtu)
return rc;
}

static void ntb_netdev_tx_timeout(struct net_device *ndev)
{
if (netif_running(ndev))
netif_wake_queue(ndev);
}

static const struct net_device_ops ntb_netdev_ops = {
.ndo_open = ntb_netdev_open,
.ndo_stop = ntb_netdev_close,
.ndo_start_xmit = ntb_netdev_start_xmit,
.ndo_change_mtu = ntb_netdev_change_mtu,
.ndo_tx_timeout = ntb_netdev_tx_timeout,
.ndo_set_mac_address = eth_mac_addr,
};

Expand Down

0 comments on commit 14f46e0

Please sign in to comment.