]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'rx_copybreak'
authorDavid S. Miller <davem@davemloft.net>
Fri, 5 Sep 2014 19:12:32 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Sep 2014 19:12:32 +0000 (12:12 -0700)
commit17448f5e20f8115ca9e68392410961fcd9f0e00d
tree5b3552c3f19957d3caaa32a86ccf91ba788e0900
parent9333da2894b81b274735a99039f81bcf6f0a2c14
parent4a6ed1c351385f179b884199af3eef13587867d7
Merge branch 'rx_copybreak'

Govindarajulu Varadarajan says:

====================
enic: Add support for rx_copybreak

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.

v4:
Validate tunable length in ethtool_get_tunable, not in driver implemented
function.

Loose tunable_ops array for each tunable type. Define one function and let the
driver use switch case for each type.

Use double underscore for data type in UAPI headers.
Use const qualifier where possible.

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

Signed-off-by: David S. Miller <davem@davemloft.net>