aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/nicstar.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2005-08-14 20:24:31 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 18:58:24 -0400
commita61bbcf28a8cb0ba56f8193d512f7222e711a294 (patch)
tree33ae1976ab3b08aac516debb2742d2c6696d5436 /drivers/atm/nicstar.c
parent25ed891019b84498c83903ecf53df7ce35e9cff6 (diff)
[NET]: Store skb->timestamp as offset to a base timestamp
Reduces skb size by 8 bytes on 64-bit. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/nicstar.c')
-rw-r--r--drivers/atm/nicstar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c
index a0e3bd861f1c..c57e20dcb0f8 100644
--- a/drivers/atm/nicstar.c
+++ b/drivers/atm/nicstar.c
@@ -2213,7 +2213,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
2213 memcpy(sb->tail, cell, ATM_CELL_PAYLOAD); 2213 memcpy(sb->tail, cell, ATM_CELL_PAYLOAD);
2214 skb_put(sb, ATM_CELL_PAYLOAD); 2214 skb_put(sb, ATM_CELL_PAYLOAD);
2215 ATM_SKB(sb)->vcc = vcc; 2215 ATM_SKB(sb)->vcc = vcc;
2216 do_gettimeofday(&sb->stamp); 2216 __net_timestamp(sb);
2217 vcc->push(vcc, sb); 2217 vcc->push(vcc, sb);
2218 atomic_inc(&vcc->stats->rx); 2218 atomic_inc(&vcc->stats->rx);
2219 cell += ATM_CELL_PAYLOAD; 2219 cell += ATM_CELL_PAYLOAD;
@@ -2346,7 +2346,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
2346 skb->destructor = ns_sb_destructor; 2346 skb->destructor = ns_sb_destructor;
2347#endif /* NS_USE_DESTRUCTORS */ 2347#endif /* NS_USE_DESTRUCTORS */
2348 ATM_SKB(skb)->vcc = vcc; 2348 ATM_SKB(skb)->vcc = vcc;
2349 do_gettimeofday(&skb->stamp); 2349 __net_timestamp(skb);
2350 vcc->push(vcc, skb); 2350 vcc->push(vcc, skb);
2351 atomic_inc(&vcc->stats->rx); 2351 atomic_inc(&vcc->stats->rx);
2352 } 2352 }
@@ -2373,7 +2373,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
2373 sb->destructor = ns_sb_destructor; 2373 sb->destructor = ns_sb_destructor;
2374#endif /* NS_USE_DESTRUCTORS */ 2374#endif /* NS_USE_DESTRUCTORS */
2375 ATM_SKB(sb)->vcc = vcc; 2375 ATM_SKB(sb)->vcc = vcc;
2376 do_gettimeofday(&sb->stamp); 2376 __net_timestamp(sb);
2377 vcc->push(vcc, sb); 2377 vcc->push(vcc, sb);
2378 atomic_inc(&vcc->stats->rx); 2378 atomic_inc(&vcc->stats->rx);
2379 } 2379 }
@@ -2398,7 +2398,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
2398 memcpy(skb->data, sb->data, NS_SMBUFSIZE); 2398 memcpy(skb->data, sb->data, NS_SMBUFSIZE);
2399 skb_put(skb, len - NS_SMBUFSIZE); 2399 skb_put(skb, len - NS_SMBUFSIZE);
2400 ATM_SKB(skb)->vcc = vcc; 2400 ATM_SKB(skb)->vcc = vcc;
2401 do_gettimeofday(&skb->stamp); 2401 __net_timestamp(skb);
2402 vcc->push(vcc, skb); 2402 vcc->push(vcc, skb);
2403 atomic_inc(&vcc->stats->rx); 2403 atomic_inc(&vcc->stats->rx);
2404 } 2404 }
@@ -2505,7 +2505,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
2505#ifdef NS_USE_DESTRUCTORS 2505#ifdef NS_USE_DESTRUCTORS
2506 hb->destructor = ns_hb_destructor; 2506 hb->destructor = ns_hb_destructor;
2507#endif /* NS_USE_DESTRUCTORS */ 2507#endif /* NS_USE_DESTRUCTORS */
2508 do_gettimeofday(&hb->stamp); 2508 __net_timestamp(hb);
2509 vcc->push(vcc, hb); 2509 vcc->push(vcc, hb);
2510 atomic_inc(&vcc->stats->rx); 2510 atomic_inc(&vcc->stats->rx);
2511 } 2511 }