diff options
author | David S. Miller <davem@davemloft.net> | 2015-09-02 01:46:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-02 01:46:08 +0200 |
commit | 4b36993d3df0834eff3b4172962de0343a4d9123 (patch) | |
tree | db6d7fae40f9c3986a7b24f55ca192edf6294b0a /include/net/flow_dissector.h | |
parent | Merge branch 'flow-dissector-features' (diff) | |
download | linux-4b36993d3df0834eff3b4172962de0343a4d9123.tar.xz linux-4b36993d3df0834eff3b4172962de0343a4d9123.zip |
flow_dissector: Don't use bit fields.
Just have a flags member instead.
In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from net/core/flow_dissector.c:1:
In function 'flow_keys_hash_start',
inlined from 'flow_hash_from_keys' at net/core/flow_dissector.c:553:34:
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_459' declared with attribute error: BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow_dissector.h')
-rw-r--r-- | include/net/flow_dissector.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h index bddd1089dbce..8c8548cf5888 100644 --- a/include/net/flow_dissector.h +++ b/include/net/flow_dissector.h @@ -12,11 +12,13 @@ struct flow_dissector_key_control { u16 thoff; u16 addr_type; - u32 is_fragment:1; - u32 first_frag:1; - u32 encapsulation:1; + u32 flags; }; +#define FLOW_DIS_IS_FRAGMENT BIT(0) +#define FLOW_DIS_FIRST_FRAG BIT(1) +#define FLOW_DIS_ENCAPSULATION BIT(2) + /** * struct flow_dissector_key_basic: * @thoff: Transport header offset |