diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:58:00 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 14:19:23 -0500 |
commit | 1735188329d8c6357299462275061c05a46e100f (patch) | |
tree | 65b5a8910106cc04ae9c5ed013f51053c6274c8c /arch/powerpc | |
parent | f575ae1f7d3940efbfc43e4236adb4a8ec1db632 (diff) | |
download | u-boot-imx-1735188329d8c6357299462275061c05a46e100f.zip u-boot-imx-1735188329d8c6357299462275061c05a46e100f.tar.gz u-boot-imx-1735188329d8c6357299462275061c05a46e100f.tar.bz2 |
net: Encapsulate CDP packet identification
Checking for CDP packets should be encapsulated, not copied code.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/cpu/mpc8xx/fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/fec.c b/arch/powerpc/cpu/mpc8xx/fec.c index 984539d..b348a98 100644 --- 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 /* |