/* * u_tcm.h * * Utility definitions for the tcm function * * Copyright (c) 2015 Samsung Electronics Co., Ltd. * http://www.samsung.com * * Author: Andrzej Pietrasiewicz * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef U_TCM_H #define U_TCM_H #include /** * @dependent: optional dependent module. Meant for legacy gadget. * If non-null its refcount will be increased when a tpg is created and * decreased when tpg is dropped. * @dep_lock: lock for dependent module operations. * @ready: true if the dependent module information is set. * @can_attach: true a function can be bound to gadget * @has_dep: true if there is a dependent module * */ struct f_tcm_opts { struct usb_function_instance func_inst; struct module *dependent; struct mutex dep_lock; bool ready; bool can_attach; bool has_dep; /* * Callbacks to be removed when legacy tcm gadget disappears. * * If you use the new function registration interface * programmatically, you MUST set these callbacks to * something sensible (e.g. probe/remove the composite). */ int (*tcm_register_callback)(struct usb_function_instance *); void (*tcm_unregister_callback)(struct usb_function_instance *); }; #endif /* U_TCM_H */ ext plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ve'/>
AgeCommit message (Collapse)AuthorFilesLines
context:
space:
mode:
authorPablo Neira <pablo@netfilter.org>2017-01-26 22:56:21 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-27 10:33:56 -0500
commit92e55f412cffd016cc245a74278cb4d7b89bb3bc (patch)
treeab90e2e59c82daae60d2c953ef6c780e1f6e5550 /net/ipv6/exthdrs.c
parenta47b70ea86bdeb3091341f5ae3ef580f1a1ad822 (diff)
tcp: don't annotate mark on control socket from tcp_v6_send_response()
Unlike ipv4, this control socket is shared by all cpus so we cannot use it as scratchpad area to annotate the mark that we pass to ip6_xmit(). Add a new parameter to ip6_xmit() to indicate the mark. The SCTP socket family caches the flowi6 structure in the sctp_transport structure, so we cannot use to carry the mark unless we later on reset it back, which I discarded since it looks ugly to me. Fixes: bf99b4ded5f8 ("tcp: fix mark propagation with fwmark_reflect enabled") Suggested-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/exthdrs.c')