Patch "octeontx2-pf: Use correct struct reference in test condition" has been added to the 6.2-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    octeontx2-pf: Use correct struct reference in test condition

to the 6.2-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     octeontx2-pf-use-correct-struct-reference-in-test-co.patch
and it can be found in the queue-6.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 273348aec9dff80f7b9090a003e4df38cf891455
Author: Deepak R Varma <drv@xxxxxxxxx>
Date:   Wed Feb 22 18:58:48 2023 +0530

    octeontx2-pf: Use correct struct reference in test condition
    
    [ Upstream commit 3acd9db9293f3b33ac04e8d44ed05b604ad1ac26 ]
    
    Fix the typo/copy-paste error by replacing struct variable ah_esp_mask name
    by ah_esp_hdr.
    Issue identified using doublebitand.cocci Coccinelle semantic patch.
    
    Fixes: b7cf966126eb ("octeontx2-pf: Add flow classification using IP next level protocol")
    Link: https://lore.kernel.org/all/20210111112537.3277-1-naveenm@xxxxxxxxxxx/
    Signed-off-by: Deepak R Varma <drv@xxxxxxxxx>
    Link: https://lore.kernel.org/r/Y/YYkKddeHOt80cO@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
index 684cb8ec9f21b..10e11262d48a0 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
@@ -793,7 +793,7 @@ static int otx2_prepare_ipv6_flow(struct ethtool_rx_flow_spec *fsp,
 
 		/* NPC profile doesn't extract AH/ESP header fields */
 		if ((ah_esp_mask->spi & ah_esp_hdr->spi) ||
-		    (ah_esp_mask->tclass & ah_esp_mask->tclass))
+		    (ah_esp_mask->tclass & ah_esp_hdr->tclass))
 			return -EOPNOTSUPP;
 
 		if (flow_type == AH_V6_FLOW)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux