net/i40e: move testpmd commands
[dpdk.git] / app / test-pmd / util.c
index 8020f99..fd98e8b 100644 (file)
@@ -98,7 +98,6 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],
                int ret;
                struct rte_flow_error error;
                struct rte_flow_restore_info info = { 0, };
-               struct rte_port *port = &ports[port_id];
 
                mb = pkts[i];
                if (rxq_share > 0)
@@ -108,9 +107,7 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],
                eth_type = RTE_BE_TO_CPU_16(eth_hdr->ether_type);
                packet_type = mb->packet_type;
                is_encapsulation = RTE_ETH_IS_TUNNEL_PKT(packet_type);
-
-               ret = rte_flow_get_restore_info(port->flow_transfer_proxy,
-                                               mb, &info, &error);
+               ret = rte_flow_get_restore_info(port_id, mb, &info, &error);
                if (!ret) {
                        MKDUMPSTR(print_buf, buf_size, cur_len,
                                  "restore info:");