mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
ice(4): Restore old conditional overwritten by last update
Commit8923de5905
("ice(4): Update to 1.37.7-k", 2023-02-13) unintentionally overwrote the change made in commit52f45d8ace
("net: iflib: let the drivers use isc_capenable", 2021-12-28). Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reported by: jhibbits@ MFC after: 3 days Sponsored by: Intel Corporation
This commit is contained in:
parent
4630a3252a
commit
949d971f0b
|
@ -284,6 +284,7 @@ static int
|
|||
ice_ift_rxd_pkt_get(void *arg, if_rxd_info_t ri)
|
||||
{
|
||||
struct ice_softc *sc = (struct ice_softc *)arg;
|
||||
if_softc_ctx_t scctx = sc->scctx;
|
||||
struct ice_rx_queue *rxq = &sc->pf_vsi.rx_queues[ri->iri_qsidx];
|
||||
union ice_32b_rx_flex_desc *cur;
|
||||
u16 status0, plen, ptype;
|
||||
|
@ -341,7 +342,7 @@ ice_ift_rxd_pkt_get(void *arg, if_rxd_info_t ri)
|
|||
/* Get packet type and set checksum flags */
|
||||
ptype = le16toh(cur->wb.ptype_flex_flags0) &
|
||||
ICE_RX_FLEX_DESC_PTYPE_M;
|
||||
if ((iflib_get_ifp(sc->ctx)->if_capenable & IFCAP_RXCSUM) != 0)
|
||||
if ((scctx->isc_capenable & IFCAP_RXCSUM) != 0)
|
||||
ice_rx_checksum(rxq, &ri->iri_csum_flags,
|
||||
&ri->iri_csum_data, status0, ptype);
|
||||
|
||||
|
|
Loading…
Reference in a new issue