aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_packet.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-05 01:43:20 -0700
committerDavid S. Miller <davem@davemloft.net>2011-07-05 22:34:52 -0700
commit7736d33f4262d437c51ed7a28114eacbfca236ff (patch)
treefdefc344c66940773982d23203a7fc07aa94e1ef /include/linux/if_packet.h
parentipv4: Add ip_defrag() agent IP_DEFRAG_AF_PACKET. (diff)
downloadlinux-dev-7736d33f4262d437c51ed7a28114eacbfca236ff.tar.xz
linux-dev-7736d33f4262d437c51ed7a28114eacbfca236ff.zip
packet: Add pre-defragmentation support for ipv4 fanouts.
The skb->rxhash cannot be properly computed if the packet is a fragment. To alleviate this, allow the AF_PACKET client to ask for defragmentation to be done at demux time. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_packet.h')
-rw-r--r--include/linux/if_packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h
index 1efa1cb827f5..84e684e6935c 100644
--- a/include/linux/if_packet.h
+++ b/include/linux/if_packet.h
@@ -53,6 +53,7 @@ struct sockaddr_ll {
#define PACKET_FANOUT_HASH 0
#define PACKET_FANOUT_LB 1
+#define PACKET_FANOUT_FLAG_DEFRAG 0x8000
struct tpacket_stats {
unsigned int tp_packets;