From: Eric Dumazet Date: Thu, 31 Jan 2013 01:51:44 +0000 (-0800) Subject: x86: bpf_jit_comp: add pkt_type support X-Git-Tag: v3.9-rc1~139^2~204 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b58908a92e00840bcd9050808f3dc86fd547029;p=pandora-kernel.git x86: bpf_jit_comp: add pkt_type support Supporting access to skb->pkt_type is a bit tricky if we want to have a generic code, allowing pkt_type to be moved in struct sk_buff pkt_type is a bit field, so compiler cannot really help us to find its offset. Let's use a helper for this : It will throw a one time message if pkt_type no longer starts at a byte boundary or is no longer a 3bit field. Reported-by: Willem de Bruijn Signed-off-by: Eric Dumazet Cc: Maciej Żenczykowski Signed-off-by: David S. Miller --- Reading git-diff-tree failed