When HW reassembly is enabled, currently both Rx scatter and
Tx multi-segs ethdev offload flags are enabled. Tx multi-seg is
needed to Tx the reassembled pkt but Rx scatter is not needed as
reassembly should be self sufficient offload flag. Hence remove it
and only enable Tx multi-segs when HW reassembly is enabled.

Signed-off-by: Nithin Dabilpuram <ndabilpu...@marvell.com>
---
 examples/ipsec-secgw/sa.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c
index 5f5d2685f6..a25b4e2de7 100644
--- a/examples/ipsec-secgw/sa.c
+++ b/examples/ipsec-secgw/sa.c
@@ -1850,7 +1850,6 @@ sa_check_offloads(uint16_t port_id, uint64_t *rx_offloads,
                                && rule->portid == port_id)
                        *rx_offloads |= RTE_ETH_RX_OFFLOAD_SECURITY;
                if (IS_HW_REASSEMBLY_EN(rule->flags)) {
-                       *rx_offloads |= RTE_ETH_RX_OFFLOAD_SCATTER;
                        *tx_offloads |= RTE_ETH_TX_OFFLOAD_MULTI_SEGS;
                        *hw_reassembly = 1;
                }
-- 
2.25.1

Reply via email to