ip.h (1bd758eb1cab2fa5b71a23f9e5d3c8076f4ed650) | ip.h (06635a35d13d42b95422bba6633f175245cc644e) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Definitions for the IP module. 7 * 8 * Version: @(#)ip.h 1.0.2 05/07/93 --- 346 unchanged lines hidden (view full) --- 355 skb->len, proto, 0); 356} 357 358static inline void inet_set_txhash(struct sock *sk) 359{ 360 struct inet_sock *inet = inet_sk(sk); 361 struct flow_keys keys; 362 | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Definitions for the IP module. 7 * 8 * Version: @(#)ip.h 1.0.2 05/07/93 --- 346 unchanged lines hidden (view full) --- 355 skb->len, proto, 0); 356} 357 358static inline void inet_set_txhash(struct sock *sk) 359{ 360 struct inet_sock *inet = inet_sk(sk); 361 struct flow_keys keys; 362 |
363 keys.src = inet->inet_saddr; 364 keys.dst = inet->inet_daddr; 365 keys.port16[0] = inet->inet_sport; 366 keys.port16[1] = inet->inet_dport; | 363 keys.addrs.src = inet->inet_saddr; 364 keys.addrs.dst = inet->inet_daddr; 365 keys.ports.port16[0] = inet->inet_sport; 366 keys.ports.port16[1] = inet->inet_dport; |
367 368 sk->sk_txhash = flow_hash_from_keys(&keys); 369} 370 371static inline __wsum inet_gro_compute_pseudo(struct sk_buff *skb, int proto) 372{ 373 const struct iphdr *iph = skb_gro_network_header(skb); 374 --- 187 unchanged lines hidden --- | 367 368 sk->sk_txhash = flow_hash_from_keys(&keys); 369} 370 371static inline __wsum inet_gro_compute_pseudo(struct sk_buff *skb, int proto) 372{ 373 const struct iphdr *iph = skb_gro_network_header(skb); 374 --- 187 unchanged lines hidden --- |