Date: Tue, 14 Feb 2017 18:29:07 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313738 - head/sys/dev/iscsi Message-ID: <201702141829.v1EIT73l081143@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue Feb 14 18:29:07 2017 New Revision: 313738 URL: https://svnweb.freebsd.org/changeset/base/313738 Log: Temporary attach AHS to BHS to calculate header digest. MFC after: 2 weeks Modified: head/sys/dev/iscsi/icl_soft.c Modified: head/sys/dev/iscsi/icl_soft.c ============================================================================== --- head/sys/dev/iscsi/icl_soft.c Tue Feb 14 18:11:16 2017 (r313737) +++ head/sys/dev/iscsi/icl_soft.c Tue Feb 14 18:29:07 2017 (r313738) @@ -403,10 +403,10 @@ icl_pdu_check_header_digest(struct icl_p } *availablep -= ISCSI_HEADER_DIGEST_SIZE; - /* - * XXX: Handle AHS. - */ + /* Temporary attach AHS to BHS to calculate header digest. */ + request->ip_bhs_mbuf->m_next = request->ip_ahs_mbuf; valid_digest = icl_mbuf_to_crc32c(request->ip_bhs_mbuf); + request->ip_bhs_mbuf->m_next = NULL; if (received_digest != valid_digest) { ICL_WARN("header digest check failed; got 0x%x, " "should be 0x%x", received_digest, valid_digest);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702141829.v1EIT73l081143>