Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932172AbbFVRCF (ORCPT ); Mon, 22 Jun 2015 13:02:05 -0400 Received: from 2.236.17.93.rev.sfr.net ([93.17.236.2]:58306 "EHLO mailhub1.si.c-s.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752252AbbFVRBi (ORCPT ); Mon, 22 Jun 2015 13:01:38 -0400 Message-Id: From: Christophe Leroy Subject: [PATCH 0/2] powerpc32: optimisation of csum_partial_copy_generic() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , scottwood@freescale.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Joakim Tjernlund Date: Mon, 22 Jun 2015 19:01:05 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1064 Lines: 27 This patch optimises csum_partial_copy_generic() by making use of cache instructions (dcbt/dcbz) just like copy_tofrom_user() does On a TCP benchmark using socklib on the loopback interface on which checksum offload and scatter/gather have been deactivated, we get about 20% performance increase. Christophe Leroy (2): powerpc32: checksum_wrappers_64 becomes checksum_wrappers powerpc32: rewrite of csum_partial_copy_generic based of copy_tofrom_user arch/powerpc/include/asm/checksum.h | 9 - arch/powerpc/lib/Makefile | 3 +- arch/powerpc/lib/checksum_32.S | 320 +++++++++++++++++++++----------- arch/powerpc/lib/checksum_wrappers.c | 102 ++++++++++ arch/powerpc/lib/checksum_wrappers_64.c | 102 ---------- 5 files changed, 312 insertions(+), 224 deletions(-) create mode 100644 arch/powerpc/lib/checksum_wrappers.c delete mode 100644 arch/powerpc/lib/checksum_wrappers_64.c -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/