aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r--drivers/net/ixgb/ixgb_main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c
index bd08e1992140..4e422c4cbe83 100644
--- a/drivers/net/ixgb/ixgb_main.c
+++ b/drivers/net/ixgb/ixgb_main.c
@@ -40,6 +40,12 @@ static char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver";
40const char ixgb_driver_version[] = DRV_VERSION; 40const char ixgb_driver_version[] = DRV_VERSION;
41static const char ixgb_copyright[] = "Copyright (c) 1999-2006 Intel Corporation."; 41static const char ixgb_copyright[] = "Copyright (c) 1999-2006 Intel Corporation.";
42 42
43#define IXGB_CB_LENGTH 256
44static unsigned int copybreak __read_mostly = IXGB_CB_LENGTH;
45module_param(copybreak, uint, 0644);
46MODULE_PARM_DESC(copybreak,
47 "Maximum size of packet that is copied to a new buffer on receive");
48
43/* ixgb_pci_tbl - PCI Device ID Table 49/* ixgb_pci_tbl - PCI Device ID Table
44 * 50 *
45 * Wildcard entries (PCI_ANY_ID) should come last 51 * Wildcard entries (PCI_ANY_ID) should come last
@@ -1976,8 +1982,7 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter)
1976 /* code added for copybreak, this should improve 1982 /* code added for copybreak, this should improve
1977 * performance for small packets with large amounts 1983 * performance for small packets with large amounts
1978 * of reassembly being done in the stack */ 1984 * of reassembly being done in the stack */
1979#define IXGB_CB_LENGTH 256 1985 if (length < copybreak) {
1980 if (length < IXGB_CB_LENGTH) {
1981 struct sk_buff *new_skb = 1986 struct sk_buff *new_skb =
1982 netdev_alloc_skb(netdev, length + NET_IP_ALIGN); 1987 netdev_alloc_skb(netdev, length + NET_IP_ALIGN);
1983 if (new_skb) { 1988 if (new_skb) {