From: Tom Parkin Date: Tue, 19 Mar 2013 06:11:12 +0000 (+0000) Subject: udp: add encap_destroy callback X-Git-Tag: v3.9-rc5~28^2~27^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44046a593eb770dbecdabf1c82bcd252f2a8337b;p=pandora-kernel.git udp: add encap_destroy callback Users of udp encapsulation currently have an encap_rcv callback which they can use to hook into the udp receive path. In situations where a encapsulation user allocates resources associated with a udp encap socket, it may be convenient to be able to also hook the proto .destroy operation. For example, if an encap user holds a reference to the udp socket, the destroy hook might be used to relinquish this reference. This patch adds a socket destroy hook into udp, which is set and enabled in the same way as the existing encap_rcv hook. Signed-off-by: Tom Parkin Signed-off-by: James Chapman Signed-off-by: David S. Miller --- Reading git-diff-tree failed