OSDN Git Service

net: bcmgenet: Add support for adaptive RX coalescing
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 23 Mar 2018 01:19:33 +0000 (18:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 00:48:25 +0000 (20:48 -0400)
commit9f4ca05827a27ec73bf63a42732f1978b8a779af
tree379aace8132a395ec66f9fa0ef474ad4edd25dac
parentb6e0e875421ef6debfbe05d3aa99ac788d886074
net: bcmgenet: Add support for adaptive RX coalescing

Unlike the moder modern SYSTEMPORT hardware, we do not have a
configurable TDMA timeout, which limits us to implement adaptive RX
interrupt coalescing only. We have each of our RX rings implement a
bcmgenet_net_dim structure which holds an interrupt counter, number of
packets, bytes, and a container for a net_dim instance.

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