提交 4393e767 编写于 作者: T Taku Izumi 提交者: David S. Miller

fjes: net_device_ops.ndo_tx_timeout

This patch adds net_device_ops.ndo_tx_timeout callback.
Signed-off-by: NTaku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b9e23a67
...@@ -58,6 +58,7 @@ static irqreturn_t fjes_intr(int, void*); ...@@ -58,6 +58,7 @@ static irqreturn_t fjes_intr(int, void*);
static struct rtnl_link_stats64 * static struct rtnl_link_stats64 *
fjes_get_stats64(struct net_device *, struct rtnl_link_stats64 *); fjes_get_stats64(struct net_device *, struct rtnl_link_stats64 *);
static int fjes_change_mtu(struct net_device *, int); static int fjes_change_mtu(struct net_device *, int);
static void fjes_tx_retry(struct net_device *);
static int fjes_acpi_add(struct acpi_device *); static int fjes_acpi_add(struct acpi_device *);
static int fjes_acpi_remove(struct acpi_device *); static int fjes_acpi_remove(struct acpi_device *);
...@@ -224,6 +225,7 @@ static const struct net_device_ops fjes_netdev_ops = { ...@@ -224,6 +225,7 @@ static const struct net_device_ops fjes_netdev_ops = {
.ndo_start_xmit = fjes_xmit_frame, .ndo_start_xmit = fjes_xmit_frame,
.ndo_get_stats64 = fjes_get_stats64, .ndo_get_stats64 = fjes_get_stats64,
.ndo_change_mtu = fjes_change_mtu, .ndo_change_mtu = fjes_change_mtu,
.ndo_tx_timeout = fjes_tx_retry,
}; };
/* fjes_open - Called when a network interface is made active */ /* fjes_open - Called when a network interface is made active */
...@@ -705,6 +707,13 @@ fjes_xmit_frame(struct sk_buff *skb, struct net_device *netdev) ...@@ -705,6 +707,13 @@ fjes_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
return ret; return ret;
} }
static void fjes_tx_retry(struct net_device *netdev)
{
struct netdev_queue *queue = netdev_get_tx_queue(netdev, 0);
netif_tx_wake_queue(queue);
}
static struct rtnl_link_stats64 * static struct rtnl_link_stats64 *
fjes_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) fjes_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册