X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Fip%2Fip.h;h=c5882c58dff78b014af2152066d9ed971cc6ee2a;hb=20f6441c639771467a9699eed177ba5e22368d37;hp=76a2552ffa46ab28266d806680ce1022d0260674;hpb=f39ff74346e86fb175da7e2a3981f2e6f8d3cc0c;p=vpp.git diff --git a/vnet/vnet/ip/ip.h b/vnet/vnet/ip/ip.h index 76a2552ffa4..c5882c58dff 100644 --- a/vnet/vnet/ip/ip.h +++ b/vnet/vnet/ip/ip.h @@ -42,6 +42,7 @@ #include #include /* adjacency heap */ +#include #include @@ -69,11 +70,6 @@ #include -typedef union { - ip4_address_t ip4; - ip6_address_t ip6; -} ip46_address_t; - /* Per protocol info. */ typedef struct { /* Protocol name (also used as hash key). */ @@ -162,7 +158,7 @@ ip_incremental_checksum_buffer (vlib_main_t * vm, vlib_buffer_t * first_buffer, #if DPDK > 0 { u32 n_bytes_left = n_bytes_to_checksum; - struct rte_mbuf * mb = ((struct rte_mbuf *)first_buffer)-1; + struct rte_mbuf * mb = rte_mbuf_from_vlib_buffer(first_buffer); u8 nb_segs = mb->nb_segs; ASSERT(mb->data_len >= first_buffer_offset); void * h; @@ -221,4 +217,10 @@ void ip_del_all_interface_addresses (vlib_main_t *vm, u32 sw_if_index); extern vlib_node_registration_t ip4_inacl_node; extern vlib_node_registration_t ip6_inacl_node; +void +vnet_config_update_tx_feature_count (ip_lookup_main_t * lm, + ip_config_main_t * tx_cm, + u32 sw_if_index, + int is_add); + #endif /* included_ip_main_h */