]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.drivers/bnx2x-Adding-restriction-on-sge_buf_size.patch
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / bnx2x-Adding-restriction-on-sge_buf_size.patch
diff --git a/src/patches/suse-2.6.27.31/patches.drivers/bnx2x-Adding-restriction-on-sge_buf_size.patch b/src/patches/suse-2.6.27.31/patches.drivers/bnx2x-Adding-restriction-on-sge_buf_size.patch
deleted file mode 100644 (file)
index 6eeb1e8..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-From 916c775ff297dc60219a4f0e5527ba6ab4a88ed4 Mon Sep 17 00:00:00 2001
-From: Eilon Greenstein <eilong@broadcom.com>
-Date: Mon, 9 Mar 2009 00:52:14 +0000
-Subject: [PATCH] bnx2x: Adding restriction on sge_buf_size
-References: bnc#481074
-
-sge_buff_size may not be more than 0xffff.
-
-Reported-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
-Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
-Tested-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
-Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Brandon Philips <bphilips@suse.de>
----
- drivers/net/bnx2x_main.c |    3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/drivers/net/bnx2x_main.c
-+++ b/drivers/net/bnx2x_main.c
-@@ -4521,7 +4521,8 @@ static void bnx2x_init_context(struct bn
-                               (USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_TPA |
-                                USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING);
-                       context->ustorm_st_context.common.sge_buff_size =
--                                      (u16)(BCM_PAGE_SIZE*PAGES_PER_SGE);
-+                              (u16)min((u32)SGE_PAGE_SIZE*PAGES_PER_SGE,
-+                                       (u32)0xffff);
-                       context->ustorm_st_context.common.sge_page_base_hi =
-                                               U64_HI(fp->rx_sge_mapping);
-                       context->ustorm_st_context.common.sge_page_base_lo =