- if (status == 0) {
- if (port->pkt_buff != NULL) {
- RTE_LOG(INFO, PORT, "Successfully load pcap file "
- "'%s' with %u pkts\n",
- p->file_name, port->n_pkts);
- }
- } else if (status != -ENOTSUP) {
- /* ENOTSUP is not treated as error */
- switch (status) {
- case -ENOENT:
- RTE_LOG(ERR, PORT, "%s: Failed to open pcap file "
- "'%s' for reading\n",
- __func__, p->file_name);
- break;
- case -ENOMEM:
- RTE_LOG(ERR, PORT, "%s: Not enough memory\n",
- __func__);
- break;
- default:
- RTE_LOG(ERR, PORT, "%s: Failed to enable PCAP "
- "support for unknown reason\n",
- __func__);
- break;