Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158736
b: refs/heads/master
c: 0e8635a
h: refs/heads/master
v: v3
  • Loading branch information
Florian Westphal authored and David S. Miller committed Jul 6, 2009
1 parent e2e38a5 commit 998e5df
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 34 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: 6b1344724e10c166d9e3c17011ed879ddf302e94
refs/heads/master: 0e8635a8e1f2d4a9e1bfc6c3b21419a5921e674f
5 changes: 0 additions & 5 deletions trunk/drivers/net/rionet.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ static int rionet_rx_clean(struct net_device *ndev)

if (error == NET_RX_DROP) {
ndev->stats.rx_dropped++;
} else if (error == NET_RX_BAD) {
if (netif_msg_rx_err(rnet))
printk(KERN_WARNING "%s: bad rx packet\n",
DRV_NAME);
ndev->stats.rx_errors++;
} else {
ndev->stats.rx_packets++;
ndev->stats.rx_bytes += RIO_MAX_MSG_SIZE;
Expand Down
19 changes: 0 additions & 19 deletions trunk/drivers/net/wan/farsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,25 +792,6 @@ fst_process_rx_status(int rx_status, char *name)
*/
break;
}

case NET_RX_CN_LOW:
{
dbg(DBG_ASS, "%s: Receive Low Congestion\n", name);
break;
}

case NET_RX_CN_MOD:
{
dbg(DBG_ASS, "%s: Receive Moderate Congestion\n", name);
break;
}

case NET_RX_CN_HIGH:
{
dbg(DBG_ASS, "%s: Receive High Congestion\n", name);
break;
}

case NET_RX_DROP:
{
dbg(DBG_ASS, "%s: Received packet dropped\n", name);
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/otus/wrap_pkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@ void zfLnxRecvEth(zdev_t* dev, zbuf_t* buf, u16_t port)
switch(netif_rx(buf))
#endif
{
case NET_RX_BAD:
case NET_RX_DROP:
case NET_RX_CN_MOD:
case NET_RX_CN_HIGH:
break;
default:
macp->drv_stats.net_stats.rx_packets++;
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ struct wireless_dev;
/* Backlog congestion levels */
#define NET_RX_SUCCESS 0 /* keep 'em coming, baby */
#define NET_RX_DROP 1 /* packet dropped */
#define NET_RX_CN_LOW 2 /* storm alert, just in case */
#define NET_RX_CN_MOD 3 /* Storm on its way! */
#define NET_RX_CN_HIGH 4 /* The storm is here */
#define NET_RX_BAD 5 /* packet dropped due to kernel error */

/* NET_XMIT_CN is special. It does not guarantee that this packet is lost. It
* indicates that the device will soon be dropping packets, or already drops
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/decnet/dn_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ static int dn_rt_bug(struct sk_buff *skb)

kfree_skb(skb);

return NET_RX_BAD;
return NET_RX_DROP;
}

static int dn_rt_set_next_hop(struct dn_route *rt, struct dn_fib_res *res)
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/lapb/lapb_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ int lapb_data_indication(struct lapb_cb *lapb, struct sk_buff *skb)
return lapb->callbacks.data_indication(lapb->dev, skb);

kfree_skb(skb);
return NET_RX_CN_HIGH; /* For now; must be != NET_RX_DROP */
return NET_RX_SUCCESS; /* For now; must be != NET_RX_DROP */
}

int lapb_data_transmit(struct lapb_cb *lapb, struct sk_buff *skb)
Expand Down

0 comments on commit 998e5df

Please sign in to comment.