From: Andrew Rybchenko Date: Tue, 13 Oct 2020 13:45:47 +0000 (+0100) Subject: net/sfc: map Rx offload RSS hash to corresponding RxQ flag X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=eb043628b1f266fb4f19c654c98563a6556f7408;p=dpdk.git net/sfc: map Rx offload RSS hash to corresponding RxQ flag If RSS hash offload is requested, Rx queue should be configured to request RSS hash information delivery. Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c index a9217ada9d..09afb519d5 100644 --- a/drivers/net/sfc/sfc_rx.c +++ b/drivers/net/sfc/sfc_rx.c @@ -1125,6 +1125,9 @@ sfc_rx_qinit(struct sfc_adapter *sa, unsigned int sw_index, DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM) != 0) rxq_info->type_flags |= EFX_RXQ_FLAG_INNER_CLASSES; + if (offloads & DEV_RX_OFFLOAD_RSS_HASH) + rxq_info->type_flags |= EFX_RXQ_FLAG_RSS_HASH; + rc = sfc_ev_qinit(sa, SFC_EVQ_TYPE_RX, sw_index, evq_entries, socket_id, &evq); if (rc != 0)