projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: Encapsulate CDP packet identification
[platform/kernel/u-boot.git]
/
arch
/
powerpc
/
cpu
/
mpc8xx
/
fec.c
diff --git
a/arch/powerpc/cpu/mpc8xx/fec.c
b/arch/powerpc/cpu/mpc8xx/fec.c
index
984539d
..
b348a98
100644
(file)
--- a/
arch/powerpc/cpu/mpc8xx/fec.c
+++ b/
arch/powerpc/cpu/mpc8xx/fec.c
@@
-274,7
+274,7
@@
static int fec_recv (struct eth_device *dev)
#if defined(CONFIG_CMD_CDP)
if ((rx[0] & 1) != 0
&& memcmp ((uchar *) rx, NetBcastAddr, 6) != 0
- &&
memcmp ((uchar *) rx, NetCDPAddr, 6) != 0
)
+ &&
!is_cdp_packet((uchar *)rx)
)
rx = NULL;
#endif
/*