| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] rearrange frto field to save space. |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Wed, 21 Apr 2004 11:10:32 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20040420155738.4146b5bb.davem@redhat.com> |
| Organization: | Open Source Development Lab |
| References: | <20040420155738.4146b5bb.davem@redhat.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Since the frto_counter field only goes from 0 to 4, it can be moved
into a unused byte size hole to save space.
diff -Nru a/include/linux/tcp.h b/include/linux/tcp.h
--- a/include/linux/tcp.h Wed Apr 21 10:39:07 2004
+++ b/include/linux/tcp.h Wed Apr 21 10:39:07 2004
@@ -255,6 +255,10 @@
__u8 retransmits; /* Number of unrecovered RTO timeouts. */
__u8 reordering; /* Packet reordering metric. */
+ __u8 frto_counter; /* Number of new acks after RTO */
+ __u32 frto_highmark; /* snd_nxt when RTO occurred */
+
+ __u8 unused_pad;
__u8 queue_shrunk; /* Write queue has been shrunk recently.*/
__u8 defer_accept; /* User waits for some data after accept() */
@@ -369,9 +373,6 @@
unsigned int keepalive_time; /* time before keep alive
takes place */
unsigned int keepalive_intvl; /* time interval between keep
alive probes */
int linger2;
-
- int frto_counter; /* Number of new acks after RTO */
- __u32 frto_highmark; /* snd_nxt when RTO occurred */
unsigned long last_synq_overflow;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 2.6.4 sunrpc oops., J. Bruce Fields |
|---|---|
| Next by Date: | [PATCH] add sysctl to turn off caching metrics, Stephen Hemminger |
| Previous by Thread: | Re: 2.6.4 sunrpc oops., J. Bruce Fields |
| Next by Thread: | Re: [PATCH] rearrange frto field to save space., David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |