diff options
| author | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2021-12-28 11:00:32 +0000 |
|---|---|---|
| committer | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2021-12-28 11:03:52 +0000 |
| commit | 52f45d8acee95199159b65a33c94142492c38e41 (patch) | |
| tree | e39a03b2b628006cc81fb5195e467e3cfb23b0b9 /sys/dev/ixl | |
| parent | 4561c4f0ca59da5b704238074bd488ff907b4b50 (diff) | |
Diffstat (limited to 'sys/dev/ixl')
| -rw-r--r-- | sys/dev/ixl/ixl_txrx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ixl/ixl_txrx.c b/sys/dev/ixl/ixl_txrx.c index bdd3cb8725f8..58ae751e5e10 100644 --- a/sys/dev/ixl/ixl_txrx.c +++ b/sys/dev/ixl/ixl_txrx.c @@ -658,6 +658,7 @@ static int ixl_isc_rxd_pkt_get(void *arg, if_rxd_info_t ri) { struct ixl_vsi *vsi = arg; + if_softc_ctx_t scctx = vsi->shared; struct ixl_rx_queue *que = &vsi->rx_queues[ri->iri_qsidx]; struct rx_ring *rxr = &que->rxr; union i40e_rx_desc *cur; @@ -719,7 +720,7 @@ ixl_isc_rxd_pkt_get(void *arg, if_rxd_info_t ri) rxr->packets++; rxr->rx_packets++; - if ((if_getcapenable(vsi->ifp) & IFCAP_RXCSUM) != 0) + if ((scctx->isc_capenable & IFCAP_RXCSUM) != 0) rxr->csum_errs += ixl_rx_checksum(ri, status, error, ptype); ri->iri_flowid = le32toh(cur->wb.qword0.hi_dword.rss); ri->iri_rsstype = ixl_ptype_to_hash(ptype); |
