[dpdk-dev] [PATCH v2 4/5] lib/librte_eal: add tcpdump support in primary process

2016-02-17 Thread Pavel Fedin
Hello! > +static int > +compare_filter(struct rte_mbuf *pkt) > +{ > + struct ipv4_hdr *pkt_hdr = rte_pktmbuf_mtod_offset(pkt, struct ipv4_hdr > *, > + sizeof(struct ether_hdr)); > + if (pkt_hdr->src_addr != src_ip_filter) > + return

[dpdk-dev] [PATCH v2 4/5] lib/librte_eal: add tcpdump support in primary process

2016-02-12 Thread Reshma Pattan
Added tcpdump functionality to eal interrupt thread. Enhanced interrupt thread to support tcpdump socket and message processing from secondary. Created new mempool and rings to handle packets of tcpdump. Added rte_eth_rxtx_callbacks for ingress/egress packets processing for tcpdump. Added funct