summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/login.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-02-28 12:02:32 +0000
committertrasz <trasz@FreeBSD.org>2015-02-28 12:02:32 +0000
commit8f6e16a6825f63f55594b1cb1bea3910ede52b43 (patch)
treea8d21bcf9ab3db261bf12280633585ecfbbe0a30 /usr.sbin/ctld/login.c
parent692b5ee9dca7e3612a693ed1e7553ac42d635793 (diff)
downloadFreeBSD-src-8f6e16a6825f63f55594b1cb1bea3910ede52b43.zip
FreeBSD-src-8f6e16a6825f63f55594b1cb1bea3910ede52b43.tar.gz
Move the "offload" clause from the target section to portal-group
section; it makes more sense there. MFC after: 1 month Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/login.c')
-rw-r--r--usr.sbin/ctld/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c
index 11d97cf..9f9ef3c 100644
--- a/usr.sbin/ctld/login.c
+++ b/usr.sbin/ctld/login.c
@@ -687,7 +687,7 @@ login_negotiate(struct connection *conn, struct pdu *request)
* In case of offload, it depends on hardware capabilities.
*/
assert(conn->conn_target != NULL);
- kernel_limits(conn->conn_target->t_offload,
+ kernel_limits(conn->conn_portal->p_portal_group->pg_offload,
&conn->conn_data_segment_limit);
} else {
conn->conn_data_segment_limit = MAX_DATA_SEGMENT_LENGTH;
OpenPOWER on IntegriCloud