2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-27 15:18:06 +00:00

Move lib/meta-flow.h to include/openvswitch directory

This commit also moves some bitmap macros into public header files and
adds some #include directives in soure files in order to make the
'meta-flow.h' move possible.

Signed-off-by: Ben Warren <ben@skyportsystems.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Ben Warren
2016-04-04 21:32:07 -04:00
committed by Ben Pfaff
parent e29747e440
commit 064d7f8428
32 changed files with 43 additions and 39 deletions

View File

@@ -21,8 +21,6 @@
#include <stdlib.h>
#include "util.h"
#define BITMAP_ULONG_BITS (sizeof(unsigned long) * CHAR_BIT)
static inline unsigned long *
bitmap_unit__(const unsigned long *bitmap, size_t offset)
{
@@ -35,8 +33,6 @@ bitmap_bit__(size_t offset)
return 1UL << (offset % BITMAP_ULONG_BITS);
}
#define BITMAP_N_LONGS(N_BITS) DIV_ROUND_UP(N_BITS, BITMAP_ULONG_BITS)
static inline size_t
bitmap_n_longs(size_t n_bits)
{