netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] enic: Add support for rx_copybreak
@ 2014-07-29 11:40 Govindarajulu Varadarajan
  2014-07-29 11:40 ` [PATCH net-next v2 1/3] enic: implement rx_copybreak Govindarajulu Varadarajan
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Govindarajulu Varadarajan @ 2014-07-29 11:40 UTC (permalink / raw)
  To: davem, ben, netdev; +Cc: ssujith, benve, Govindarajulu Varadarajan

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.

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 support for DMA buffer settings
  enic: add ethtool support set/show rx_copybreak

 drivers/net/ethernet/cisco/enic/enic.h         |  1 +
 drivers/net/ethernet/cisco/enic/enic_ethtool.c | 24 +++++++++++++
 drivers/net/ethernet/cisco/enic/enic_main.c    | 50 ++++++++++++++++++++++++--
 include/linux/ethtool.h                        |  7 ++++
 include/uapi/linux/ethtool.h                   | 16 +++++++++
 net/core/ethtool.c                             | 32 +++++++++++++++++
 6 files changed, 127 insertions(+), 3 deletions(-)

-- 
2.0.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-07 21:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-29 11:40 [PATCH net-next v2 0/3] enic: Add support for rx_copybreak Govindarajulu Varadarajan
2014-07-29 11:40 ` [PATCH net-next v2 1/3] enic: implement rx_copybreak Govindarajulu Varadarajan
2014-07-29 11:40 ` [PATCH net-next v2 2/3] ethtool: Add support for DMA buffer settings Govindarajulu Varadarajan
2014-07-31  0:53   ` David Miller
2014-07-31 22:03     ` Govindarajulu Varadarajan
2014-08-02 13:56     ` Ben Hutchings
2014-08-02 14:26       ` Stephen Hemminger
2014-08-02 15:06         ` Ben Hutchings
2014-08-07 21:56           ` Govindarajulu Varadarajan
2014-08-04 22:15       ` David Miller
2014-07-29 11:40 ` [PATCH net-next v2 3/3] enic: add ethtool support set/show rx_copybreak Govindarajulu Varadarajan

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).