From: Eyal Birger Date: Sun, 1 Mar 2015 12:58:31 +0000 (+0200) Subject: net: move skb->dropcount to skb->cb[] X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~377^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744d5a3e9fe2690dd85d9991dbb078301694658b;p=pandora-kernel.git net: move skb->dropcount to skb->cb[] Commit 977750076d98 ("af_packet: add interframe drop cmsg (v6)") unionized skb->mark and skb->dropcount in order to allow recording of the socket drop count while maintaining struct sk_buff size. skb->dropcount was introduced since there was no available room in skb->cb[] in packet sockets. However, its introduction led to the inability to export skb->mark, or any other aliased field to userspace if so desired. Moving the dropcount metric to skb->cb[] eliminates this problem at the expense of 4 bytes less in skb->cb[] for protocol families using it. Signed-off-by: Eyal Birger Signed-off-by: David S. Miller --- Reading git-diff-tree failed