ip: introduce ip_is_fragment helper inline function
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 22 Jun 2011 03:33:34 +0000 (20:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2011 03:33:34 +0000 (20:33 -0700)
commit56f8a75c17abb854b5907f4a815dc4c3f186ba11
tree6ba333b7668ce7dd04cddecf4f15a0a48b335991
parentf470e5ae34d68880a38aa79ee5c102ebc2a1aef6
ip: introduce ip_is_fragment helper inline function

There are enough instances of this:

    iph->frag_off & htons(IP_MF | IP_OFFSET)

that a helper function is probably warranted.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
19 files changed:
drivers/net/bonding/bond_main.c
drivers/net/ioc3-eth.c
drivers/net/myri10ge/myri10ge.c
drivers/net/s2io.c
drivers/net/sfc/filter.c
drivers/net/vxge/vxge-main.c
include/net/ip.h
net/core/dev.c
net/ipv4/ip_input.c
net/ipv4/ip_output.c
net/ipv4/ipconfig.c
net/ipv4/netfilter/nf_defrag_ipv4.c
net/ipv4/netfilter/nf_nat_standalone.c
net/ipv4/xfrm4_policy.c
net/netfilter/ipvs/ip_vs_core.c
net/sched/cls_flow.c
net/sched/cls_rsvp.h
net/sched/sch_choke.c
net/sched/sch_sfq.c