Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158752
b: refs/heads/master
c: ec634fe
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jul 6, 2009
1 parent 95f07ac commit a2ccd9c
Show file tree
Hide file tree
Showing 53 changed files with 117 additions and 114 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: a73e76e23c20c05cb8c0b7ba8bc9daa04b05c80f
refs/heads/master: ec634fe328182a1a098585bfc7b69e5042bdb08d
2 changes: 1 addition & 1 deletion trunk/arch/xtensa/platforms/iss/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ static int iss_net_start_xmit(struct sk_buff *skb, struct net_device *dev)
spin_unlock_irqrestore(&lp->lock, flags);

dev_kfree_skb(skb);
return 0;
return NETDEV_TX_OK;
}


Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/hysdn/hysdn_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ net_send_packet(struct sk_buff *skb, struct net_device *dev)
if (lp->sk_count <= 3) {
schedule_work(&((hysdn_card *) dev->ml_priv)->irq_queue);
}
return (0); /* success */
return NETDEV_TX_OK; /* success */
} /* net_send_packet */


Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/isdn/i4l/isdn_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,12 +1051,12 @@ isdn_net_xmit(struct net_device *ndev, struct sk_buff *skb)
isdn_net_dev *nd;
isdn_net_local *slp;
isdn_net_local *lp = (isdn_net_local *) netdev_priv(ndev);
int retv = 0;
int retv = NETDEV_TX_OK;

if (((isdn_net_local *) netdev_priv(ndev))->master) {
printk("isdn BUG at %s:%d!\n", __FILE__, __LINE__);
dev_kfree_skb(skb);
return 0;
return NETDEV_TX_OK;
}

/* For the other encaps the header has already been built */
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/isdn/i4l/isdn_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ isdn_ppp_xmit(struct sk_buff *skb, struct net_device *netdev)
isdn_net_dev *nd;
unsigned int proto = PPP_IP; /* 0x21 */
struct ippp_struct *ipt,*ipts;
int slot, retval = 0;
int slot, retval = NETDEV_TX_OK;

mlp = (isdn_net_local *) netdev_priv(netdev);
nd = mlp->netdev; /* get master lp */
Expand All @@ -1240,7 +1240,7 @@ isdn_ppp_xmit(struct sk_buff *skb, struct net_device *netdev)
if (!(ipts->pppcfg & SC_ENABLE_IP)) { /* PPP connected ? */
if (ipts->debug & 0x1)
printk(KERN_INFO "%s: IP frame delayed.\n", netdev->name);
retval = 1;
retval = NETDEV_TX_BUSY;
goto out;
}

Expand All @@ -1261,7 +1261,7 @@ isdn_ppp_xmit(struct sk_buff *skb, struct net_device *netdev)
lp = isdn_net_get_locked_lp(nd);
if (!lp) {
printk(KERN_WARNING "%s: all channels busy - requeuing!\n", netdev->name);
retval = 1;
retval = NETDEV_TX_BUSY;
goto out;
}
/* we have our lp locked from now on */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/3c501.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ static int el_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (el_debug > 2)
pr_debug(" queued xmit.\n");
dev_kfree_skb(skb);
return 0;
return NETDEV_TX_OK;
}
/* A receive upset our load, despite our best efforts */
if (el_debug > 2)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/7990.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ int lance_start_xmit (struct sk_buff *skb, struct net_device *dev)
lp->tx_full = 1;
spin_unlock_irqrestore (&lp->devlock, flags);

return 0;
return NETDEV_TX_OK;
}
EXPORT_SYMBOL_GPL(lance_start_xmit);

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/a2065.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,11 @@ static int lance_start_xmit (struct sk_buff *skb, struct net_device *dev)
volatile struct lance_regs *ll = lp->ll;
volatile struct lance_init_block *ib = lp->init_block;
int entry, skblen;
int status = 0;
int status = NETDEV_TX_OK;
unsigned long flags;

if (skb_padto(skb, ETH_ZLEN))
return 0;
return NETDEV_TX_OK;
skblen = max_t(unsigned, skb->len, ETH_ZLEN);

local_irq_save(flags);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bond_3ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2431,7 +2431,7 @@ int bond_3ad_xmit_xor(struct sk_buff *skb, struct net_device *dev)
dev_kfree_skb(skb);
}
read_unlock(&bond->lock);
return 0;
return NETDEV_TX_OK;
}

int bond_3ad_lacpdu_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type* ptype, struct net_device *orig_dev)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bond_alb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev)
}
read_unlock(&bond->curr_slave_lock);
read_unlock(&bond->lock);
return 0;
return NETDEV_TX_OK;
}

