JIRA: SAMPLEVNF-71
Change-Id: Ibcd70008e1657eaa0b2f95aac319483490c290aa
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
/* Read response */
if (rsp->status || !rsp->key_found) {
app_msg_free(app, rsp);
/* Read response */
if (rsp->status || !rsp->key_found) {
app_msg_free(app, rsp);
- printf("Successfully deleted the entry\n");
+ #ifdef CGNAPT_DBG_PRNT
+ printf("Successfully deleted the entry\n");
+ #endif
prot_offset = PROT_OFST_IP4 + temp;
break;
default:
prot_offset = PROT_OFST_IP4 + temp;
break;
default:
- printf("hw_checksum: pkt version is invalid\n");
+ printf("hw_checksum: pkt version is invalid\n");
}
protocol = (uint8_t *) RTE_MBUF_METADATA_UINT8_PTR(pkt,
prot_offset);
}
protocol = (uint8_t *) RTE_MBUF_METADATA_UINT8_PTR(pkt,
prot_offset);
- printf("hw_checksum() : Neither TCP or UDP pkt\n");
+ #ifdef CGNAPT_DEBUGGING
+ printf("hw_checksum() : Neither TCP or UDP pkt\n");
+ #endif
prot_offset = PROT_OFST_IP4 + temp;
break;
default:
prot_offset = PROT_OFST_IP4 + temp;
break;
default:
- printf("sw_checksum: pkt version is invalid\n");
+ printf("sw_checksum: pkt version is invalid\n");
}
protocol = (uint8_t *) RTE_MBUF_METADATA_UINT8_PTR(pkt,
prot_offset);
}
protocol = (uint8_t *) RTE_MBUF_METADATA_UINT8_PTR(pkt,
prot_offset);
- printf("sw_checksum() : Neither TCP or UDP pkt\n");
+ #ifdef CGNAPT_DEBUGGING
+ printf("sw_checksum() : Neither TCP or UDP pkt\n");
+ #endif
/* ARP outport number */
uint16_t out_port = p_nat->p.n_ports_out - 1;
/* ARP outport number */
uint16_t out_port = p_nat->p.n_ports_out - 1;
- printf("check_arp_icmp called*****\n");
uint8_t *protocol;
uint32_t prot_offset;
uint8_t *protocol;
uint32_t prot_offset;
uint32_t vnf_set_num = p_nat->vnf_set;
/*uint32_t vnf_set_num = get_vnf_set_num(p_nat->pipeline_num); */
uint32_t vnf_set_num = p_nat->vnf_set;
/*uint32_t vnf_set_num = get_vnf_set_num(p_nat->pipeline_num); */
- printf("VNF set number for CGNAPT %d is %d.\n", p_nat->pipeline_num,
- vnf_set_num);
+ #ifdef CGNAPT_DBG_PRNT
+ printf("VNF set number for CGNAPT %d is %d.\n", p_nat->pipeline_num,
+ vnf_set_num);
+ #endif
if (vnf_set_num == 0xFF) {
printf("VNF set number for CGNAPT %d is invalid %d.\n",
p_nat->pipeline_num, vnf_set_num);
if (vnf_set_num == 0xFF) {
printf("VNF set number for CGNAPT %d is invalid %d.\n",
p_nat->pipeline_num, vnf_set_num);
#ifdef CGNAPT_DEBUGGING
p_nat->naptDroppedPktCount3++;
#endif
#ifdef CGNAPT_DEBUGGING
p_nat->naptDroppedPktCount3++;
#endif
- printf("causing p_nat->naptDroppedPktCount3\n");
printf("PhyPort %d, ttl %u,", rx_port, ttl);
printf("entry_type %d\n", type);
printf("PhyPort %d, ttl %u,", rx_port, ttl);
printf("entry_type %d\n", type);
#ifdef NAT_ONLY_CONFIG_REQ
if (nat_only_config_flag) {
if (!p_nat->is_static_cgnapt) {
#ifdef NAT_ONLY_CONFIG_REQ
if (nat_only_config_flag) {
if (!p_nat->is_static_cgnapt) {
printf("Success - pipeline_cgnapt_msg_req_entry_addm_handler");
printf("added %d rule pairs.\n", count);
printf("Success - pipeline_cgnapt_msg_req_entry_addm_handler");
printf("added %d rule pairs.\n", count);
printf("\nSuccess - pipeline_cgnapt_msg_req_entry_add_handler "
"added\n");
printf("\nSuccess - pipeline_cgnapt_msg_req_entry_add_handler "
"added\n");
printf("PhyPort %d, ttl %u, NumUe %d,", rx_port, ttl, max_ue);
printf("mPrvPort %d, mPubPort %d,", max_src_port, max_dest_port);
printf("entry_type %d\n", type);
printf("PhyPort %d, ttl %u, NumUe %d,", rx_port, ttl, max_ue);
printf("mPrvPort %d, mPubPort %d,", max_src_port, max_dest_port);
printf("entry_type %d\n", type);
#ifdef NAT_ONLY_CONFIG_REQ
if (nat_only_config_flag) {
if (!p_nat->is_static_cgnapt) {
#ifdef NAT_ONLY_CONFIG_REQ
if (nat_only_config_flag) {
if (!p_nat->is_static_cgnapt) {
printf("Success - pipeline_cgnapt_msg_req_entry_addm_handler");
printf("added %d rule pairs.\n", count);
printf("Success - pipeline_cgnapt_msg_req_entry_addm_handler");
printf("added %d rule pairs.\n", count);
printf("\nSuccess - pipeline_cgnapt_msg_req_entry_addm_handler added");
printf("%d rule pairs.\n", count);
printf("\nSuccess - pipeline_cgnapt_msg_req_entry_addm_handler added");
printf("%d rule pairs.\n", count);
- RTE_LOG(INFO, LIBARP,"ARP requested IP address mismatches interface IP - discarding\n");
+ if (ARPICMP_DEBUG)
+ RTE_LOG(INFO, LIBARP,"ARP requested IP address mismatches interface IP - discarding\n");
}
}
/// revise conditionals to allow processing of requests with target ip = this ip and
}
}
/// revise conditionals to allow processing of requests with target ip = this ip and