The problem was 3 functions with normally will not be available in a standard 2.6.32 kernel but since pve uses the 2.6.32 rhel-6.3 kernel these functions has been backported by Redhat.
Code:
diff -ru netxtreme2-7.2.20/bnx2x/src/bnx2x_compat.h netxtreme2-7.2.20_new//bnx2x/src/bnx2x_compat.h
--- netxtreme2-7.2.20/bnx2x/src/bnx2x_compat.h 2012-03-28 23:36:48.000000000 +0200
+++ netxtreme2-7.2.20_new//bnx2x/src/bnx2x_compat.h 2012-12-07 18:39:25.969855545 +0100
@@ -824,7 +824,7 @@
}
#endif
-#if (LINUX_VERSION_CODE < 0x020624)
+/*#if (LINUX_VERSION_CODE < 0x020624)
static inline void usleep_range(unsigned long min, unsigned long max)
{
if (min < 1000)
@@ -832,7 +832,7 @@
else
msleep(min / 1000);
}
-#endif
+#endif*/
#if (LINUX_VERSION_CODE < 0x02061D)
static inline ssize_t
@@ -1539,7 +1539,7 @@
}
#endif
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0))
+/*#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0))
static inline struct page *skb_frag_page(const skb_frag_t *frag)
{
return frag->page;
@@ -1553,7 +1553,7 @@
return dma_map_page(dev, skb_frag_page(frag),
frag->page_offset + offset, size, dir);
}
-#endif
+#endif*/
diff -ru netxtreme2-7.2.20/bnx2x-1.72.18/src/bnx2x_compat.h netxtreme2-7.2.20_new//bnx2x-1.72.18/src/bnx2x_compat.h
--- netxtreme2-7.2.20/bnx2x-1.72.18/src/bnx2x_compat.h 2012-03-28 23:36:48.000000000 +0200
+++ netxtreme2-7.2.20_new//bnx2x-1.72.18/src/bnx2x_compat.h 2012-12-07 18:39:25.969855545 +0100
@@ -824,7 +824,7 @@
}
#endif
-#if (LINUX_VERSION_CODE < 0x020624)
+/*#if (LINUX_VERSION_CODE < 0x020624)
static inline void usleep_range(unsigned long min, unsigned long max)
{
if (min < 1000)
@@ -832,7 +832,7 @@
else
msleep(min / 1000);
}
-#endif
+#endif*/
#if (LINUX_VERSION_CODE < 0x02061D)
static inline ssize_t
@@ -1539,7 +1539,7 @@
}
#endif
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0))
+/*#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0))
static inline struct page *skb_frag_page(const skb_frag_t *frag)
{
return frag->page;
@@ -1553,7 +1553,7 @@
return dma_map_page(dev, skb_frag_page(frag),
frag->page_offset + offset, size, dir);
}
-#endif
+#endif*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)) || \
(defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 2))