route.c (95d465fd750897ab32462a6702fbfe1b122cbbc0) route.c (6f912042256c12b0927438122594f5379b364f5d)
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 * ROUTE - implementation of the IP router.
7 *
8 * Version: $Id: route.c,v 1.103 2002/01/12 07:44:09 davem Exp $

--- 3069 unchanged lines hidden (view full) ---

3078 u32 *src = ((u32 *) IP_RT_ACCT_CPU(0)) + offset;
3079 u32 *dst = (u32 *) buffer;
3080
3081 /* Copy first cpu. */
3082 *start = buffer;
3083 memcpy(dst, src, length);
3084
3085 /* Add the other cpus in, one int at a time */
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 * ROUTE - implementation of the IP router.
7 *
8 * Version: $Id: route.c,v 1.103 2002/01/12 07:44:09 davem Exp $

--- 3069 unchanged lines hidden (view full) ---

3078 u32 *src = ((u32 *) IP_RT_ACCT_CPU(0)) + offset;
3079 u32 *dst = (u32 *) buffer;
3080
3081 /* Copy first cpu. */
3082 *start = buffer;
3083 memcpy(dst, src, length);
3084
3085 /* Add the other cpus in, one int at a time */
3086 for_each_cpu(i) {
3086 for_each_possible_cpu(i) {
3087 unsigned int j;
3088
3089 src = ((u32 *) IP_RT_ACCT_CPU(i)) + offset;
3090
3091 for (j = 0; j < length/4; j++)
3092 dst[j] += src[j];
3093 }
3094 }

--- 104 unchanged lines hidden ---
3087 unsigned int j;
3088
3089 src = ((u32 *) IP_RT_ACCT_CPU(i)) + offset;
3090
3091 for (j = 0; j < length/4; j++)
3092 dst[j] += src[j];
3093 }
3094 }

--- 104 unchanged lines hidden ---