|
@@ -19,6 +19,7 @@
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/spinlock.h>
|
|
|
#include <linux/crc32.h>
|
|
|
+#include <linux/crc32poly.h>
|
|
|
#include <linux/bitrev.h>
|
|
|
#include <linux/ethtool.h>
|
|
|
#include <linux/slab.h>
|
|
@@ -37,11 +38,6 @@
|
|
|
#define trunc_page(x) ((void *)(((unsigned long)(x)) & ~((unsigned long)(PAGE_SIZE - 1))))
|
|
|
#define round_page(x) trunc_page(((unsigned long)(x)) + ((unsigned long)(PAGE_SIZE - 1)))
|
|
|
|
|
|
-/*
|
|
|
- * CRC polynomial - used in working out multicast filter bits.
|
|
|
- */
|
|
|
-#define ENET_CRCPOLY 0x04c11db7
|
|
|
-
|
|
|
/* switch to use multicast code lifted from sunhme driver */
|
|
|
#define SUNHME_MULTICAST
|
|
|
|
|
@@ -838,7 +834,7 @@ crc416(unsigned int curval, unsigned short nxtval)
|
|
|
next = next >> 1;
|
|
|
|
|
|
/* do the XOR */
|
|
|
- if (high_crc_set ^ low_data_set) cur = cur ^ ENET_CRCPOLY;
|
|
|
+ if (high_crc_set ^ low_data_set) cur = cur ^ CRC32_POLY_BE;
|
|
|
}
|
|
|
return cur;
|
|
|
}
|