app/testpmd: add command to print representor info
[dpdk.git] / examples / l3fwd / l3fwd_fib.c
index d083ddf..7fd7c1d 100644 (file)
@@ -92,9 +92,9 @@ fib_send_single(int nb_tx, struct lcore_conf *qconf,
                /* Set MAC addresses. */
                eth_hdr = rte_pktmbuf_mtod(pkts_burst[j],
                                struct rte_ether_hdr *);
-               *(uint64_t *)&eth_hdr->d_addr = dest_eth_addr[hops[j]];
+               *(uint64_t *)&eth_hdr->dst_addr = dest_eth_addr[hops[j]];
                rte_ether_addr_copy(&ports_eth_addr[hops[j]],
-                               &eth_hdr->s_addr);
+                               &eth_hdr->src_addr);
 
                /* Send single packet. */
                send_single_packet(qconf, pkts_burst[j], hops[j]);
@@ -412,7 +412,7 @@ fib_event_main_loop_tx_q_burst(__rte_unused void *dummy)
        return 0;
 }
 
-/* Function to setup fib. */
+/* Function to setup fib. 8< */
 void
 setup_fib(const int socketid)
 {
@@ -468,6 +468,7 @@ setup_fib(const int socketid)
                                ipv4_l3fwd_route_array[i].if_out);
                }
        }
+       /* >8 End of setup fib. */
 
        /* Create the fib IPv6 table. */
        snprintf(s, sizeof(s), "IPV6_L3FWD_FIB_%d", socketid);