Morten Brørup a6f67a3b64 net: optimize ethernet address functions
* rte_is_broadcast_ether_addr():
Use binary logic instead of comparisons and boolean logic, thus reducing
the number of branches.
It now resembles rte_is_zero_ether_addr().

* rte_ether_addr_copy():
The source code modifications were discussed on the mailing list:
http://mails.dpdk.org/archives/dev/2020-June/171584.html
Remove obsolete ICC-specific code and related comment.
Restrict pointer aliasing (suggested by Jerin Jacob).
Remove superfluous "Fast" from function description headline; all DPDK
data plane functions are supposed to be fast.

Signed-off-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2020-09-18 18:55:06 +02:00
..
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-09-10 21:53:48 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-07-11 00:45:20 +02:00
2020-07-21 17:36:54 +02:00
2019-10-25 19:00:22 +02:00
2019-10-25 19:00:22 +02:00
2020-08-12 11:32:16 +02:00
2020-07-30 00:41:24 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00