]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Optimize CQE_TX handling
authorSunil Goutham <sgoutham@cavium.com>
Tue, 2 May 2017 13:06:52 +0000 (18:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:41:21 +0000 (15:41 -0400)
commit85d92b4b24f68708f673633e53f7be900d3104a9
tree8f2c26a5ef9427483375de3f208357c3150f3601
parent57f7709d96e943c300263223f3b24ddbb96a50c2
net: thunderx: Optimize CQE_TX handling

Optimized CQE handling with below changes
- Feeing descriptors back to SQ in bulk i.e once per NAPI
  instance instead for every CQE_TX, this will reduce number
  of atomic updates to 'sq->free_cnt'.
- Checking errors in CQE_TX and CQE_RX before calling appropriate
  fn()s to update error stats i.e reduce branching.

Also removed debug messages in packet handling path which otherwise
causes issues if DEBUG is enabled.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c