diff options
author | Florian Fainelli | 2015-09-16 16:47:39 -0700 |
---|---|---|
committer | David S. Miller | 2015-09-17 22:17:14 -0700 |
commit | 2f9130709d2c19e2eef336bda0fb0c807cbc1f64 (patch) | |
tree | f83b6dc8d897dd55d7baae5d5c20aea6dcc856aa /drivers/soc/qcom/Kconfig | |
parent | 9110fe4a17743e5f416f7fbe01a2a83cffd807d6 (diff) |
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 'drivers/soc/qcom/Kconfig')
0 files changed, 0 insertions, 0 deletions