ia64/xen-unstable

changeset 675:7678e3defee2

bitkeeper revision 1.390 (3f28e60en8ngkjURAmEySVpMK3U5PQ)

dev.c, perfc_defn.h:
Little perfctr addition.
author kaf24@scramble.cl.cam.ac.uk
date Thu Jul 31 09:49:02 2003 +0000 (2003-07-31)
parents dc4e1de5713d
children 00f3a45626b0
files xen/include/xeno/perfc_defn.h xen/net/dev.c
line diff
     1.1 --- a/xen/include/xeno/perfc_defn.h	Thu Jul 31 09:19:21 2003 +0000
     1.2 +++ b/xen/include/xeno/perfc_defn.h	Thu Jul 31 09:49:02 2003 +0000
     1.3 @@ -10,7 +10,8 @@ PERFCOUNTER_CPU( sched_run2,   "sched: r
     1.4  PERFCOUNTER_CPU( sched_ctx,    "sched: context switches" )
     1.5  
     1.6  PERFCOUNTER( net_hypercalls, "network hypercalls" )
     1.7 -PERFCOUNTER( net_rx_capacity_drop, "net rx capacity drop" )
     1.8 +PERFCOUNTER( net_rx_congestion_drop, "net rx congestion drops" )
     1.9 +PERFCOUNTER( net_rx_capacity_drop, "net rx capacity drops" )
    1.10  PERFCOUNTER( net_rx_delivered, "net rx delivered" )
    1.11  PERFCOUNTER( net_rx_tlbflush, "net rx tlb flushes" )
    1.12  PERFCOUNTER( net_tx_transmitted, "net tx transmitted" )
     2.1 --- a/xen/net/dev.c	Thu Jul 31 09:19:21 2003 +0000
     2.2 +++ b/xen/net/dev.c	Thu Jul 31 09:49:02 2003 +0000
     2.3 @@ -615,7 +615,7 @@ int netif_rx(struct sk_buff *skb)
     2.4      /* This oughtn't to happen, really! */
     2.5      if ( unlikely(skb_queue_len(q) > 100) )
     2.6      {
     2.7 -        printk("Congestion -- packet dropped!!\n");
     2.8 +        perfc_incr(net_rx_congestion_drop);
     2.9          return NET_RX_DROP;
    2.10      }
    2.11