diff options
author | David S. Miller <davem@davemloft.net> | 2015-03-02 00:19:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 00:19:35 -0500 |
commit | 6556c38524f3a55427598af2d7fc9c1d9c75bdae (patch) | |
tree | e8e54af77636cf51a1146cd638275f940bfe3db9 /drivers/net | |
parent | 287f3a943fef58c5c73e42545169443be379222f (diff) | |
parent | 744d5a3e9fe2690dd85d9991dbb078301694658b (diff) | |
download | lwn-6556c38524f3a55427598af2d7fc9c1d9c75bdae.tar.gz lwn-6556c38524f3a55427598af2d7fc9c1d9c75bdae.zip |
Merge branch 'dropcount'
Eyal Birger says:
====================
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 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>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions