net/bonding: avoid making copy of MAC address
authorChas Williams <chas3@att.com>
Thu, 25 Oct 2018 22:04:37 +0000 (18:04 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit4a5bc4e201e6654015828f02867dc606072dfbe8
tree47fc5a24b9583cefe1b08fc5d1270e9d9719cc12
parent0bfe8460413d1b9b23e583f6e7e8d64d03d79742
net/bonding: avoid making copy of MAC address

Calling rte_eth_macaddr_get to get a copy of the MAC address causes
a hot spot according to profiling. We can easily get the current
MAC address by just examining the bonded device.

Signed-off-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_pmd.c