MFC 315bca194a14:Fix an early return in ctld UCL parserIf the UCL ctld parser encountered a port that used the CTLioctl device, it fell into a special case that had an erroneousearly return. T
MFC 315bca194a14:Fix an early return in ctld UCL parserIf the UCL ctld parser encountered a port that used the CTLioctl device, it fell into a special case that had an erroneousearly return. This caused all configuration in the targetfollowing the port attribute to be skipped. Fix this by replacingthe return with a continue so that the rest of the config isparsed correctly.Sponsored by: Dell EMC IsilonMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D31703Reviewed by: bapt(cherry picked from commit 315bca194a14f3b9ec683675bafa8d990d16bfaf)
show more ...
ctld: Always declare MaxRecvDataSegmentLength.This key is Declarative and should always be sent even if theinitiator did not send it's own limit. This is similar to the fix infc79cf4fea72 but fo
ctld: Always declare MaxRecvDataSegmentLength.This key is Declarative and should always be sent even if theinitiator did not send it's own limit. This is similar to the fix infc79cf4fea72 but for the target side. However, unlike that fix,failure to send the key simply results in reduced performance.PR: 259439Reviewed by: mav, emasteSponsored by: Chelsio CommunicationsDifferential Revision: https://reviews.freebsd.org/D32651(cherry picked from commit 7ef7b252adc0152e5f726d00640124c5de0909a9)
ctld: Disable TCP DDP for connection sockets.cxgbei is not able to offload PDU processing for a socket using TCPDDP offload.Sponsored by: Chelsio Communications(cherry picked from commit 3b5f9
ctld: Disable TCP DDP for connection sockets.cxgbei is not able to offload PDU processing for a socket using TCPDDP offload.Sponsored by: Chelsio Communications(cherry picked from commit 3b5f95d7bd20e366d720a47a79c451ae037a3ae1)
pkgbase: Move ctld/ctladm to iscsi packageWhile here only compile both of them if WITH_ISCSI is set (this is the default).Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D3
pkgbase: Move ctld/ctladm to iscsi packageWhile here only compile both of them if WITH_ISCSI is set (this is the default).Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D30755Sponsored by: Diablotin Systems
Fix typo in an_initator_name.MFC after: 1 week
Fix typo in ap_initator_portal.MFC after: 1 week
[ctld] Fix compilation under gcc-6.4* remove dup yylex symbol; already defined in a header file* uint64_t is always >= 0Reviewed by: cem, impDifferential Revision: https://reviews.freebsd.org/D
[ctld] Fix compilation under gcc-6.4* remove dup yylex symbol; already defined in a header file* uint64_t is always >= 0Reviewed by: cem, impDifferential Revision: https://reviews.freebsd.org/D27046
Drop "All rights reserved" from all my stuff. This includesFoundation copyrights, approved by emaste@. It does not includefiles which carry other people's copyrights; if you're oneof those peopl
Drop "All rights reserved" from all my stuff. This includesFoundation copyrights, approved by emaste@. It does not includefiles which carry other people's copyrights; if you're oneof those people, feel free to make similar change.Reviewed by: emaste, imp, gbe (manpages)Differential Revision: https://reviews.freebsd.org/D26980
Add network QoS support for PCP to iscsi target.Mak the Ethernet PCP codepoint configurablefor L2 local traffic, to allow lower latency foriSCSI block IO. This addresses the targetside only.Re
Add network QoS support for PCP to iscsi target.Mak the Ethernet PCP codepoint configurablefor L2 local traffic, to allow lower latency foriSCSI block IO. This addresses the targetside only.Reviewed by: mav, trasz, bcrSponsored by: NetApp, Inc.Differential Revision: https://reviews.freebsd.org/D26740
ctl.conf(5): fix LUN size in UCL format example.Remove quotes around size in the LUN section and change the suffix to 'GB'. TheUCL format does recognize 'G' on its own, which uses a base 10 multip
ctl.conf(5): fix LUN size in UCL format example.Remove quotes around size in the LUN section and change the suffix to 'GB'. TheUCL format does recognize 'G' on its own, which uses a base 10 multiplier where'GB' uses a 2 power multiplier.Document the difference between valid suffixes when using ctl.conf(5) in thegeneral syntax form or in UCL format.Reviewed by: kevans, mavApproved by: kevans (mentor)Differential Revision: https://reviews.freebsd.org/D26716
Don't ignore the return value from gethostname(3). It probablycannot happen, but it silences Coverity.Reviewed by: mavMFC after: 2 weeksSponsored by: NetApp, Inc.Sponsored by: Klara, Inc.Diff
Don't ignore the return value from gethostname(3). It probablycannot happen, but it silences Coverity.Reviewed by: mavMFC after: 2 weeksSponsored by: NetApp, Inc.Sponsored by: Klara, Inc.Differential Revision: https://reviews.freebsd.org/D26606
Do a sweep and remove most WARNS=6 settingsRepeating the default WARNS here makes it slightly more difficult toexperiment with default WARNS changes, e.g. if we did something absolutelybananas an
Do a sweep and remove most WARNS=6 settingsRepeating the default WARNS here makes it slightly more difficult toexperiment with default WARNS changes, e.g. if we did something absolutelybananas and introduced a WARNS=7 and wanted to try lifting the default tothat.Drop most of them; there is one in the blake2 kernel module, but I suspectit should be dropped -- the default WARNS in the rest of the build doesn'tcurrently apply to kernel modules, and I haven't put too much thought intowhether it makes sense to make it so.
Add DSCP support for network QoS to iscsi target.In order to prioritize iSCSI traffic across a network,DSCP can be used. In order not to rely on "ipfw setdscp"or in-network reclassification, this
Add DSCP support for network QoS to iscsi target.In order to prioritize iSCSI traffic across a network,DSCP can be used. In order not to rely on "ipfw setdscp"or in-network reclassification, this adds the dscp valuedirectly to the portal group (where TCP sessions are accepted).The incoming iSCSI session is first handled by ctld for anyCHAP authentication and the socket is then handed off to thein-kernel iscsi driver without modification of the socketparameters. Simply setting up the socket in ctld is sufficientto keep sending outgoing iSCSI related traffic with theconfigured DSCP value.Reviewed by: mav, traszMFC after: 2 weeksSponsored by: NetApp, Inc.Differential Revision: https://reviews.freebsd.org/D26385
Make sure not to pass NULL to strtoul(3). The values comefrom the kernel, but let's try to be on the safe side.Reviewed by: mavMFC after: 2 weeksSponsored by: NetApp, Inc.Sponsored by: Klara,
Make sure not to pass NULL to strtoul(3). The values comefrom the kernel, but let's try to be on the safe side.Reviewed by: mavMFC after: 2 weeksSponsored by: NetApp, Inc.Sponsored by: Klara, Inc.Differential Revision: https://reviews.freebsd.org/D26246
When modifying LUN pass "special" options too.Before switching to nvlists CTL merged previous and new options, soany options not passed just kept previous value. Now CTL completelyreplaces them,
When modifying LUN pass "special" options too.Before switching to nvlists CTL merged previous and new options, soany options not passed just kept previous value. Now CTL completelyreplaces them, so we must pass everything still relevant.MFC after: 1 weekSponsored by: iXsystems, Inc.
ctld: Fix a memory leak in uclparse_conf().PR: 246596Submitted by: Patryk <[email protected]>MFC after: 1 week
Add 'ctld -t', to test configuration file validity.Reviewed by: mav, allanjude, bcr (man pages)MFC after: 2 weeksSponsored by: Klara Inc.Differential Revision: https://reviews.freebsd.org/D23792
Stop linking to libl by specifying we do not need yywrapMFC after: 3 days
iscsi: simplify the capsicumizationApproved by: traszDifferential Revision: https://reviews.freebsd.org/D17962
Rework CTL frontend & backend options to use nv(3), allow creating multipleioctl frontend ports.This revision introduces two changes to CTL:- Changes the way options are passed to CTL_LUN_REQ and
Rework CTL frontend & backend options to use nv(3), allow creating multipleioctl frontend ports.This revision introduces two changes to CTL:- Changes the way options are passed to CTL_LUN_REQ and CTL_PORT_REQ ioctls. Removes ctl_be_arg structure and associated logic and replaces it with nv(3)-based logic for passing in and out arguments.- Allows creating multiple ioctl frontend ports using either ctladm(8) or ctld(8). New frontend ports are represented by /dev/cam/ctl<pp>.<vp> nodes, eg /dev/cam/ctl5.3. Those device nodes respond only to CTL_IO ioctl.New command-line options for ctladm:# creates new ioctl frontend port with using free pp and vp=0ctladm port -c# creates new ioctl frontend port with pp=10 and vp=0ctladm port -c -O pp=10# creates new ioctl frontend port with pp=11 and vp=12ctladm port -c -O pp=11 -O vp=12# removes port with number 4 (it's a "targ_port" number, not pp number)ctladm port -r -p 4New syntax for ctl.conf:target ... { port ioctl/<pp> ...}target ... { port ioctl/<pp>/<vp> ...Note: Most of this work was made by jceel@, thank you.Submitted by: jceelReworked by: myselfReviewed by: mav (earlier versions and recently during the rework)Obtained from: FreeNAS and TrueOSRelnotes: YesSponsored by: iXsystems Inc.Differential Revision: https://reviews.freebsd.org/D9299
Strip trailing whitespace.MFC after: 2 weeks
minor work smithing...
Add missing SPDX tags for ctld(8).MFC after: 2 weeks
userland: Fix several typos and minor errors- duplicate words- typos- references to old versions of FreeBSDReviewed by: imp, benno
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
123456789