From: Govindarajulu Varadarajan <_govind@gmx.com>
To: davem@davemloft.net, netdev@vger.kernel.org
Cc: ben@decadent.org.uk, stephen@networkplumber.org,
ssujith@cisco.com, benve@cisco.com,
Govindarajulu Varadarajan <_govind@gmx.com>
Subject: [PATCH net-next v3 0/3] enic: Add support for rx_copybreak
Date: Thu, 14 Aug 2014 14:59:17 +0530 [thread overview]
Message-ID: <1408008560-1067-1-git-send-email-_govind@gmx.com> (raw)
The following series implements rx_copybreak.
dma_map_single()/dma_unmap_single() is more expensive than alloc_skb & memcpy
for smaller packets. By doing this we can reuse the dma buff which is already
mapped. This is very useful when iommu is on. The default skb copybreak value
is 256.
When iommu is on, we can go much higher than 256. All the drivers that supports
rx_copybreak provides module parameter to change this value. Since module
parameter is the least preferred way for changing driver values, this series
adds ethtool support for setting rx_copybreak.
v3:
Add tunable namespace to ethtool. Use new ethtool cmd ETHTOOL_S/GTUNABLE to
set/get rx_copybreak from userspace.
v2:
Add new ethtool_cmd for DMA buffer parameters, instead of adding new members to
existing ethtool_ringparam.
Govindarajulu Varadarajan (3):
enic: implement rx_copybreak
ethtool: Add generic options for tunables
enic: Add tunable_ops support for rx_copybreak
drivers/net/ethernet/cisco/enic/enic.h | 1 +
drivers/net/ethernet/cisco/enic/enic_ethtool.c | 30 +++++++++++++++
drivers/net/ethernet/cisco/enic/enic_main.c | 50 +++++++++++++++++++++++--
include/linux/ethtool.h | 6 +++
include/uapi/linux/ethtool.h | 17 +++++++++
net/core/ethtool.c | 51 ++++++++++++++++++++++++++
6 files changed, 152 insertions(+), 3 deletions(-)
--
2.0.4
next reply other threads:[~2014-08-14 9:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 9:29 Govindarajulu Varadarajan [this message]
2014-08-14 9:29 ` [PATCH net-next v3 1/3] enic: implement rx_copybreak Govindarajulu Varadarajan
2014-08-14 9:29 ` [PATCH net-next v3 2/3] ethtool: Add generic options for tunables Govindarajulu Varadarajan
2014-08-21 23:18 ` David Miller
2014-08-22 23:26 ` Ben Hutchings
2014-08-26 21:33 ` Govindarajulu Varadarajan
2014-08-27 6:59 ` Ben Hutchings
2014-08-14 9:29 ` [PATCH net-next v3 3/3] enic: Add tunable_ops support for rx_copybreak Govindarajulu Varadarajan
2014-08-21 22:12 ` Michał Mirosław
2014-08-14 9:34 ` [PATCH net-next v3 0/3] enic: Add " David Laight
2014-08-15 20:21 ` Govindarajulu Varadarajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1408008560-1067-1-git-send-email-_govind@gmx.com \
--to=_govind@gmx.com \
--cc=ben@decadent.org.uk \
--cc=benve@cisco.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=ssujith@cisco.com \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).