Skip to content

Commit 3acd9db

Browse files
drvgithubuserkuba-moo
authored andcommitted
octeontx2-pf: Use correct struct reference in test condition
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: b7cf966 ("octeontx2-pf: Add flow classification using IP next level protocol") Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Deepak R Varma <[email protected]> Link: https://lore.kernel.org/r/Y/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 68ba446 commit 3acd9db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ static int otx2_prepare_ipv6_flow(struct ethtool_rx_flow_spec *fsp,
793793

794794
/* NPC profile doesn't extract AH/ESP header fields */
795795
if ((ah_esp_mask->spi & ah_esp_hdr->spi) ||
796-
(ah_esp_mask->tclass & ah_esp_mask->tclass))
796+
(ah_esp_mask->tclass & ah_esp_hdr->tclass))
797797
return -EOPNOTSUPP;
798798

799799
if (flow_type == AH_V6_FLOW)

0 commit comments

Comments
 (0)