sch_generic.h (e7246e122aaa99ebbb8ad7da80f35a20577bd8af) | sch_generic.h (a5135bcfba7345031df45e02cd150a45add47cf8) |
---|---|
1#ifndef __NET_SCHED_GENERIC_H 2#define __NET_SCHED_GENERIC_H 3 4#include <linux/netdevice.h> 5#include <linux/types.h> 6#include <linux/rcupdate.h> 7#include <linux/pkt_sched.h> 8#include <linux/pkt_cls.h> --- 395 unchanged lines hidden (view full) --- 404struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue, 405 const struct Qdisc_ops *ops, u32 parentid); 406void __qdisc_calculate_pkt_len(struct sk_buff *skb, 407 const struct qdisc_size_table *stab); 408bool tcf_destroy(struct tcf_proto *tp, bool force); 409void tcf_destroy_chain(struct tcf_proto __rcu **fl); 410int skb_do_redirect(struct sk_buff *); 411 | 1#ifndef __NET_SCHED_GENERIC_H 2#define __NET_SCHED_GENERIC_H 3 4#include <linux/netdevice.h> 5#include <linux/types.h> 6#include <linux/rcupdate.h> 7#include <linux/pkt_sched.h> 8#include <linux/pkt_cls.h> --- 395 unchanged lines hidden (view full) --- 404struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue, 405 const struct Qdisc_ops *ops, u32 parentid); 406void __qdisc_calculate_pkt_len(struct sk_buff *skb, 407 const struct qdisc_size_table *stab); 408bool tcf_destroy(struct tcf_proto *tp, bool force); 409void tcf_destroy_chain(struct tcf_proto __rcu **fl); 410int skb_do_redirect(struct sk_buff *); 411 |
412static inline void skb_reset_tc(struct sk_buff *skb) 413{ 414#ifdef CONFIG_NET_CLS_ACT 415 skb->tc_at = 0; 416 skb->tc_from = 0; 417#endif 418} 419 |
|
412static inline bool skb_at_tc_ingress(const struct sk_buff *skb) 413{ 414#ifdef CONFIG_NET_CLS_ACT | 420static inline bool skb_at_tc_ingress(const struct sk_buff *skb) 421{ 422#ifdef CONFIG_NET_CLS_ACT |
415 return G_TC_AT(skb->tc_verd) & AT_INGRESS; | 423 return skb->tc_at & AT_INGRESS; |
416#else 417 return false; 418#endif 419} 420 421static inline bool skb_skip_tc_classify(struct sk_buff *skb) 422{ 423#ifdef CONFIG_NET_CLS_ACT --- 435 unchanged lines hidden --- | 424#else 425 return false; 426#endif 427} 428 429static inline bool skb_skip_tc_classify(struct sk_buff *skb) 430{ 431#ifdef CONFIG_NET_CLS_ACT --- 435 unchanged lines hidden --- |