* [PATCH net-next 0/6] slight optimization of addr compare for some modules
@ 2013-12-16 7:15 Ding Tianhong
0 siblings, 0 replies; only message in thread
From: Ding Tianhong @ 2013-12-16 7:15 UTC (permalink / raw)
To: David S. Miller, Netdev, Joe Perches
Joe Perches add ether_addr_equal_unaligned to test if
possibly unaligned to u16 Ethernet addresses are equal.
If CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is set, this uses
the slightly faster generic routine ether_addr_equal,
otherwise this uses memcmp.
So I replace memcmp with ether_addr_equal_unaligned in some place
for slight optimization.
Regards.
Ding
Ding Tianhong (6):
bonding: use ether_addr_equal_unaligned for bond addr compare
mac80211: slight optimization of addr compare
fddi: slight optimization of addr compare
isdn: slight optimization of addr compare
pppoe: slight optimization of addr compare
plip: slight optimization of addr compare
drivers/isdn/i4l/isdn_net.c | 4 +--
drivers/net/bonding/bond_3ad.c | 62 ++++++++++++++++++++++--------------------
drivers/net/plip/plip.c | 2 +-
drivers/net/ppp/pppoe.c | 5 ++--
net/802/fddi.c | 5 ++--
net/mac80211/iface.c | 8 +++---
6 files changed, 46 insertions(+), 40 deletions(-)
--
1.8.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-16 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 7:15 [PATCH net-next 0/6] slight optimization of addr compare for some modules Ding Tianhong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.