]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix adaptive interrupt coalescing
authorSathya Perla <sathya.perla@emulex.com>
Tue, 1 Oct 2013 10:30:00 +0000 (16:00 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2013 16:45:52 +0000 (12:45 -0400)
commitc5890a649bd52c385e9e12ca26d4896a6e0153ae
treea1119a741b44afc7e68ab02b320a306c2238df30
parentb5ba3b8dbaf570a36ea07ce5ea9b466501d6a727
be2net: fix adaptive interrupt coalescing

The current EQ delay calculation for AIC is based only on RX packet rate.
This fails to be effective when there's only TX and no RX.
This patch inclues:
- Calculating EQ-delay based on both RX and TX pps.
- Modifying EQ-delay of all EQs via one cmd, instead of issuing a separate
  cmd for each EQ.
- A new structure to store interrupt coalescing parameters, in a separate
  cache-line from the EQ-obj.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_ethtool.c
drivers/net/ethernet/emulex/benet/be_main.c