dst.h (21c721fd0b991b1871ea5dd517be1b5375c5f8f7) | dst.h (c3a8d9474684d391b0afc3970d9b249add15ec07) |
---|---|
1/* 2 * net/dst.h Protocol independent destination cache definitions. 3 * 4 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 5 * 6 */ 7 8#ifndef _NET_DST_H --- 193 unchanged lines hidden (view full) --- 202static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val) 203{ 204 u32 *p = dst_metrics_write_ptr(dst); 205 206 if (p) 207 p[metric-1] = val; 208} 209 | 1/* 2 * net/dst.h Protocol independent destination cache definitions. 3 * 4 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 5 * 6 */ 7 8#ifndef _NET_DST_H --- 193 unchanged lines hidden (view full) --- 202static inline void dst_metric_set(struct dst_entry *dst, int metric, u32 val) 203{ 204 u32 *p = dst_metrics_write_ptr(dst); 205 206 if (p) 207 p[metric-1] = val; 208} 209 |
210/* Kernel-internal feature bits that are unallocated in user space. */ 211#define DST_FEATURE_ECN_CA (1 << 31) 212 213#define DST_FEATURE_MASK (DST_FEATURE_ECN_CA) 214#define DST_FEATURE_ECN_MASK (DST_FEATURE_ECN_CA | RTAX_FEATURE_ECN) 215 |
|
210static inline u32 211dst_feature(const struct dst_entry *dst, u32 feature) 212{ 213 return dst_metric(dst, RTAX_FEATURES) & feature; 214} 215 216static inline u32 dst_mtu(const struct dst_entry *dst) 217{ --- 305 unchanged lines hidden --- | 216static inline u32 217dst_feature(const struct dst_entry *dst, u32 feature) 218{ 219 return dst_metric(dst, RTAX_FEATURES) & feature; 220} 221 222static inline u32 dst_mtu(const struct dst_entry *dst) 223{ --- 305 unchanged lines hidden --- |