summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_dsmark.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2015-09-16 16:47:39 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-17 22:17:14 -0700
commit2f9130709d2c19e2eef336bda0fb0c807cbc1f64 (patch)
treef83b6dc8d897dd55d7baae5d5c20aea6dcc856aa /net/sched/sch_dsmark.c
parent9110fe4a17743e5f416f7fbe01a2a83cffd807d6 (diff)
downloadtalos-obmc-linux-2f9130709d2c19e2eef336bda0fb0c807cbc1f64.tar.gz
talos-obmc-linux-2f9130709d2c19e2eef336bda0fb0c807cbc1f64.zip
net: bcmgenet: Implement TX coalescing control knobs
Configuring the ethtool tx-frames property, which translates into N packets before a TX interrupt is the simplest configuration scheme because it requires no locking neither at the softare nor hardware level, and is completely indepedent from the link speed. Since ethtool does not allow per-tx queue coalescing parameters, we apply the same setting to any transmit queue. We can no longer enable the BDONE/PDONE interrupts as those would fire for each packet/buffer received, which would defeat the MBDONE interrupt purpose. The MBDONE interrupt is guaranteed to correspond to a PDONE/BDONE interrupt when the threshold is set to 1, but offers interrupt coalescing when the value is > 1. Since the HW is configured to generate an interrupt when the ring becomes emtpy, we have to deny any timeout/timer settings coming from user-space to indicate we can only generate an interrupt very <N> packets. While we are at it, fix the DMA_INTR_THRESHOLD_MASK value which was off by one bit (0xff vs. 0x1ff). Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_dsmark.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud