Skip to content

Commit

Permalink
net/igc: fix Rx RSS hash offload capability
Browse files Browse the repository at this point in the history
[ upstream commit 47319fb ]

Add DEV_RX_OFFLOAD_RSS_HASH flag to the PMD's Rx offload capabilities
for it supports RSS hash delivery.

Fixes: 4f09bc5 ("net/igc: implement device base operations")

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
  • Loading branch information
Alvin Zhang authored and steevenlee committed May 8, 2021
1 parent 8235f3f commit eefc6b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions drivers/net/igc/igc_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ eth_igc_configure(struct rte_eth_dev *dev)

PMD_INIT_FUNC_TRACE();

if (dev->data->dev_conf.rxmode.mq_mode & ETH_MQ_RX_RSS_FLAG)
dev->data->dev_conf.rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH;

ret = igc_check_mq_mode(dev);
if (ret != 0)
return ret;
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/igc/igc_ethdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ extern "C" {
DEV_RX_OFFLOAD_SCTP_CKSUM | \
DEV_RX_OFFLOAD_JUMBO_FRAME | \
DEV_RX_OFFLOAD_KEEP_CRC | \
DEV_RX_OFFLOAD_SCATTER)
DEV_RX_OFFLOAD_SCATTER | \
DEV_RX_OFFLOAD_RSS_HASH)

#define IGC_TX_OFFLOAD_ALL ( \
DEV_TX_OFFLOAD_VLAN_INSERT | \
Expand Down

0 comments on commit eefc6b1

Please sign in to comment.