ip_input.c (6e23ae2a48750bda407a4a58f52a4865d7308bf5) | ip_input.c (8dbde28d9711475adfe0e9c88505e38743cdc2a7) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * The Internet Protocol (IP) module. 7 * 8 * Version: $Id: ip_input.c,v 1.55 2002/01/12 07:39:45 davem Exp $ --- 333 unchanged lines hidden (view full) --- 342 else if (err == -ENETUNREACH) 343 IP_INC_STATS_BH(IPSTATS_MIB_INNOROUTES); 344 goto drop; 345 } 346 } 347 348#ifdef CONFIG_NET_CLS_ROUTE 349 if (unlikely(skb->dst->tclassid)) { | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * The Internet Protocol (IP) module. 7 * 8 * Version: $Id: ip_input.c,v 1.55 2002/01/12 07:39:45 davem Exp $ --- 333 unchanged lines hidden (view full) --- 342 else if (err == -ENETUNREACH) 343 IP_INC_STATS_BH(IPSTATS_MIB_INNOROUTES); 344 goto drop; 345 } 346 } 347 348#ifdef CONFIG_NET_CLS_ROUTE 349 if (unlikely(skb->dst->tclassid)) { |
350 struct ip_rt_acct *st = ip_rt_acct + 256*smp_processor_id(); | 350 struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id()); |
351 u32 idx = skb->dst->tclassid; 352 st[idx&0xFF].o_packets++; 353 st[idx&0xFF].o_bytes+=skb->len; 354 st[(idx>>16)&0xFF].i_packets++; 355 st[(idx>>16)&0xFF].i_bytes+=skb->len; 356 } 357#endif 358 --- 98 unchanged lines hidden --- | 351 u32 idx = skb->dst->tclassid; 352 st[idx&0xFF].o_packets++; 353 st[idx&0xFF].o_bytes+=skb->len; 354 st[(idx>>16)&0xFF].i_packets++; 355 st[(idx>>16)&0xFF].i_bytes+=skb->len; 356 } 357#endif 358 --- 98 unchanged lines hidden --- |