login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
21
RE: [PATCH v2 3/4] I/OAT: tcp_dma_copybreak default valuedependant onI/OAT version
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Sosnowski, Maciej
Subject:
RE: [PATCH v2 3/4] I/OAT: tcp_dma_copybreak default valuedependant onI/OAT version
Date: Monday, July 21, 2008 - 9:13 am
Williams, Dan J wrote:
quoted text
> On Fri, 2008-07-18 at 08:29 -0700, Sosnowski, Maciej wrote: >> I/OAT DMA performance tuning showed different optimal values >> of tcp_dma_copybreak for different I/OAT versions >> (4096 for 1.2 and 2048 for 2.0). >> This patch lets ioatdma driver set tcp_dma_copybreak value according >> to these results. >> >> Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com> > > Let's kill some ifdef's... how about the following instead? > > diff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c > index 171cad6..1c0dafc 100644 > --- a/drivers/dma/ioat_dma.c > +++ b/drivers/dma/ioat_dma.c > @@ -1330,6 +1330,8 @@ struct ioatdma_device *ioat_dma_probe(struct > pci_dev *pdev, if (err) > goto err_self_test; > > + ioat_set_tcp_copy_break(device); > + > dma_async_device_register(&device->common); > > return device; > diff --git a/drivers/dma/ioatdma.h b/drivers/dma/ioatdma.h > index f2c7fed..23e3196 100644 > --- a/drivers/dma/ioatdma.h > +++ b/drivers/dma/ioatdma.h > @@ -27,6 +27,7 @@ > #include <linux/dmapool.h> > #include <linux/cache.h> > #include <linux/pci_ids.h> > +#include <net/tcp.h> > > #define IOAT_DMA_VERSION "2.04" > > @@ -121,6 +122,20 @@ struct ioat_desc_sw { > struct dma_async_tx_descriptor async_tx; > }; > > +static inline void ioat_set_tcp_copy_break(struct ioatdma_device > *dev) +{ > + #ifdef CONFIG_NET_DMA > + switch (dev->version) { > + case IOAT_VER_1_2: > + sysctl_tcp_dma_copybreak = 4096; > + break; > + case IOAT_VER_2_0: > + sysctl_tcp_dma_copybreak = 2048; > + break; > + } > + #endif > +} > + > #if defined(CONFIG_INTEL_IOATDMA) || > defined(CONFIG_INTEL_IOATDMA_MODULE) struct ioatdma_device > *ioat_dma_probe(struct pci_dev
*pdev, void __iomem
quoted text
> *iobase); > diff --git a/net/core/user_dma.c b/net/core/user_dma.c > index 0ad1cd5..de76050 100644 > --- a/net/core/user_dma.c > +++ b/net/core/user_dma.c > @@ -34,6 +34,7 @@ > #define NET_DMA_DEFAULT_COPYBREAK 4096 > > int sysctl_tcp_dma_copybreak = NET_DMA_DEFAULT_COPYBREAK; > +EXPORT_SYMBOL(sysctl_tcp_dma_copybreak); > > /** > * dma_skb_copy_datagram_iovec - Copy a datagram to an iovec.
Yes, I'm fine with this version. Regards, Maciej --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH v2 0/4] I/OAT: watchdog/reset, tcp_dma_copybreak an ...
, Maciej Sosnowski
, (Fri Jul 18, 8:27 am)
[PATCH v2 1/4] I/OAT: Add watchdog/reset functionality to ...
, Maciej Sosnowski
, (Fri Jul 18, 8:27 am)
[PATCH v2 2/4] I/OAT: Increase sleep time in ioat_dma_self ...
, Maciej Sosnowski
, (Fri Jul 18, 8:28 am)
[PATCH v2 3/4] I/OAT: tcp_dma_copybreak default value depe ...
, Maciej Sosnowski
, (Fri Jul 18, 8:29 am)
[PATCH v2 4/4] I/OAT: I/OAT version 3.0 support
, Maciej Sosnowski
, (Fri Jul 18, 8:29 am)
Re: [PATCH v2 3/4] I/OAT: tcp_dma_copybreak default value ...
, Dan Williams
, (Fri Jul 18, 11:54 am)
RE: [PATCH v2 3/4] I/OAT: tcp_dma_copybreak default valued ...
, Sosnowski, Maciej
, (Mon Jul 21, 9:13 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate