diff options
author | trasz <trasz@FreeBSD.org> | 2015-02-06 21:03:25 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-02-06 21:03:25 +0000 |
commit | ba70dc0f4deacb9392d178bd7b48c20556486a5c (patch) | |
tree | 87c429dd203f72c20ec2b1a4649579aab5189db6 /usr.sbin/ctladm | |
parent | 83fb4b4e9bdce5fa574089d1a3272a152b4a4a18 (diff) | |
download | FreeBSD-src-ba70dc0f4deacb9392d178bd7b48c20556486a5c.zip FreeBSD-src-ba70dc0f4deacb9392d178bd7b48c20556486a5c.tar.gz |
Make it possible to set (via ctl.conf(5)) and query (via ctladm islist -v)
target iSCSI offload. Add mechanism to query maximum receive data segment
size supported by chosen hardware offload module, and use it in ctld(8)
to determine the value to advertise to the other side.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctladm')
-rw-r--r-- | usr.sbin/ctladm/ctladm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ctladm/ctladm.c b/usr.sbin/ctladm/ctladm.c index 03c751b..aefba04 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -3439,6 +3439,7 @@ struct cctl_islist_conn { char *header_digest; char *data_digest; char *max_data_segment_length;; + char *offload;; int immediate_data; int iser; STAILQ_ENTRY(cctl_islist_conn) links; @@ -3552,6 +3553,9 @@ cctl_islist_end_element(void *user_data, const char *name) } else if (strcmp(name, "max_data_segment_length") == 0) { cur_conn->max_data_segment_length = str; str = NULL; + } else if (strcmp(name, "offload") == 0) { + cur_conn->offload = str; + str = NULL; } else if (strcmp(name, "immediate_data") == 0) { cur_conn->immediate_data = atoi(str); } else if (strcmp(name, "iser") == 0) { @@ -3672,6 +3676,7 @@ retry: printf("DataSegmentLen: %s\n", conn->max_data_segment_length); printf("ImmediateData: %s\n", conn->immediate_data ? "Yes" : "No"); printf("iSER (RDMA): %s\n", conn->iser ? "Yes" : "No"); + printf("Offload driver: %s\n", conn->offload); printf("\n"); } } else { |