[PATCH] app/testpmd: fix parameters order when calling rte_ether_addr_copy()
Stephen Hemminger
stephen at networkplumber.org
Wed Nov 10 17:03:18 CET 2021
On Wed, 10 Nov 2021 08:17:59 +0000
"Xu, Wei1" <wei1.xu at intel.com> wrote:
> eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
> - rte_ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
> - ð_hdr->dst_addr);
> - rte_ether_addr_copy(&ports[fs->tx_port].eth_addr,
> - ð_hdr->src_addr);
> + rte_ether_addr_copy(ð_hdr->dst_addr,
> + &peer_eth_addrs[fs->peer_addr]);
> + rte_ether_addr_copy(ð_hdr->src_addr,
> + &ports[fs->tx_port].eth_addr);
Your patch indents with spaces not tabs
More information about the dev
mailing list