projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e64d7d0
)
e1000: FIX: Don't limit descriptor size to 4kb for PCI-E adapters
author
Jesse Brandeburg
<jesse.brandeburg@intel.com>
Tue, 24 Oct 2006 21:46:04 +0000
(14:46 -0700)
committer
Auke Kok
<juke-jan.h.kok@intel.com>
Tue, 24 Oct 2006 21:46:04 +0000
(14:46 -0700)
82571 and newer chispets don't need to limit desc. length to 4kb and can
handle 8kb sizes.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
drivers/net/e1000/e1000_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/e1000/e1000_main.c
b/drivers/net/e1000/e1000_main.c
index 7362e1240178244fbf2892c5f51abf4caac0bbba..e75909ee6d852800520ca2357dd164e3afb4a34b 100644
(file)
--- a/
drivers/net/e1000/e1000_main.c
+++ b/
drivers/net/e1000/e1000_main.c
@@
-2992,6
+2992,11
@@
e1000_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
return NETDEV_TX_OK;
}
+ /* 82571 and newer doesn't need the workaround that limited descriptor
+ * length to 4kB */
+ if (adapter->hw.mac_type >= e1000_82571)
+ max_per_txd = 8192;
+
#ifdef NETIF_F_TSO
mss = skb_shinfo(skb)->gso_size;
/* The controller does a simple calculation to