summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorBjørn Mork2014-05-30 09:31:06 +0200
committerDavid S. Miller2014-06-03 01:01:30 +0200
commit289507d3364f96f4b8814726917d572f71350d87 (patch)
tree5e42e9c43b768c0d8a4792cb898bcb8e40d4d511 /mm/madvise.c
parentnet: cdc_ncm: inform usbnet when rx buffers are reduced (diff)
downloadkernel-qcow2-linux-289507d3364f96f4b8814726917d572f71350d87.tar.gz
kernel-qcow2-linux-289507d3364f96f4b8814726917d572f71350d87.tar.xz
kernel-qcow2-linux-289507d3364f96f4b8814726917d572f71350d87.zip
net: cdc_ncm: use sysfs for rx/tx aggregation tuning
Attach a driver specific sysfs group to the netdev, and use it for the rx/tx aggregation variables. The datagram aggregation defined by the CDC NCM specification is specific to this device class (including CDC MBIM). Using the ethtool interrupt coalesce API as an interface to the aggregation parameters redefined that API in a driver specific and confusing way. A sysfs group - makes it clear that this is a driver specific userspace API, and - allows us to export the real values instead of some translated version, and - lets us include more aggregation variables which were impossible to force into the ethtool API. Additionally, using sysfs allows tuning the driver on space constrained hosts where userspace tools like ethtool are undesired. Suggested-by: Peter Stuge <peter@stuge.se> Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions