Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a61bbcf2 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NET]: Store skb->timestamp as offset to a base timestamp



Reduces skb size by 8 bytes on 64-bit.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 25ed8910
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -513,7 +513,7 @@ static void rx_complete (amb_dev * dev, rx_out * rx) {
	  
	  // VC layer stats
	  atomic_inc(&atm_vcc->stats->rx);
	  do_gettimeofday(&skb->stamp);
	  __net_timestamp(skb);
	  // end of our responsability
	  atm_vcc->push (atm_vcc, skb);
	  return;
+1 −1
Original line number Diff line number Diff line
@@ -325,7 +325,7 @@ static int atmtcp_c_send(struct atm_vcc *vcc,struct sk_buff *skb)
		result = -ENOBUFS;
		goto done;
	}
	do_gettimeofday(&new_skb->stamp);
	__net_timestamp(new_skb);
	memcpy(skb_put(new_skb,skb->len),skb->data,skb->len);
	out_vcc->push(out_vcc,new_skb);
	atomic_inc(&vcc->stats->tx);
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ static int rx_aal0(struct atm_vcc *vcc)
		return 0;
	}
	skb_put(skb,length);
	skb->stamp = eni_vcc->timestamp;
	skb_set_timestamp(skb, &eni_vcc->timestamp);
	DPRINTK("got len %ld\n",length);
	if (do_rx_dma(vcc,skb,1,length >> 2,length >> 2)) return 1;
	eni_vcc->rxing++;
+1 −1
Original line number Diff line number Diff line
@@ -815,7 +815,7 @@ static void process_incoming (struct fs_dev *dev, struct queue *q)
				skb_put (skb, qe->p1 & 0xffff); 
				ATM_SKB(skb)->vcc = atm_vcc;
				atomic_inc(&atm_vcc->stats->rx);
				do_gettimeofday(&skb->stamp);
				__net_timestamp(skb);
				fs_dprintk (FS_DEBUG_ALLOC, "Free rec-skb: %p (pushed)\n", skb);
				atm_vcc->push (atm_vcc, skb);
				fs_dprintk (FS_DEBUG_ALLOC, "Free rec-d: %p\n", pe);
+1 −1
Original line number Diff line number Diff line
@@ -1176,7 +1176,7 @@ fore200e_push_rpd(struct fore200e* fore200e, struct atm_vcc* vcc, struct rpd* rp
	return -ENOMEM;
    } 

    do_gettimeofday(&skb->stamp);
    __net_timestamp(skb);
    
#ifdef FORE200E_52BYTE_AAL0_SDU
    if (cell_header) {
Loading