Skip to contentSkip to conversation

octeontx2-af: remove duplicate SCTP port flags

PATCH Superseded Aryan Sinha 4 participants 4 messages Sep 18 1 message not in the archive

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 octeontx2-af: remove duplicate SCTP port flags

proto_flags ORs BIT_ULL(NPC_SPORT_SCTP) and BIT_ULL(NPC_DPORT_SCTP) are present twice. Both fields are already covered by the first pair, so the second one has no effect.

Drop it. No functional change.

---
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c +0 -1
index d422bdd5e..ec004ea51 100644
@@ -698,7 +698,6 @@ static void npc_set_features(struct rvu *rvu, int blkaddr, u8 intf)
 	proto_flags = BIT_ULL(NPC_SPORT_TCP) | BIT_ULL(NPC_SPORT_UDP) |
 		       BIT_ULL(NPC_DPORT_TCP) | BIT_ULL(NPC_DPORT_UDP) |
 		       BIT_ULL(NPC_SPORT_SCTP) | BIT_ULL(NPC_DPORT_SCTP) |
-		       BIT_ULL(NPC_SPORT_SCTP) | BIT_ULL(NPC_DPORT_SCTP) |
 		       BIT_ULL(NPC_TYPE_ICMP) | BIT_ULL(NPC_CODE_ICMP) |
 		       BIT_ULL(NPC_TCP_FLAGS);
 
Signature · 1 line
2.46.0

A message that is not in the archive (sent off-list or not yet received): CAN_7xUoyoCoq9G41A04owA2JJbHARn==NueTxB3i=LjCRymOSQ@mail.gmail.com

maintainer Reviewed-by
#2 lore raw
Quoted 48 lines

-----Original Message-----
From: TechyMinati <[email protected]>
Sent: Friday, September 18, 2026 11:36 AM
To: Sunil Kovvuri Goutham <[email protected]>; Ratheesh Kannoth <[email protected]>; Geethasowjanya Akula <[email protected]>; Subbaraya Sundeep Bhatta <[email protected]>
Cc: Andrew Lunn <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH] octeontx2-af: remove duplicate SCTP port flags

This targets net-next. Sorry for the missing subject tag.

On Fri, Sep 18, 2026 at 11:33 AM Aryan Sinha <[email protected] <mailto:[email protected]> > wrote:

proto_flags ORs BIT_ULL(NPC_SPORT_SCTP) and
BIT_ULL(NPC_DPORT_SCTP)
are present twice. Both fields are already covered by the first pair, so
the second
one has no effect.

Drop it. No functional change.

<mailto:[email protected]> >

	---
	 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 1 -
	 1 file changed, 1 deletion(-)

	diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
	index d422bdd5e..ec004ea51 100644
	--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
	+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
	@@ -698,7 +698,6 @@ static void npc_set_features(struct rvu *rvu, int

blkaddr, u8 intf)
proto_flags = BIT_ULL(NPC_SPORT_TCP) |
BIT_ULL(NPC_SPORT_UDP) |
BIT_ULL(NPC_DPORT_TCP) | BIT_ULL(NPC_DPORT_UDP) | BIT_ULL(NPC_SPORT_SCTP) | BIT_ULL(NPC_DPORT_SCTP)
|
- BIT_ULL(NPC_SPORT_SCTP) | BIT_ULL(NPC_DPORT_SCTP)
|

Quoted 7 lines
	                       BIT_ULL(NPC_TYPE_ICMP) | BIT_ULL(NPC_CODE_ICMP) |
	                       BIT_ULL(NPC_TCP_FLAGS);

	--
	2.46.0
maintainer
#3 lore raw
In reply to Aryan Sinha
Quoted 7 lines · Aryan Sinha

proto_flags ORs BIT_ULL(NPC_SPORT_SCTP) and BIT_ULL(NPC_DPORT_SCTP) are present twice. Both fields are already covered by the first pair, so the second one has no effect.

Drop it. No functional change.

Isn't this a fix? Please include the appropriate Fixes tag:

maintainer
#4 lore raw
Quoted 9 lines · On Fri, 18 Sep 2026 11:55:08 +0530 Ratheesh Kannoth wrote:
Quoted 7 lines · Aryan Sinha

proto_flags ORs BIT_ULL(NPC_SPORT_SCTP) and BIT_ULL(NPC_DPORT_SCTP) are present twice. Both fields are already covered by the first pair, so the second one has no effect.

Drop it. No functional change.

Isn't this a fix? Please include the appropriate Fixes tag:

The patch has no functional change, how could it be a fix?