net: remove NET_RX_BAD and NET_RX_CN* defines
authorFlorian Westphal <fw@strlen.de>
Sat, 20 Jun 2009 00:53:25 +0000 (00:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2009 02:15:35 +0000 (19:15 -0700)
almost no users in the tree; and the few that use them treat them
like NET_RX_DROP.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/rionet.c
drivers/net/wan/farsync.c
drivers/staging/otus/wrap_pkt.c
include/linux/netdevice.h
net/decnet/dn_route.c
net/lapb/lapb_iface.c

index 8702e7acdee648565112494e1095b5668f5e76f7..74cdb6f8f84f0c4be9933db233d5a5c866ae907f 100644 (file)
@@ -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;
index 25c9ef6a18155383bad5538f4912d7e660bb187a..90c0a317d9d3bca01057627e7bdbe2b9dc5748a9 100644 (file)
@@ -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);
index 5db0004c873953cd348c33532536f93a5129a181..89a6b92f5972113a78914aa5f978a2518c2e1618 100644 (file)
@@ -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++;
index d4a4d986779477b77c4c057a007ec708044ebc61..9f25ab2899de2e95f19799df9207b992edc66492 100644 (file)
@@ -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
index 1d6ca8a98dc62bf4f6e6660e4b3662393089d638..9383d3e5a1abb2d8916704c6f7e6a0a4fed0a32f 100644 (file)
@@ -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)
index 2ba1bc4f3c3a27b5d1bfbc25cf7ab1f44c59985a..bda96d18fd98388e87e8aef8a61bbcbeb7ff9798 100644 (file)
@@ -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)