#ifndef __NET_TC_GACT_H #define __NET_TC_GACT_H #include #include struct tcf_gact { struct tc_action common; #ifdef CONFIG_GACT_PROB u16 tcfg_ptype; u16 tcfg_pval; int tcfg_paction; atomic_t packets; #endif }; #define to_gact(a) ((struct tcf_gact *)a) static inline bool is_tcf_gact_shot(const struct tc_action *a) { #ifdef CONFIG_NET_CLS_ACT struct tcf_gact *gact; if (a->ops && a->ops->type != TCA_ACT_GACT) return false; gact = to_gact(a); if (gact->tcf_action == TC_ACT_SHOT) return true; #endif return false; } #endif /* __NET_TC_GACT_H */ 'net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-02-06 11:08:51 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-06 11:08:51 -0500
commitfcdc103dac5bdabddd626a4dfe7e5aa5673a61c4 (patch)
tree3516d25a4f2238add693db894faa54cb3fbd2343 /include
parente158e5ef24d191462428ff1be6b5048c0168fd14 (diff)
parent096de07f1d7156e500dec5abe89e9b44314e38e5 (diff)
Merge tag 'linux-can-next-for-4.11-20170206' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
Marc Kleine-Budde says: ==================== pull-request: can-next 2017-02-06 this is a pull request of 16 patches for net-next/master. The first two patches by David Jander and me add the rx-offload framework for CAN devices to the kernel. The remaining 14 patches convert the flexcan driver to make use of it. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/can/rx-offload.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/include/linux/can/rx-offload.h b/include/linux/can/rx-offload.h
new file mode 100644