#include "bitmap.h"
#include "compiler.h"
#include "hmap.h"
-#include "match.h"
+#include "openvswitch/match.h"
#include "nx-match.h"
#include "odp-netlink.h"
-#include "ofp-util.h"
+#include "openvswitch/ofp-util.h"
#include "ovs-thread.h"
#include "ovs-rcu.h"
#include "packets.h"
tun_metadata_del_entry(map, entry - map->entries);
}
+ hmap_destroy(&map->key_hmap);
free(map);
}
ttr->max_option_space = TUN_METADATA_TOT_OPT_SIZE;
ttr->max_fields = TUN_METADATA_NUM_OPTS;
- list_init(&ttr->mappings);
+ ovs_list_init(&ttr->mappings);
for (i = 0; i < TUN_METADATA_NUM_OPTS; i++) {
struct tun_meta_entry *entry = &map->entries[i];
map->option_len = entry->loc.len;
map->index = i;
- list_push_back(&ttr->mappings, &map->list_node);
+ ovs_list_push_back(&ttr->mappings, &map->list_node);
}
}
int addr = 0;
while (chain) {
- memcpy(dst->opts.u8 + loc->c.offset + addr, (uint8_t *)src + addr,
+ memcpy(dst->opts.u8 + chain->offset, (uint8_t *)src + addr,
chain->len);
addr += chain->len;
chain = chain->next;
int addr = 0;
while (chain) {
- memcpy((uint8_t *)dst + addr, src->opts.u8 + loc->c.offset + addr,
+ memcpy((uint8_t *)dst + addr, src->opts.u8 + chain->offset,
chain->len);
addr += chain->len;
chain = chain->next;