]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dropcount'
authorDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 05:19:35 +0000 (00:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 05:19:35 +0000 (00:19 -0500)
commit77120db52078045ff45249e4390ab70e18c63fec
treee8e54af77636cf51a1146cd638275f940bfe3db9
parent200420df41c877bbf52d59f0c3a6883f0c623bc1
parent0e133e1516206f64d8a5d7219c1abe70687ef8fc
Merge branch 'dropcount'

Eyal Birger says:

====================
net: move skb->dropcount to skb->cb[]

Commit 4b816063eadc ("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 to userspace.

It was considered to alias skb->priority instead of skb->mark.
However, that would lead to the inabilty to export skb->priority
to userspace if desired. Such change may also lead to hard-to-find
issues as skb->priority is assumed to be alias free, and, as noted
by Shmulik Ladkani, is not 'naturally orthogonal' with other skb
fields.

This patch series follows the suggestions made by Eric Dumazet moving
the dropcount metric to skb->cb[], eliminating this problem
at the expense of 4 bytes less in skb->cb[] for protocol families
using it.

The patch series include compactization of bluetooth and packet
use of skb->cb[] as well as the infrastructure for placing dropcount
in skb->cb[].
====================

Signed-off-by: David S. Miller <davem@davemloft.net>