summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/tcm.h
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2016-01-23 12:05:05 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2016-03-11 08:48:14 +0300
commit71e7ae8e1fb2102bb373e6507c3f6540ead999f0 (patch)
tree18d10db1ceeaf616833b74704e0da3b237a447ed /drivers/usb/gadget/function/tcm.h
parent5f27edad953cfde6339f17ce461f57bc7060dc4f (diff)
downloadlinux-71e7ae8e1fb2102bb373e6507c3f6540ead999f0.tar.xz
usb-gadget/tcm: Conversion to percpu_ida tag pre-allocation
This patch converts usb-gadget target to use percpu_ida tag pre-allocation for struct usbg_cmd descriptor, in order to avoid fast-path struct usbg_cmd memory allocations. Note by default this is currently hardcoded to 128. Tested-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/usb/gadget/function/tcm.h')
-rw-r--r--drivers/usb/gadget/function/tcm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/tcm.h b/drivers/usb/gadget/function/tcm.h
index b75c6f3e1980..a27e6e34db0b 100644
--- a/drivers/usb/gadget/function/tcm.h
+++ b/drivers/usb/gadget/function/tcm.h
@@ -23,6 +23,8 @@ enum {
#define USB_G_ALT_INT_BBB 0
#define USB_G_ALT_INT_UAS 1
+#define USB_G_DEFAULT_SESSION_TAGS 128
+
struct tcm_usbg_nexus {
struct se_session *tvn_se_sess;
};