]> git.baikalelectronics.ru Git - kernel.git/commit
net-timestamp: Make the clone operation stand-alone from phy timestamping
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 4 Sep 2014 17:31:35 +0000 (13:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 00:43:45 +0000 (17:43 -0700)
commit2c9248e5e2cc5fb11635e5d4c2a622f929aaea63
treef1a545f5635070e5022e2bc0ab7b1260644c8588
parentc72e4d881ace7327a418096fe4aba854d32b31d9
net-timestamp: Make the clone operation stand-alone from phy timestamping

The phy timestamping takes a different path than the regular timestamping
does in that it will create a clone first so that the packets needing to be
timestamped can be placed in a queue, or the context block could be used.

In order to support these use cases I am pulling the core of the code out
so it can be used in other drivers beyond just phy devices.

In addition I have added a destructor named sock_efree which is meant to
provide a simple way for dropping the reference to skb exceptions that
aren't part of either the receive or send windows for the socket, and I
have removed some duplication in spots where this destructor could be used
in place of sock_edemux.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c
include/linux/skbuff.h
include/net/sock.h
net/core/skbuff.c
net/core/sock.c
net/core/timestamping.c