~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/net/dst.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        };
107
107
};
108
108
 
109
 
extern u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
 
109
u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
110
110
extern const u32 dst_default_metrics[];
111
111
 
112
112
#define DST_METRICS_READ_ONLY   0x1UL
119
119
        return dst->_metrics & DST_METRICS_READ_ONLY;
120
120
}
121
121
 
122
 
extern void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
 
122
void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
123
123
 
124
124
static inline void dst_destroy_metrics_generic(struct dst_entry *dst)
125
125
{
262
262
        return dst;
263
263
}
264
264
 
265
 
extern void dst_release(struct dst_entry *dst);
 
265
void dst_release(struct dst_entry *dst);
266
266
 
267
267
static inline void refdst_drop(unsigned long refdst)
268
268
{
362
362
        return child;
363
363
}
364
364
 
365
 
extern int dst_discard(struct sk_buff *skb);
366
 
extern void *dst_alloc(struct dst_ops *ops, struct net_device *dev,
367
 
                       int initial_ref, int initial_obsolete,
368
 
                       unsigned short flags);
369
 
extern void __dst_free(struct dst_entry *dst);
370
 
extern struct dst_entry *dst_destroy(struct dst_entry *dst);
 
365
int dst_discard(struct sk_buff *skb);
 
366
void *dst_alloc(struct dst_ops *ops, struct net_device *dev, int initial_ref,
 
367
                int initial_obsolete, unsigned short flags);
 
368
void __dst_free(struct dst_entry *dst);
 
369
struct dst_entry *dst_destroy(struct dst_entry *dst);
371
370
 
372
371
static inline void dst_free(struct dst_entry *dst)
373
372
{
463
462
        return dst;
464
463
}
465
464
 
466
 
extern void             dst_init(void);
 
465
void dst_init(void);
467
466
 
468
467
/* Flags for xfrm_lookup flags argument. */
469
468
enum {
486
485
}
487
486
 
488
487
#else
489
 
extern struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
490
 
                                     const struct flowi *fl, struct sock *sk,
491
 
                                     int flags);
 
488
struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
 
489
                              const struct flowi *fl, struct sock *sk,
 
490
                              int flags);
492
491
 
493
492
/* skb attached with this dst needs transformation if dst->xfrm is valid */
494
493
static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst)