#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 */ git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-03 12:01:54 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-03 12:01:54 -0800
commitcd44691f7177b2c1e1509d1a17d9b198ebaa34eb (patch)
treeaf696f53d3cdbe9011cdb9168b73e1b524411ecf /drivers/usb/dwc2/platform.c
parent79c9089f97d37ffac88c3ddb6d359b2cf75058b7 (diff)
parent161e6d44a5e2d3f85365cb717d60e363171b39e6 (diff)
Merge tag 'mmc-v4.10-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC fix from Ulf Hansson: "MMC host: sdhci: Avoid hang when receiving spurious CARD_INT interrupts" * tag 'mmc-v4.10-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: mmc: sdhci: Ignore unexpected CARD_INT interrupts
Diffstat (limited to 'drivers/usb/dwc2/platform.c')