mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
netdev: convert pseudo-devices to netdev_tx_t
Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
dc1f8bf68b
commit
6fef4c0c8e
17 changed files with 30 additions and 31 deletions
|
|
@ -169,13 +169,13 @@ struct net_device *dsa_slave_create(struct dsa_switch *ds,
|
|||
int port, char *name);
|
||||
|
||||
/* tag_dsa.c */
|
||||
int dsa_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
netdev_tx_t dsa_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
|
||||
/* tag_edsa.c */
|
||||
int edsa_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
netdev_tx_t edsa_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
|
||||
/* tag_trailer.c */
|
||||
int trailer_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
netdev_tx_t trailer_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#define DSA_HLEN 4
|
||||
|
||||
int dsa_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
netdev_tx_t dsa_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
struct dsa_slave_priv *p = netdev_priv(dev);
|
||||
u8 *dsa_header;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
#define DSA_HLEN 4
|
||||
#define EDSA_HLEN 8
|
||||
|
||||
int edsa_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
netdev_tx_t edsa_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
struct dsa_slave_priv *p = netdev_priv(dev);
|
||||
u8 *edsa_header;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include <linux/netdevice.h>
|
||||
#include "dsa_priv.h"
|
||||
|
||||
int trailer_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
netdev_tx_t trailer_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
struct dsa_slave_priv *p = netdev_priv(dev);
|
||||
struct sk_buff *nskb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue