Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2021 23:58:04 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e6779ba75bf8 - stable/13 - cxgbei: Whitespace fixes, comment typo, and rewrap a comment.
Message-ID:  <202110292358.19TNw403003262@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e6779ba75bf8d85c8b11d639421759210825e7b7

commit e6779ba75bf8d85c8b11d639421759210825e7b7
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-05-14 19:16:57 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-10-29 22:43:30 +0000

    cxgbei: Whitespace fixes, comment typo, and rewrap a comment.
    
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D29906
    
    (cherry picked from commit 91ca7b0954088f882e55e0ece6f456ca172ebcf5)
---
 sys/dev/cxgbe/cxgbei/cxgbei.c     |  2 +-
 sys/dev/cxgbe/cxgbei/icl_cxgbei.c | 12 ++++++------
 sys/dev/cxgbe/tom/t4_cpl_io.c     |  9 ++++-----
 3 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c
index 7027e6428515..419293ec9cdf 100644
--- a/sys/dev/cxgbe/cxgbei/cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.c
@@ -88,7 +88,7 @@ __FBSDID("$FreeBSD$");
 
 #include "common/common.h"
 #include "common/t4_msg.h"
-#include "common/t4_regs.h"     /* for PCIE_MEM_ACCESS */
+#include "common/t4_regs.h"	/* for PCIE_MEM_ACCESS */
 #include "tom/t4_tom.h"
 #include "cxgbei.h"
 
diff --git a/sys/dev/cxgbe/cxgbei/icl_cxgbei.c b/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
index 9ee31616b873..655cc1de1478 100644
--- a/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
@@ -280,7 +280,7 @@ finalize_pdu(struct icl_cxgbei_conn *icc, struct icl_cxgbei_pdu *icp)
 		last = m_last(m);
 
 		/*
-		 * Round up the data segment to a 4B boundary.  Pad with 0 if
+		 * Round up the data segment to a 4B boundary.	Pad with 0 if
 		 * necessary.  There will definitely be room in the mbuf.
 		 */
 		padding = roundup2(ip->ip_data_len, 4) - ip->ip_data_len;
@@ -306,7 +306,7 @@ finalize_pdu(struct icl_cxgbei_conn *icc, struct icl_cxgbei_pdu *icp)
 	bhs->bhs_data_segment_len[1] = ip->ip_data_len >> 8;
 	bhs->bhs_data_segment_len[0] = ip->ip_data_len >> 16;
 
-	/* "Convert" PDU to mbuf chain.  Do not use icp/ip after this. */
+	/* "Convert" PDU to mbuf chain.	 Do not use icp/ip after this. */
 	m->m_pkthdr.len = sizeof(struct iscsi_bhs) + ip->ip_data_len + padding;
 	m->m_next = ip->ip_data_mbuf;
 	set_mbuf_ulp_submode(m, ulp_submode);
@@ -347,7 +347,7 @@ icl_cxgbei_conn_pdu_append_data(struct icl_conn *ic, struct icl_pdu *ip,
 		MPASS(ip->ip_data_len <= ic->ic_max_data_segment_length);
 		return (0);
 	} else {
-	    	if (flags & M_WAITOK) {
+		if (flags & M_WAITOK) {
 			CXGBE_UNIMPLEMENTED("fail safe append");
 		}
 		ip->ip_data_len = m_length(m, NULL);
@@ -576,7 +576,7 @@ send_iscsi_flowc_wr(struct adapter *sc, struct toepcb *toep, int maxlen)
 		toep->txsd_pidx = 0;
 	toep->txsd_avail--;
 
-        t4_wrq_tx(sc, wr);
+	t4_wrq_tx(sc, wr);
 }
 
 static void
@@ -813,7 +813,7 @@ icl_cxgbei_conn_task_setup(struct icl_conn *ic, struct icl_pdu *ip,
 	    csio->dxfer_len < ci->ddp_threshold) {
 no_ddp:
 		/*
-		 * No DDP for this I/O.  Allocate an ITT (based on the one
+		 * No DDP for this I/O.	 Allocate an ITT (based on the one
 		 * passed in) that cannot be a valid hardware DDP tag in the
 		 * iSCSI region.
 		 */
@@ -1049,7 +1049,7 @@ static int
 icl_cxgbei_limits(struct icl_drv_limits *idl)
 {
 
-	/* Maximum allowed by the RFC.  cxgbei_limits will clip them. */
+	/* Maximum allowed by the RFC.	cxgbei_limits will clip them. */
 	idl->idl_max_recv_data_segment_length = (1 << 24) - 1;
 	idl->idl_max_send_data_segment_length = (1 << 24) - 1;
 
diff --git a/sys/dev/cxgbe/tom/t4_cpl_io.c b/sys/dev/cxgbe/tom/t4_cpl_io.c
index b2150558165d..0d37804c4f8e 100644
--- a/sys/dev/cxgbe/tom/t4_cpl_io.c
+++ b/sys/dev/cxgbe/tom/t4_cpl_io.c
@@ -1821,13 +1821,12 @@ do_fw4_ack(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
 		SOCKBUF_LOCK(sb);
 		sbu = sbused(sb);
 		if (ulp_mode(toep) == ULP_MODE_ISCSI) {
-
 			if (__predict_false(sbu > 0)) {
 				/*
-				 * The data trasmitted before the tid's ULP mode
-				 * changed to ISCSI is still in so_snd.
-				 * Incoming credits should account for so_snd
-				 * first.
+				 * The data transmitted before the
+				 * tid's ULP mode changed to ISCSI is
+				 * still in so_snd.  Incoming credits
+				 * should account for so_snd first.
 				 */
 				sbdrop_locked(sb, min(sbu, plen));
 				plen -= min(sbu, plen);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110292358.19TNw403003262>