[dpdk-dev] net/mlx4: fix Rx pkt offloads nonfrag indication

Message ID 1517331771-184184-1-git-send-email-motih@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Moti Haimovsky Jan. 30, 2018, 5:02 p.m. UTC
  This patch fixes the missing RTE_PTYPE_L4_NONFRAG on non-fragmented
IP packets with unrecognized payload type.

Fixes: aee4a03fee4f ("net/mlx4: enhance Rx packet type offloads")
Cc: stable@dpdk.org

Signed-off-by: Moti Haimovsky <motih@mellanox.com>
---
 drivers/net/mlx4/mlx4_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Adrien Mazarguil Feb. 5, 2018, 2:06 p.m. UTC | #1
On Tue, Jan 30, 2018 at 07:02:51PM +0200, Moti Haimovsky wrote:
> This patch fixes the missing RTE_PTYPE_L4_NONFRAG on non-fragmented
> IP packets with unrecognized payload type.
> 
> Fixes: aee4a03fee4f ("net/mlx4: enhance Rx packet type offloads")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Moti Haimovsky <motih@mellanox.com>

Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
  
Shahaf Shuler Feb. 5, 2018, 2:13 p.m. UTC | #2
Monday, February 5, 2018 4:07 PM, Adrien Mazarguil
> indication
> 
> On Tue, Jan 30, 2018 at 07:02:51PM +0200, Moti Haimovsky wrote:
> > This patch fixes the missing RTE_PTYPE_L4_NONFRAG on non-fragmented
> IP
> > packets with unrecognized payload type.
> >
> > Fixes: aee4a03fee4f ("net/mlx4: enhance Rx packet type offloads")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Moti Haimovsky <motih@mellanox.com>
> 
> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
> 

Applied to next-net-mlx, thanks.

> --
> Adrien Mazarguil
> 6WIND
  

Patch

diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c
index fbc911f..f286fb2 100644
--- a/drivers/net/mlx4/mlx4_rxtx.c
+++ b/drivers/net/mlx4/mlx4_rxtx.c
@@ -85,7 +85,8 @@  struct pv {
 	 * giving a total of up to 256 entries.
 	 */
 	[0x00] = RTE_PTYPE_L2_ETHER,
-	[0x01] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN,
+	[0x01] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
+		     RTE_PTYPE_L4_NONFRAG,
 	[0x02] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
 		     RTE_PTYPE_L4_FRAG,
 	[0x03] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |