diff --git a/sys/dev/cxgbe/t4_netmap.c b/sys/dev/cxgbe/t4_netmap.c index 8c5b9f50066..8f0a689ac93 100644 --- a/sys/dev/cxgbe/t4_netmap.c +++ b/sys/dev/cxgbe/t4_netmap.c @@ -1386,6 +1386,16 @@ service_nm_rxq(struct sge_nm_rxq *nm_rxq) handle_nm_sge_egr_update(sc, ifp, cpl); break; case CPL_RX_PKT: +#if 1 + if (sc->params.sge.fl_pktshift == 4) { + uint32_t *p = NMB(na, &ring->slot[fl_cidx]); + if (d->rss.hash_type == 0) + *p = 0; + else + *p = be32toh(d->rss.hash_val); + ring->slot[fl_cidx].len = G_RSPD_LEN(lq); + } else +#endif ring->slot[fl_cidx].len = G_RSPD_LEN(lq) - sc->params.sge.fl_pktshift; ring->slot[fl_cidx].flags = 0;