Spdk/lib/iscsi
Shuhei Matsumoto b65443be6e iscsi: Allow to set cpumask more than active cores for iSCSI connection
Currently the cpumask must be a subset of the reactor mask.

However, this is different from sched_setaffinity() function
and taskset command of FreeBSD and Linux.  The latter will
be familier for more people. Hence the later is adopted.

The following is quoted from the FreeBSD Man Page of taskset:

  The CPU affinity is represented as a bitmask, with the lowest
  order bit corresponding to the first logical CPU and the
  highest order bit corresponding to the last logical CPU.

  Not all CPUs may exist on a given system but a mask may specify
  more CPUs than are present.

  A retrieved mask will reflect only the bits that correspond to
  CPUs physically on the system.

  If an invalid mask is given (i.e., one that corresponds to no
  valid CPUs on the current system) an error is returned.

  The masks are typically given in hexadecimal.

Change-Id: I7e0d2e029569bfc986f7fcdf78048791ab389f72
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/392446
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-12-20 15:19:04 -05:00
..
acceptor.c iscsi: Remove nested, duplicated, or unreferenced file inclusion 2017-12-14 11:30:05 -05:00
acceptor.h iscsi: login poller per portal and portal cache 2017-10-06 17:00:45 -04:00
conn.c iscsi: Remove DPDK dependency and simplify load balancing 2017-12-20 15:17:15 -05:00
conn.h iscsi: Remove nested, duplicated, or unreferenced file inclusion 2017-12-14 11:30:05 -05:00
init_grp.c iscsi: Remove use of perror for malloc, strdup, and writev failure 2017-12-19 11:41:43 -05:00
init_grp.h iscsi: Remove gropu_state from IG and PG 2017-12-04 11:28:52 -05:00
iscsi_rpc.c iscsi: Set cpumask to all available CPUs when PG is created JSON-RPC 2017-12-19 15:22:05 -05:00
iscsi_subsystem.c etc/spdk/iscsi.conf.in: How to use cpumask for the connection 2017-12-20 11:31:45 -05:00
iscsi.c iscsi: Remove use of perror for malloc, strdup, and writev failure 2017-12-19 11:41:43 -05:00
iscsi.h iscsi: Use spdk_mempool for session and pdu related pool 2017-12-11 19:42:21 -05:00
Makefile util: add CRC32 utility functions 2017-08-02 19:47:35 -04:00
md5.c astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
md5.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
param.c iscsi: Remove use of perror for malloc, strdup, and writev failure 2017-12-19 11:41:43 -05:00
param.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
portal_grp.c iscsi: Allow to set cpumask more than active cores for iSCSI connection 2017-12-20 15:19:04 -05:00
portal_grp.h iscsi: Remove gropu_state from IG and PG 2017-12-04 11:28:52 -05:00
task.c iscsi: let task_pool use spdk_mempool related functions 2017-12-06 17:03:15 -05:00
task.h iscsi: change iscsi_bhs_scsi_req variable names. 2017-07-18 13:14:16 -04:00
tgt_node.c scsi&test/iscsi_tgt: SCSI device == iSCSI name 2017-12-19 13:34:03 -05:00
tgt_node.h iscsi: Dynamic reconfiguration of PG-IG maps 2017-12-07 12:28:02 -05:00