From: Satha Rao <skotesh...@marvell.com>

While performing IPv4 fragmentation, consider the DF flag from the
original packet header instead of setting it to zero.

Signed-off-by: Satha Rao <skotesh...@marvell.com>
---
 drivers/common/cnxk/roc_nix_ops.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/common/cnxk/roc_nix_ops.c 
b/drivers/common/cnxk/roc_nix_ops.c
index 138090317a..12a12c6e35 100644
--- a/drivers/common/cnxk/roc_nix_ops.c
+++ b/drivers/common/cnxk/roc_nix_ops.c
@@ -240,11 +240,11 @@ nix_lso_ipv4(struct roc_nix *roc_nix)
        /* First get flags profile to update v4 flags */
        memset(&alt_flags, 0, sizeof(alt_flags));
        alt_flags.s.alt_fsf_set = 0x2000;
-       alt_flags.s.alt_fsf_mask = 0x1FFF;
+       alt_flags.s.alt_fsf_mask = 0x5FFF;
        alt_flags.s.alt_msf_set = 0x2000;
-       alt_flags.s.alt_msf_mask = 0x1FFF;
+       alt_flags.s.alt_msf_mask = 0x5FFF;
        alt_flags.s.alt_lsf_set = 0x0000;
-       alt_flags.s.alt_lsf_mask = 0x1FFF;
+       alt_flags.s.alt_lsf_mask = 0x5FFF;
        flag_idx = roc_nix_lso_alt_flags_profile_setup(roc_nix, &alt_flags);
        if (flag_idx < 0)
                return rc;
-- 
2.34.1

Reply via email to