net: bcmgenet: Implement RX coalescing control knobs
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 16 Sep 2015 23:47:40 +0000 (16:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 05:17:14 +0000 (22:17 -0700)
commit4a29645bfe6c20f06f041109ca578a0b4156f29a
treebe7122175dd1d808e101a6232f0b3c9b784ea03a
parent2f9130709d2c19e2eef336bda0fb0c807cbc1f64
net: bcmgenet: Implement RX coalescing control knobs

Add support for the ethtool rx-frames coalescing parameter which allows
defining the number of RX interrupts per frames received. The RDMA
engine supports a configurable timeout with a resolution of
approximately 8.192 us.

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.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h