diff options
author | Deepak S <deepak.s@linux.intel.com> | 2018-12-18 15:06:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-12-18 15:06:09 +0000 |
commit | a9f8ae63f7b3b5cdc566bdaaf4521658779a86f7 (patch) | |
tree | fb61926040ef05d2283ba901e9a63fd2d7e83c0e /VNFs/DPPD-PROX/packet_utils.h | |
parent | b14294c202c380a8520f19179d4f96bd6becc55e (diff) | |
parent | 63b9e164a14d48acc37d325c0cb5387602d8e631 (diff) |
Merge changes from topic 'fix_multiple_arp_issues'
* changes:
Fix arp handling when master core is on socket 1
Add support for zero packet loss in PROX L3 mode.
Fix issue in l3 mode when no arp reply was received
Clean up debugging messages
Diffstat (limited to 'VNFs/DPPD-PROX/packet_utils.h')
-rw-r--r-- | VNFs/DPPD-PROX/packet_utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/packet_utils.h b/VNFs/DPPD-PROX/packet_utils.h index 0017a89e..74a3f60e 100644 --- a/VNFs/DPPD-PROX/packet_utils.h +++ b/VNFs/DPPD-PROX/packet_utils.h @@ -13,6 +13,8 @@ // See the License for the specific language governing permissions and // limitations under the License. */ +#ifndef _PACKET_UTILS_H_ +#define _PACKET_UTILS_H_ #include "arp.h" #include "quit.h" @@ -24,6 +26,14 @@ #define FLAG_DST_MAC_KNOWN 1 #define MAX_ARP_ENTRIES 65536 +#define IP4(x) x & 0xff, (x >> 8) & 0xff, (x >> 16) & 0xff, x >> 24 +enum { + SEND_MBUF_AND_ARP, + SEND_MBUF, + SEND_ARP, + DROP_MBUF +}; + struct task_base; struct task_args; struct arp_table { @@ -44,6 +54,7 @@ struct l3_base { struct arp_table optimized_arp_table[4]; struct rte_hash *ip_hash; struct arp_table *arp_table; + struct rte_mempool *arp_pool; }; void task_init_l3(struct task_base *tbase, struct task_args *targ); @@ -52,3 +63,5 @@ int write_dst_mac(struct task_base *tbase, struct rte_mbuf *mbuf, uint32_t *ip_d void task_set_gateway_ip(struct task_base *tbase, uint32_t ip); void task_set_local_ip(struct task_base *tbase, uint32_t ip); void handle_ctrl_plane_pkts(struct task_base *tbase, struct rte_mbuf **mbufs, uint16_t n_pkts); + +#endif /* _PACKET_UTILS_H_ */ |