]> The Tcpdump Group git mirrors - libpcap/commitdiff
dpdk: get rid of an unused variable.
authorGuy Harris <[email protected]>
Sat, 23 May 2020 09:16:28 +0000 (02:16 -0700)
committerGuy Harris <[email protected]>
Sat, 23 May 2020 09:16:28 +0000 (02:16 -0700)
pcap-dpdk.c

index ab5ff736b0963e9e85c1f660814dc0a81c09334b..b00373f1952fbd0f0f5546450507cd69f27d10bc 100644 (file)
@@ -321,7 +321,6 @@ static int pcap_dpdk_dispatch(pcap_t *p, int max_cnt, pcap_handler cb, u_char *c
        struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
        struct rte_mbuf *m;
        struct pcap_pkthdr pcap_header;
-       uint16_t portid = pd->portid;
        // In DPDK, pkt_len is sum of lengths for all segments. And data_len is for one segment
        uint32_t pkt_len = 0;
        uint32_t caplen = 0;