]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: use l4 hash if available
authorEric Dumazet <edumazet@google.com>
Tue, 15 Sep 2015 22:24:28 +0000 (15:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 04:01:05 +0000 (21:01 -0700)
commit1b0b57e5f155c39c07a6b82ad82eaa43d922b95d
treede196e18e8380347054a5a4dec871ccfd8cf4f57
parent3fb62e0de357ffa2a39e627f452ebe8819d032e1
bonding: use l4 hash if available

If skb carries a l4 hash, no need to perform a flow dissection.

Performance is slightly better :

lpaa5:~# ./super_netperf 200 -H lpaa6 -t TCP_RR -l 100
2.39012e+06
lpaa5:~# ./super_netperf 200 -H lpaa6 -t TCP_RR -l 100
2.39393e+06
lpaa5:~# ./super_netperf 200 -H lpaa6 -t TCP_RR -l 100
2.39988e+06

After patch :

lpaa5:~# ./super_netperf 200 -H lpaa6 -t TCP_RR -l 100
2.43579e+06
lpaa5:~# ./super_netperf 200 -H lpaa6 -t TCP_RR -l 100
2.44304e+06
lpaa5:~# ./super_netperf 200 -H lpaa6 -t TCP_RR -l 100
2.44312e+06

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tom Herbert <tom@herbertland.com>
Cc: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c