diff options
author | David S. Miller <davem@davemloft.net> | 2017-05-24 15:43:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-24 15:43:57 -0400 |
commit | 3f6b123bcc666a1766167065c2eb5a708f55651e (patch) | |
tree | abd37fb7f30fa23cd68001a39498a9cba51cbeee /include/net | |
parent | 029c58178b9aa0a293a86ee0da3355611ac99d07 (diff) | |
parent | b665d98edc9ab295169be2fc5bb4e89a46de0a1a (diff) | |
download | talos-op-linux-3f6b123bcc666a1766167065c2eb5a708f55651e.tar.gz talos-op-linux-3f6b123bcc666a1766167065c2eb5a708f55651e.zip |
Merge tag 'mlx5-fixes-2017-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux
Saeed Mahameed says:
====================
mlx5-fixes-2017-05-23
Some TC offloads fixes from Or Gerlitz.
From Erez, mlx5 IPoIB RX fix to improve GRO.
From Mohamad, Command interface fix to improve mitigation against FW
commands timeouts.
From Tariq, Driver load Tolerance against affinity settings failures.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tc_act/tc_csum.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/tc_act/tc_csum.h b/include/net/tc_act/tc_csum.h index f31fb6331a53..3248beaf16b0 100644 --- a/include/net/tc_act/tc_csum.h +++ b/include/net/tc_act/tc_csum.h @@ -3,6 +3,7 @@ #include <linux/types.h> #include <net/act_api.h> +#include <linux/tc_act/tc_csum.h> struct tcf_csum { struct tc_action common; @@ -11,4 +12,18 @@ struct tcf_csum { }; #define to_tcf_csum(a) ((struct tcf_csum *)a) +static inline bool is_tcf_csum(const struct tc_action *a) +{ +#ifdef CONFIG_NET_CLS_ACT + if (a->ops && a->ops->type == TCA_ACT_CSUM) + return true; +#endif + return false; +} + +static inline u32 tcf_csum_update_flags(const struct tc_action *a) +{ + return to_tcf_csum(a)->update_flags; +} + #endif /* __NET_TC_CSUM_H */ |