Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: b7cf966126eb ("octeontx2-pf: Add flow classification using IP next level protocol")
Link: https://lore.kernel.org/all/20210111112537.3277-1-naveenm@marvell.com/
Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y/YYkKddeHOt80cO@ubun2204.myguest.virtualbox.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Deepak R Varma and committed by
Jakub Kicinski
3acd9db9 68ba4463

+1 -1
+1 -1
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
··· 793 793 794 794 /* NPC profile doesn't extract AH/ESP header fields */ 795 795 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)) 797 797 return -EOPNOTSUPP; 798 798 799 799 if (flow_type == AH_V6_FLOW)