]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/inet_timewait_sock.c
tcp: shrink tcp6_timewait_sock by one cache line
[~andy/linux] / net / ipv4 / inet_timewait_sock.c
index 1f27c9f4afd07fbf55589ed4e6e730375dcdc0a3..9bcd8f7234ec4755235e7940377119a1c832c80d 100644 (file)
@@ -387,11 +387,11 @@ void inet_twsk_schedule(struct inet_timewait_sock *tw,
                        if (slot >= INET_TWDR_TWKILL_SLOTS)
                                slot = INET_TWDR_TWKILL_SLOTS - 1;
                }
-               tw->tw_ttd = jiffies + timeo;
+               tw->tw_ttd = inet_tw_time_stamp() + timeo;
                slot = (twdr->slot + slot) & (INET_TWDR_TWKILL_SLOTS - 1);
                list = &twdr->cells[slot];
        } else {
-               tw->tw_ttd = jiffies + (slot << INET_TWDR_RECYCLE_TICK);
+               tw->tw_ttd = inet_tw_time_stamp() + (slot << INET_TWDR_RECYCLE_TICK);
 
                if (twdr->twcal_hand < 0) {
                        twdr->twcal_hand = 0;