Skip to content

Commit

Permalink
net/failsafe: fix RSS hash offload reporting
Browse files Browse the repository at this point in the history
[ upstream commit f971b7d ]

If sub-devices support RSS hash offload, the offload should be
reported by the failsafe device since handling is transparent
from failsafe point of view.

Fixes: 5d30897 ("ethdev: add mbuf RSS update as an offload")

Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Gaetan Rivet <grive@u256.net>
  • Loading branch information
ol-andrewr authored and steevenlee committed May 6, 2021
1 parent 4f140c1 commit 9da42b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/failsafe/failsafe_ops.c
Expand Up @@ -1192,7 +1192,8 @@ fs_dev_infos_get(struct rte_eth_dev *dev,
DEV_RX_OFFLOAD_JUMBO_FRAME |
DEV_RX_OFFLOAD_SCATTER |
DEV_RX_OFFLOAD_TIMESTAMP |
DEV_RX_OFFLOAD_SECURITY;
DEV_RX_OFFLOAD_SECURITY |
DEV_RX_OFFLOAD_RSS_HASH;

infos->rx_queue_offload_capa =
DEV_RX_OFFLOAD_VLAN_STRIP |
Expand All @@ -1209,7 +1210,8 @@ fs_dev_infos_get(struct rte_eth_dev *dev,
DEV_RX_OFFLOAD_JUMBO_FRAME |
DEV_RX_OFFLOAD_SCATTER |
DEV_RX_OFFLOAD_TIMESTAMP |
DEV_RX_OFFLOAD_SECURITY;
DEV_RX_OFFLOAD_SECURITY |
DEV_RX_OFFLOAD_RSS_HASH;

infos->tx_offload_capa =
DEV_TX_OFFLOAD_MULTI_SEGS |
Expand Down

0 comments on commit 9da42b8

Please sign in to comment.