From 5a0c3c3af9172e960a27ce93f8ede3dc16464f15 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 29 Mar 2013 12:57:19 +0100 Subject: [PATCH] kernel: Unbreak building kernels that have 'options BNX_TSO_DEBUG'. --- sys/dev/netif/bnx/if_bnx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/netif/bnx/if_bnx.c b/sys/dev/netif/bnx/if_bnx.c index 7769a608cc..bb7c8ecbb7 100644 --- a/sys/dev/netif/bnx/if_bnx.c +++ b/sys/dev/netif/bnx/if_bnx.c @@ -2756,7 +2756,7 @@ bnx_encap(struct bnx_tx_ring *txr, struct mbuf **m_head0, uint32_t *txidx, tso_nsegs = BNX_TSO_NSTATS - 1; else if (tso_nsegs < 0) tso_nsegs = 0; - txr->sc->bnx_tsosegs[tso_nsegs]++; + txr->bnx_sc->bnx_tsosegs[tso_nsegs]++; #endif } else if (m_head->m_pkthdr.csum_flags & BNX_CSUM_FEATURES) { if (m_head->m_pkthdr.csum_flags & CSUM_IP) -- 2.41.0