diff options
author | Paul Blakey <paulb@mellanox.com> | 2017-09-18 07:16:02 +0300 |
---|---|---|
committer | Simon Horman <simon.horman@netronome.com> | 2017-11-16 08:03:16 -0800 |
commit | 0aee3827559b384114249901f4a51d8fbbc47dfa (patch) | |
tree | 45c05159b09a68607af3d7d0b07c1203b3844d6f /lib/odp-util.h | |
parent | e5b1657e6f67a28c36d3d22bbe758d451f99ec1f (diff) | |
download | openvswitch-0aee3827559b384114249901f4a51d8fbbc47dfa.tar.gz |
odp-util: Expose ovs flow key attr len table for reuse
Make ovs_flow_key_attr_lens() public to be reused by other modules.
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'lib/odp-util.h')
-rw-r--r-- | lib/odp-util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h index 27c2ab4f0..72a3c30d6 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -344,4 +344,15 @@ void odp_put_push_eth_action(struct ofpbuf *odp_actions, const struct eth_addr *eth_src, const struct eth_addr *eth_dst); +struct attr_len_tbl { + int len; + const struct attr_len_tbl *next; + int next_max; +}; + +#define ATTR_LEN_INVALID -1 +#define ATTR_LEN_VARIABLE -2 +#define ATTR_LEN_NESTED -3 + +extern const struct attr_len_tbl ovs_flow_key_attr_lens[OVS_KEY_ATTR_MAX + 1]; #endif /* odp-util.h */ |