skbuff.c (f24b9be5957b38bb420b838115040dc2031b7d0c) skbuff.c (09c2d251b70723650ba47e83571ff49281320f7c)
1/*
2 * Routines having to do with the 'struct sk_buff' memory handlers.
3 *
4 * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
5 * Florian La Roche <rzsfl@rz.uni-sb.de>
6 *
7 * Fixes:
8 * Alan Cox : Fixed the worst of the load

--- 3508 unchanged lines hidden (view full) ---

3517 if (!skb)
3518 return;
3519
3520 serr = SKB_EXT_ERR(skb);
3521 memset(serr, 0, sizeof(*serr));
3522 serr->ee.ee_errno = ENOMSG;
3523 serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING;
3524 serr->ee.ee_info = SCM_TSTAMP_SND;
1/*
2 * Routines having to do with the 'struct sk_buff' memory handlers.
3 *
4 * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
5 * Florian La Roche <rzsfl@rz.uni-sb.de>
6 *
7 * Fixes:
8 * Alan Cox : Fixed the worst of the load

--- 3508 unchanged lines hidden (view full) ---

3517 if (!skb)
3518 return;
3519
3520 serr = SKB_EXT_ERR(skb);
3521 memset(serr, 0, sizeof(*serr));
3522 serr->ee.ee_errno = ENOMSG;
3523 serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING;
3524 serr->ee.ee_info = SCM_TSTAMP_SND;
3525 if (sk->sk_tsflags & SOF_TIMESTAMPING_OPT_ID)
3526 serr->ee.ee_data = skb_shinfo(skb)->tskey;
3525
3526 err = sock_queue_err_skb(sk, skb);
3527
3528 if (err)
3529 kfree_skb(skb);
3530}
3531EXPORT_SYMBOL_GPL(skb_tstamp_tx);
3532

--- 430 unchanged lines hidden ---
3527
3528 err = sock_queue_err_skb(sk, skb);
3529
3530 if (err)
3531 kfree_skb(skb);
3532}
3533EXPORT_SYMBOL_GPL(skb_tstamp_tx);
3534

--- 430 unchanged lines hidden ---