Re: [dpdk-dev] [PATCH] net: rte_ether minor optimizations

2020-08-25 Thread Ferruh Yigit
On 7/27/2020 8:34 AM, Olivier Matz wrote: > On Fri, Jun 26, 2020 at 06:51:35PM +0200, Morten Brørup wrote: >> * 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(). >> >> *

Re: [dpdk-dev] [PATCH] net: rte_ether minor optimizations

2020-07-27 Thread Olivier Matz
On Fri, Jun 26, 2020 at 06:51:35PM +0200, Morten Brørup wrote: > * 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 modific

[dpdk-dev] [PATCH] net: rte_ether minor optimizations

2020-06-26 Thread Morten Brørup
* 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