summaryrefslogtreecommitdiff
path: root/include/linux/if_packet.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-05 12:43:20 +0400
committerDavid S. Miller <davem@davemloft.net>2011-07-06 09:34:52 +0400
commit7736d33f4262d437c51ed7a28114eacbfca236ff (patch)
treefdefc344c66940773982d23203a7fc07aa94e1ef /include/linux/if_packet.h
parent595fc71baa1e80420fe89a400ff2d9cc099d22fc (diff)
downloadlinux-7736d33f4262d437c51ed7a28114eacbfca236ff.tar.xz
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;