ip_input.c (f43dc23d5ea91fca257be02138a255f02d98e806) ip_input.c (c7066f70d9610df0b9406cc635fc09e86136e714)
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 * Authors: Ross Biro

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

335 IPSTATS_MIB_INNOROUTES);
336 else if (err == -EXDEV)
337 NET_INC_STATS_BH(dev_net(skb->dev),
338 LINUX_MIB_IPRPFILTER);
339 goto drop;
340 }
341 }
342
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 * Authors: Ross Biro

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

335 IPSTATS_MIB_INNOROUTES);
336 else if (err == -EXDEV)
337 NET_INC_STATS_BH(dev_net(skb->dev),
338 LINUX_MIB_IPRPFILTER);
339 goto drop;
340 }
341 }
342
343#ifdef CONFIG_NET_CLS_ROUTE
343#ifdef CONFIG_IP_ROUTE_CLASSID
344 if (unlikely(skb_dst(skb)->tclassid)) {
345 struct ip_rt_acct *st = this_cpu_ptr(ip_rt_acct);
346 u32 idx = skb_dst(skb)->tclassid;
347 st[idx&0xFF].o_packets++;
348 st[idx&0xFF].o_bytes += skb->len;
349 st[(idx>>16)&0xFF].i_packets++;
350 st[(idx>>16)&0xFF].i_bytes += skb->len;
351 }

--- 101 unchanged lines hidden ---
344 if (unlikely(skb_dst(skb)->tclassid)) {
345 struct ip_rt_acct *st = this_cpu_ptr(ip_rt_acct);
346 u32 idx = skb_dst(skb)->tclassid;
347 st[idx&0xFF].o_packets++;
348 st[idx&0xFF].o_bytes += skb->len;
349 st[(idx>>16)&0xFF].i_packets++;
350 st[(idx>>16)&0xFF].i_bytes += skb->len;
351 }

--- 101 unchanged lines hidden ---