Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277582
b: refs/heads/master
c: b721e25
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 17, 2011
1 parent 8d68cd7 commit 3e21962
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c857ff6ecef1c7a1eb10c97c72d7230683392e9c
refs/heads/master: b721e25383c394f24fa19a66517c5efca382c2e5
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/freescale/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static void hw_add_addr_in_hash(struct ucc_geth_private *ugeth,

static inline int compare_addr(u8 **addr1, u8 **addr2)
{
return memcmp(addr1, addr2, ENET_NUM_OCTETS_PER_ADDRESS);
return memcmp(addr1, addr2, ETH_ALEN);
}

#ifdef DEBUG
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethernet/freescale/ucc_geth.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/if_ether.h>

#include <asm/immap_qe.h>
#include <asm/qe.h>
Expand Down Expand Up @@ -881,7 +882,6 @@ struct ucc_geth_hardware_statistics {
#define TX_RING_MOD_MASK(size) (size-1)
#define RX_RING_MOD_MASK(size) (size-1)

#define ENET_NUM_OCTETS_PER_ADDRESS 6
#define ENET_GROUP_ADDR 0x01 /* Group address mask
for ethernet
addresses */
Expand Down Expand Up @@ -1051,7 +1051,7 @@ enum ucc_geth_num_of_station_addresses {

/* UCC GETH 82xx Ethernet Address Container */
struct enet_addr_container {
u8 address[ENET_NUM_OCTETS_PER_ADDRESS]; /* ethernet address */
u8 address[ETH_ALEN]; /* ethernet address */
enum ucc_geth_enet_address_recognition_location location; /* location in
82xx address
recognition
Expand Down Expand Up @@ -1194,7 +1194,7 @@ struct ucc_geth_private {
u16 cpucount[NUM_TX_QUEUES];
u16 __iomem *p_cpucount[NUM_TX_QUEUES];
int indAddrRegUsed[NUM_OF_PADDRS];
u8 paddr[NUM_OF_PADDRS][ENET_NUM_OCTETS_PER_ADDRESS]; /* ethernet address */
u8 paddr[NUM_OF_PADDRS][ETH_ALEN]; /* ethernet address */
u8 numGroupAddrInHash;
u8 numIndAddrInHash;
u8 numIndAddrInReg;
Expand Down

0 comments on commit 3e21962

Please sign in to comment.