Page MenuHomeFreeBSD

D59545.1794971338.diff
No OneTemporary

Authored By
Unknown
Size
637 B
Referenced Files
None
Subscribers
None

D59545.1794971338.diff

diff --git a/sys/dev/cxgb/cxgb_sge.c b/sys/dev/cxgb/cxgb_sge.c
--- a/sys/dev/cxgb/cxgb_sge.c
+++ b/sys/dev/cxgb/cxgb_sge.c
@@ -1406,7 +1406,7 @@
if (m0->m_nextpkt != NULL) {
struct cpl_tx_pkt_batch *cpl_batch = (struct cpl_tx_pkt_batch *)txd;
- int i, fidx;
+ int i;
if (nsegs > 7)
panic("trying to coalesce %d packets in to one WR", nsegs);
@@ -1414,7 +1414,7 @@
wrp = (struct work_request_hdr *)txd;
flits = nsegs*2 + 1;
- for (fidx = 1, i = 0; i < nsegs; i++, fidx += 2) {
+ for (i = 0; i < nsegs; i++) {
struct cpl_tx_pkt_batch_entry *cbe;
uint64_t flit;
uint32_t *hflit = (uint32_t *)&flit;

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 18, 3:08 AM (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38661374
Default Alt Text
D59545.1794971338.diff (637 B)

Event Timeline