void bond_alb_monitor(struct work_struct *work)
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4277,7 +4277,7 @@ static int bond_xmit_roundrobin(struct sk_buff *skb, struct net_device *bond_dev
dev_kfree_skb(skb);
}
read_unlock(&bond->lock);
return 0;
return NETDEV_TX_OK;
}


Expand Down Expand Up @@ -4308,7 +4308,7 @@ static int bond_xmit_activebackup(struct sk_buff *skb, struct net_device *bond_d

read_unlock(&bond->curr_slave_lock);
read_unlock(&bond->lock);
return 0;
return NETDEV_TX_OK;
}

/*
Expand Down Expand Up @@ -4354,7 +4354,7 @@ static int bond_xmit_xor(struct sk_buff *skb, struct net_device *bond_dev)
dev_kfree_skb(skb);
}
read_unlock(&bond->lock);
return 0;
return NETDEV_TX_OK;
}

/*
Expand Down Expand Up @@ -4414,7 +4414,7 @@ static int bond_xmit_broadcast(struct sk_buff *skb, struct net_device *bond_dev)

/* frame sent to all suitable interfaces */
read_unlock(&bond->lock);
return 0;
return NETDEV_TX_OK;
}

/*------------------------- Device initialization ---------------------------*/
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/defxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3218,7 +3218,7 @@ static int dfx_xmt_queue_pkt(
bp->xmt_length_errors++; /* bump error counter */
netif_wake_queue(dev);
dev_kfree_skb(skb);
return(0); /* return "success" */
return NETDEV_TX_OK; /* return "success" */
}
/*
* See if adapter link is available, if not, free buffer
Expand All @@ -3241,7 +3241,7 @@ static int dfx_xmt_queue_pkt(
bp->xmt_discards++; /* bump error counter */
dev_kfree_skb(skb); /* free sk_buff now */
netif_wake_queue(dev);
return(0); /* return "success" */
return NETDEV_TX_OK; /* return "success" */
}
}

Expand Down Expand Up @@ -3345,7 +3345,7 @@ static int dfx_xmt_queue_pkt(
dfx_port_write_long(bp, PI_PDQ_K_REG_TYPE_2_PROD, bp->rcv_xmt_reg.lword);
spin_unlock_irqrestore(&bp->lock, flags);
netif_wake_queue(dev);
return(0); /* packet queued to adapter */
return NETDEV_TX_OK; /* packet queued to adapter */
}


Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/depca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ static int __init get_hw_addr(struct net_device *dev)
static int load_packet(struct net_device *dev, struct sk_buff *skb)
{
struct depca_private *lp = netdev_priv(dev);
int i, entry, end, len, status = 0;
int i, entry, end, len, status = NETDEV_TX_OK;

entry = lp->tx_new; /* Ring around buffer number. */
end = (entry + (skb->len - 1) / TX_BUFF_SZ) & lp->txRingMask;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ibm_newemac/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ static inline int emac_xmit_finish(struct emac_instance *dev, int len)
++dev->stats.tx_packets;
dev->stats.tx_bytes += len;

return 0;
return NETDEV_TX_OK;
}

/* Tx lock BH */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static int ifb_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct ifb_private *dp = netdev_priv(dev);
struct net_device_stats *stats = &dev->stats;
int ret = 0;
int ret = NETDEV_TX_OK;
u32 from = G_TC_FROM(skb->tc_verd);

stats->rx_packets++;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/irda/ali-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1966,10 +1966,10 @@ static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev)

IRDA_DEBUG(2, "%s(), ---------------- Start ----------------\n", __func__ );

IRDA_ASSERT(dev != NULL, return 0;);
IRDA_ASSERT(dev != NULL, return NETDEV_TX_OK;);

self = netdev_priv(dev);
IRDA_ASSERT(self != NULL, return 0;);
IRDA_ASSERT(self != NULL, return NETDEV_TX_OK;);

iobase = self->io.sir_base;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/irda/donauboe.c
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)

self = netdev_priv(dev);

IRDA_ASSERT (self != NULL, return 0; );
IRDA_ASSERT (self != NULL, return NETDEV_TX_OK; );

IRDA_DEBUG (1, "%s.tx:%x(%x)%x\n", __func__
,skb->len,self->txpending,INB (OBOE_ENABLEH));
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/irda/nsc-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev)

self = netdev_priv(dev);

IRDA_ASSERT(self != NULL, return 0;);
IRDA_ASSERT(self != NULL, return NETDEV_TX_OK;);

iobase = self->io.fir_base;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/irda/sir_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ static int sirdev_hard_xmit(struct sk_buff *skb, struct net_device *ndev)
int err;
s32 speed;

IRDA_ASSERT(dev != NULL, return 0;);
IRDA_ASSERT(dev != NULL, return NETDEV_TX_OK;);

