[Intel-wired-lan] [next-queue 2/6] fm10k: use ether_addr_equal instead of memcmp

Singh, Krishneil K krishneil.k.singh at intel.com
Tue Nov 3 02:35:11 UTC 2015



-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of Jacob Keller
Sent: Monday, October 26, 2015 4:32 PM
To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
Subject: [Intel-wired-lan] [next-queue 2/6] fm10k: use ether_addr_equal instead of memcmp

When comparing MAC addresses, use ether_addr_equal instead of memcmp to ETH_ALEN length. Found and replaced using the following sed:

 sed -e 's/memcmp\x28\(.*\), ETH_ALEN\x29/ether_addr_equal\x28\1\x29/'

Reported-by: Bruce Allan <bruce.w.allan at intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
---
 Tested-by: Krishneil Singh <Krishneil.k.singh at intel.com>




More information about the Intel-wired-lan mailing list