]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipip_sit_gro'
authorDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 04:29:50 +0000 (21:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 04:29:50 +0000 (21:29 -0700)
commite2e837608bf364302bf7658184bf163724176598
tree3c82e4fea84e7665f8dcde5598a252855b244ebb
parent0b7197a3fd77bf533f84075d891217a8ace3bfe7
parentd5c8410aea30d0c81d7c3713f71b61eb754a939c
Merge branch 'ipip_sit_gro'

Tom Herbert says:

====================
net: enable GRO for IPIP and SIT

This patch sets populates the IPIP and SIT offload structures with
gro_receive and gro_complete functions. This enables use of GRO
for these. Also, fixed a problem in IPv6 where we were not properly
initializing flush_id.

Peformance results are below. Note that these tests were done on bnx2x
which doesn't provide RX checksum offload of IPIP or SIT (i.e. does
not give CHEKCSUM_COMPLETE). Also, we don't get 4-tuple hash for RSS
only 2-tuple in this case so all the packets between two hosts are
winding up on the same queue. Net result is the interrupting CPU is
the bottleneck in GRO (checksumming every packet there).

Testing:

netperf TCP_STREAM between two hosts using bnx2x.

* Before fix

IPIP
  1 connection
    6.53% CPU utilization
    6544.71 Mbps
  20 connections
    13.79% CPU utilization
    9284.54 Mbps

SIT
  1 connection
    6.68% CPU utilization
    5653.36 Mbps
  20 connections
    18.88% CPU utilization
    9154.61 Mbps

* After fix

IPIP
  1 connection
    5.73% CPU utilization
    9279.53 Mbps
  20 connections
    7.14% CPU utilization
    7279.35 Mbps

SIT
  1 connection
    2.95% CPU utilization
    9143.36 Mbps
  20 connections
    7.09% CPU utilization
    6255.3 Mbps
====================

Signed-off-by: David S. Miller <davem@davemloft.net>