All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tcp: restore formatting of macros for tcp_skb_cb sacked field
@ 2012-04-16 17:08 Neal Cardwell
  2012-04-16 18:49 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Neal Cardwell @ 2012-04-16 17:08 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Eric Dumazet, Tom Herbert, Neal Cardwell

Commit b82d1bb4 inadvertendly placed unrelated new code between
TCPCB_EVER_RETRANS and TCPCB_RETRANS and the other macros that refer
to the sacked field in the struct tcp_skb_cb (probably because there
was a misleading empty line there). This commit fixes up the
formatting so that all macros related to the sacked field are adjacent
again.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
---
 include/net/tcp.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/net/tcp.h b/include/net/tcp.h
index f75a04d..a725f2d 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -645,16 +645,17 @@ struct tcp_skb_cb {
 	__u32		end_seq;	/* SEQ + FIN + SYN + datalen	*/
 	__u32		when;		/* used to compute rtt's	*/
 	__u8		tcp_flags;	/* TCP header flags. (tcp[13])	*/
+
 	__u8		sacked;		/* State flags for SACK/FACK.	*/
 #define TCPCB_SACKED_ACKED	0x01	/* SKB ACK'd by a SACK block	*/
 #define TCPCB_SACKED_RETRANS	0x02	/* SKB retransmitted		*/
 #define TCPCB_LOST		0x04	/* SKB is lost			*/
 #define TCPCB_TAGBITS		0x07	/* All tag bits			*/
-	__u8		ip_dsfield;	/* IPv4 tos or IPv6 dsfield	*/
-	/* 1 byte hole */
 #define TCPCB_EVER_RETRANS	0x80	/* Ever retransmitted frame	*/
 #define TCPCB_RETRANS		(TCPCB_SACKED_RETRANS|TCPCB_EVER_RETRANS)
 
+	__u8		ip_dsfield;	/* IPv4 tos or IPv6 dsfield	*/
+	/* 1 byte hole */
 	__u32		ack_seq;	/* Sequence number ACK'd	*/
 };
 
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tcp: restore formatting of macros for tcp_skb_cb sacked field
  2012-04-16 17:08 [PATCH] tcp: restore formatting of macros for tcp_skb_cb sacked field Neal Cardwell
@ 2012-04-16 18:49 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-04-16 18:49 UTC (permalink / raw)
  To: ncardwell; +Cc: netdev, edumazet, therbert

From: Neal Cardwell <ncardwell@google.com>
Date: Mon, 16 Apr 2012 13:08:06 -0400

> Commit b82d1bb4 inadvertendly placed unrelated new code between
> TCPCB_EVER_RETRANS and TCPCB_RETRANS and the other macros that refer
> to the sacked field in the struct tcp_skb_cb (probably because there
> was a misleading empty line there). This commit fixes up the
> formatting so that all macros related to the sacked field are adjacent
> again.
> 
> Signed-off-by: Neal Cardwell <ncardwell@google.com>

Applied to net-next, thanks Neal.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-16 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16 17:08 [PATCH] tcp: restore formatting of macros for tcp_skb_cb sacked field Neal Cardwell
2012-04-16 18:49 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.