Skip to contentSkip to conversation

remove an unnecessary field in struct tcp_skb_cb

PATCH In review Petr Tesarik 4 participants 4 messages Nov 13, 2008 – Nov 14, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove an unnecessary field in struct tcp_skb_cb

The urg_ptr field is not used anywhere and is merely confusing.

--

 include/net/tcp.h     |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
include/net/tcp.h +0 -1
index 438014d..8f26b28 100644
@@ -590,7 +590,6 @@ struct tcp_skb_cb {
 #define TCPCB_EVER_RETRANS	0x80	/* Ever retransmitted frame	*/
 #define TCPCB_RETRANS		(TCPCB_SACKED_RETRANS|TCPCB_EVER_RETRANS)
 
-	__u16		urg_ptr;	/* Valid w/URG flags is set.	*/
 	__u32		ack_seq;	/* Sequence number ACK'd	*/
 };
 
#1 lore raw
Quoted 2 lines · Petr Tesarik

The urg_ptr field is not used anywhere and is merely confusing.

grep -r "urg_ptr" on my linux tree says otherwise.

#2 lore raw
Quoted 4 lines · Saikiran Madugula
Quoted 2 lines · Petr Tesarik

The urg_ptr field is not used anywhere and is merely confusing.

grep -r "urg_ptr" on my linux tree says otherwise.

I think you're confusing it with tcphdr's field of the same name. Petr's patch is correct as far as I can see.

-Andi

Signature · 1 line
[email protected]
maintainer
#3 lore raw

From: Andi Kleen <[email protected]>
Date: Thu, 13 Nov 2008 20:57:53 +0100

Quoted 9 lines
Quoted 4 lines · Saikiran Madugula
Quoted 2 lines · Petr Tesarik

The urg_ptr field is not used anywhere and is merely confusing.

grep -r "urg_ptr" on my linux tree says otherwise.

I think you're confusing it with tcphdr's field of the same name. Petr's patch is correct as far as I can see.

Right, patch applied, thanks everyone.