tcp_metrics.c (8e1fa36b3f5347eabd02385883fb5757aed56687) tcp_metrics.c (51456b2914a34d16b1255b7c55d5cbf6a681d306)
1#include <linux/rcupdate.h>
2#include <linux/spinlock.h>
3#include <linux/jiffies.h>
4#include <linux/module.h>
5#include <linux/cache.h>
6#include <linux/slab.h>
7#include <linux/init.h>
8#include <linux/tcp.h>

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

500
501void tcp_init_metrics(struct sock *sk)
502{
503 struct dst_entry *dst = __sk_dst_get(sk);
504 struct tcp_sock *tp = tcp_sk(sk);
505 struct tcp_metrics_block *tm;
506 u32 val, crtt = 0; /* cached RTT scaled by 8 */
507
1#include <linux/rcupdate.h>
2#include <linux/spinlock.h>
3#include <linux/jiffies.h>
4#include <linux/module.h>
5#include <linux/cache.h>
6#include <linux/slab.h>
7#include <linux/init.h>
8#include <linux/tcp.h>

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

500
501void tcp_init_metrics(struct sock *sk)
502{
503 struct dst_entry *dst = __sk_dst_get(sk);
504 struct tcp_sock *tp = tcp_sk(sk);
505 struct tcp_metrics_block *tm;
506 u32 val, crtt = 0; /* cached RTT scaled by 8 */
507
508 if (dst == NULL)
508 if (!dst)
509 goto reset;
510
511 dst_confirm(dst);
512
513 rcu_read_lock();
514 tm = tcp_get_metrics(sk, dst, true);
515 if (!tm) {
516 rcu_read_unlock();

--- 673 unchanged lines hidden ---
509 goto reset;
510
511 dst_confirm(dst);
512
513 rcu_read_lock();
514 tm = tcp_get_metrics(sk, dst, true);
515 if (!tm) {
516 rcu_read_unlock();

--- 673 unchanged lines hidden ---