netif_stop_queue(ndev);

Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/net/irda/smsc-ircc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,10 +886,10 @@ static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev)

IRDA_DEBUG(1, "%s\n", __func__);

IRDA_ASSERT(dev != NULL, return 0;);
IRDA_ASSERT(dev != NULL, return NETDEV_TX_OK;);

self = netdev_priv(dev);
IRDA_ASSERT(self != NULL, return 0;);
IRDA_ASSERT(self != NULL, return NETDEV_TX_OK;);

netif_stop_queue(dev);

Expand All @@ -914,7 +914,7 @@ static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev)
smsc_ircc_change_speed(self, speed);
spin_unlock_irqrestore(&self->lock, flags);
dev_kfree_skb(skb);
return 0;
return NETDEV_TX_OK;
}
self->new_speed = speed;
}
Expand All @@ -935,7 +935,7 @@ static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev)

dev_kfree_skb(skb);

return 0;
return NETDEV_TX_OK;
}

/*
Expand Down Expand Up @@ -1190,9 +1190,9 @@ static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev)
s32 speed;
int mtt;

IRDA_ASSERT(dev != NULL, return 0;);
IRDA_ASSERT(dev != NULL, return NETDEV_TX_OK;);
self = netdev_priv(dev);
IRDA_ASSERT(self != NULL, return 0;);
IRDA_ASSERT(self != NULL, return NETDEV_TX_OK;);

netif_stop_queue(dev);

Expand All @@ -1210,7 +1210,7 @@ static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev)
smsc_ircc_change_speed(self, speed);
spin_unlock_irqrestore(&self->lock, flags);
dev_kfree_skb(skb);
return 0;
return NETDEV_TX_OK;
}

self->new_speed = speed;
Expand Down Expand Up @@ -1242,7 +1242,7 @@ static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev)
spin_unlock_irqrestore(&self->lock, flags);
dev_kfree_skb(skb);

return 0;
return NETDEV_TX_OK;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/irda/via-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb,
__u32 speed;

self = netdev_priv(dev);
IRDA_ASSERT(self != NULL, return 0;);
IRDA_ASSERT(self != NULL, return NETDEV_TX_OK;);
iobase = self->io.fir_base;

netif_stop_queue(dev);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/lib8390.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static int __ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
dev_kfree_skb (skb);
dev->stats.tx_bytes += send_length;

return 0;
return NETDEV_TX_OK;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/mlx4/en_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ int mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
/* Poll CQ here */
mlx4_en_xmit_poll(priv, tx_ind);

return 0;
return NETDEV_TX_OK;

tx_drop:
dev_kfree_skb_any(skb);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2968,13 +2968,13 @@ static int myri10ge_sw_tso(struct sk_buff *skb, struct net_device *dev)
}
}
dev_kfree_skb_any(skb);
return 0;
return NETDEV_TX_OK;

drop:
ss = &mgp->ss[skb_get_queue_mapping(skb)];
dev_kfree_skb_any(skb);
ss->stats.tx_dropped += 1;
return 0;
return NETDEV_TX_OK;
}

static struct net_device_stats *myri10ge_get_stats(struct net_device *dev)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/ni52.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ static int ni52_send_packet(struct sk_buff *skb, struct net_device *dev)

if (skb->len > XMIT_BUFF_SIZE) {
printk(KERN_ERR "%s: Sorry, max. framelength is %d bytes. The length of your frame is %d bytes.\n", dev->name, XMIT_BUFF_SIZE, skb->len);
return 0;
return NETDEV_TX_OK;
}

netif_stop_queue(dev);
Expand Down Expand Up @@ -1267,7 +1267,7 @@ static int ni52_send_packet(struct sk_buff *skb, struct net_device *dev)
}
dev_kfree_skb(skb);
#endif
return 0;
return NETDEV_TX_OK;
}

/*******************************************
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/skfp/skfddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ static int skfp_send_pkt(struct sk_buff *skb, struct net_device *dev)
// dequeue packets from xmt queue and send them
netif_start_queue(dev);
dev_kfree_skb(skb);
return (0); /* return "success" */
return NETDEV_TX_OK; /* return "success" */
}
if (bp->QueueSkb == 0) { // return with tbusy set: queue full

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/sonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev)
length = skb->len;
if (length < ETH_ZLEN) {
if (skb_padto(skb, ETH_ZLEN))
return 0;
return NETDEV_TX_OK;
length = ETH_ZLEN;
}

Expand Down Expand Up @@ -265,7 +265,7 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev)

dev->trans_start = jiffies;

return 0;
return NETDEV_TX_OK;
}

/*
Expand Down
Loading

0 comments on commit a2ccd9c

Please sign in to comment.