Lines Matching refs:skb
48 int (*output)(struct sock *sk, struct sk_buff *skb);
285 static inline void skb_dst_drop(struct sk_buff *skb) in skb_dst_drop() argument
287 if (skb->_skb_refdst) { in skb_dst_drop()
288 refdst_drop(skb->_skb_refdst); in skb_dst_drop()
289 skb->_skb_refdst = 0UL; in skb_dst_drop()
306 static inline void skb_dst_force(struct sk_buff *skb) in skb_dst_force() argument
308 if (skb_dst_is_noref(skb)) { in skb_dst_force()
310 skb->_skb_refdst &= ~SKB_DST_NOREF; in skb_dst_force()
311 dst_clone(skb_dst(skb)); in skb_dst_force()
336 static inline void skb_dst_force_safe(struct sk_buff *skb) in skb_dst_force_safe() argument
338 if (skb_dst_is_noref(skb)) { in skb_dst_force_safe()
339 struct dst_entry *dst = skb_dst(skb); in skb_dst_force_safe()
344 skb->_skb_refdst = (unsigned long)dst; in skb_dst_force_safe()
358 static inline void __skb_tunnel_rx(struct sk_buff *skb, struct net_device *dev, in __skb_tunnel_rx() argument
361 skb->dev = dev; in __skb_tunnel_rx()
368 skb_clear_hash_if_not_l4(skb); in __skb_tunnel_rx()
369 skb_set_queue_mapping(skb, 0); in __skb_tunnel_rx()
370 skb_scrub_packet(skb, !net_eq(net, dev_net(dev))); in __skb_tunnel_rx()
382 static inline void skb_tunnel_rx(struct sk_buff *skb, struct net_device *dev, in skb_tunnel_rx() argument
387 dev->stats.rx_bytes += skb->len; in skb_tunnel_rx()
388 __skb_tunnel_rx(skb, dev, net); in skb_tunnel_rx()
395 static inline struct dst_entry *skb_dst_pop(struct sk_buff *skb) in skb_dst_pop() argument
397 struct dst_entry *child = dst_clone(skb_dst(skb)->child); in skb_dst_pop()
399 skb_dst_drop(skb); in skb_dst_pop()
403 int dst_discard_sk(struct sock *sk, struct sk_buff *skb);
404 static inline int dst_discard(struct sk_buff *skb) in dst_discard() argument
406 return dst_discard_sk(skb->sk, skb); in dst_discard()
437 struct sk_buff *skb) in dst_neigh_output() argument
452 return neigh_hh_output(hh, skb); in dst_neigh_output()
454 return n->output(n, skb); in dst_neigh_output()
464 struct sk_buff *skb) in dst_neigh_lookup_skb() argument
466 struct neighbour *n = dst->ops->neigh_lookup(dst, skb, NULL); in dst_neigh_lookup_skb()
470 static inline void dst_link_failure(struct sk_buff *skb) in dst_link_failure() argument
472 struct dst_entry *dst = skb_dst(skb); in dst_link_failure()
474 dst->ops->link_failure(skb); in dst_link_failure()
489 static inline int dst_output_sk(struct sock *sk, struct sk_buff *skb) in dst_output_sk() argument
491 return skb_dst(skb)->output(sk, skb); in dst_output_sk()
493 static inline int dst_output(struct sk_buff *skb) in dst_output() argument
495 return dst_output_sk(skb->sk, skb); in dst_output()
499 static inline int dst_input(struct sk_buff *skb) in dst_input() argument
501 return skb_dst(skb)->input(skb); in dst_input()