提交 41a655ba 编写于 作者: K kirjanov@gmail.com 提交者: David S. Miller

greth: convert to netdev_tx_t

Convert to netdev_tx_t
Signed-off-by: NDenis Kirjanov <kirjanov@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e382c301
...@@ -66,8 +66,10 @@ module_param(greth_edcl, int, 0); ...@@ -66,8 +66,10 @@ module_param(greth_edcl, int, 0);
MODULE_PARM_DESC(greth_edcl, "GRETH EDCL usage indicator. Set to 1 if EDCL is used."); MODULE_PARM_DESC(greth_edcl, "GRETH EDCL usage indicator. Set to 1 if EDCL is used.");
static int greth_open(struct net_device *dev); static int greth_open(struct net_device *dev);
static int greth_start_xmit(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t greth_start_xmit(struct sk_buff *skb,
static int greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev); struct net_device *dev);
static netdev_tx_t greth_start_xmit_gbit(struct sk_buff *skb,
struct net_device *dev);
static int greth_rx(struct net_device *dev, int limit); static int greth_rx(struct net_device *dev, int limit);
static int greth_rx_gbit(struct net_device *dev, int limit); static int greth_rx_gbit(struct net_device *dev, int limit);
static void greth_clean_tx(struct net_device *dev); static void greth_clean_tx(struct net_device *dev);
...@@ -379,7 +381,8 @@ static int greth_close(struct net_device *dev) ...@@ -379,7 +381,8 @@ static int greth_close(struct net_device *dev)
return 0; return 0;
} }
static int greth_start_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t
greth_start_xmit(struct sk_buff *skb, struct net_device *dev)
{ {
struct greth_private *greth = netdev_priv(dev); struct greth_private *greth = netdev_priv(dev);
struct greth_bd *bdp; struct greth_bd *bdp;
...@@ -441,7 +444,8 @@ static int greth_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -441,7 +444,8 @@ static int greth_start_xmit(struct sk_buff *skb, struct net_device *dev)
} }
static int greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t
greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev)
{ {
struct greth_private *greth = netdev_priv(dev); struct greth_private *greth = netdev_priv(dev);
struct greth_bd *bdp; struct greth_bd *bdp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册