]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net: dev_weight: TX/RX orthogonality
authorMatthias Tafelmeier <matthias.tafelmeier@gmx.net>
Thu, 29 Dec 2016 20:37:21 +0000 (21:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2016 20:38:35 +0000 (15:38 -0500)
commit3d48b53fb2ae37158e700ffef3f45461ff15c965
tree453c287c28359dfbee7671207a44a23286496aa7
parentafbb167415843ef23546f5bfaf2a06c86750c2f0
net: dev_weight: TX/RX orthogonality

Oftenly, introducing side effects on packet processing on the other half
of the stack by adjusting one of TX/RX via sysctl is not desirable.
There are cases of demand for asymmetric, orthogonal configurability.

This holds true especially for nodes where RPS for RFS usage on top is
configured and therefore use the 'old dev_weight'. This is quite a
common base configuration setup nowadays, even with NICs of superior processing
support (e.g. aRFS).

A good example use case are nodes acting as noSQL data bases with a
large number of tiny requests and rather fewer but large packets as responses.
It's affordable to have large budget and rx dev_weights for the
requests. But as a side effect having this large a number on TX
processed in one run can overwhelm drivers.

This patch therefore introduces an independent configurability via sysctl to
userland.

Signed-off-by: Matthias Tafelmeier <matthias.tafelmeier@gmx.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/sysctl/net.txt
include/linux/netdevice.h
net/core/dev.c
net/core/sysctl_net_core.c
net/sched/sch_generic.c