From patchwork Fri Aug 10 06:12:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 143885 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2956385ljj; Thu, 9 Aug 2018 23:13:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzOU15bi/PY8qx3m+cvLJ1qlVNEbkn4Ko7ge0UIZefZnWsPiz48szUgqacha74yCLQyG3+w X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr4804264plu.211.1533881582070; Thu, 09 Aug 2018 23:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533881582; cv=none; d=google.com; s=arc-20160816; b=DBFDtmZYamrifcnMG3EKBeDuDQ7H9zaTGSrzGJH0OsmZkR2SNQeVnfrKB+zmuD6jMf YDCvCwJAPoYA3KFX69G9pj8qZapmZVLMAen++x8xzPI1gjdWbSBAlMMZ+o+MvNsw9Rhm XVVhy8kwrw7PZnD9ufuQhF1Z5gDJyAhToyfQGTbsYeAPXFotmyRPa3+hMANnrXkwN+pL VdH7mFMioQcB0BXP2Y4E3ZsUxeCIv4edl+gsOj6paTw1Mr3wVvOZ5LuuRdU/5DSgwBk3 1ajyZReRE+jUd9Va1xG+gJpNFy2eUMUIHQb52t2kgpFE18ZlygTdjMybEQ9Ioj6pRrp6 WOYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=EipCfNEeL5lr3RTgB/XxtqcgV0Fn6us/FJFWqTcOra0=; b=cY2PIiG7YicLhcf6yvTxMGfB0QZilBxAF+oZC7wRwanKRcP7JngfXGN9Xqi0eXpfL/ 0XHgB8I+2T9/c0L/X9svBLSgbp8WB2jDEJKgKS2ttzeeBX3CQd2dFy8S6xyWOfsP6mya BDtorxe4QViuP2FHmCzAShUyIL73mXIykBiZ4BobuXTM06015+rhBpEKbiGblHR/0hdN /8+Use5BAphE9WrdVLe+p2YyFUMJjCSOhCxZWvL6FZ9tQi/7uhRHl9juB5nH9vlideMR yzg34VrSWNht3ypI5fEl1Tsc2zWZb7TBxTjM/WuAkty54TlD4b7fICFHkZkXVVpCSt3x wMFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XYyL9eYg; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t67-v6si8176535pfd.364.2018.08.09.23.13.01; Thu, 09 Aug 2018 23:13:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XYyL9eYg; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbeHJIlW (ORCPT + 10 others); Fri, 10 Aug 2018 04:41:22 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54748 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbeHJIlV (ORCPT ); Fri, 10 Aug 2018 04:41:21 -0400 Received: by mail-wm0-f65.google.com with SMTP id c14-v6so620297wmb.4 for ; Thu, 09 Aug 2018 23:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=EipCfNEeL5lr3RTgB/XxtqcgV0Fn6us/FJFWqTcOra0=; b=XYyL9eYgVcab0RASoj2kuQ/slxk5U++82sp2lBkQu1AcxWl5yY72HvRxMg/l2OPCEj CciZOvPwcpnJJtir3G+Vo/uU66eLd6x5l9c0aAIIywasPnF4zywgj6MrErA/e1AeDdcw GBYI6Mak1dD3Om7GlJHG90tKzPfhIZ951BuQg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EipCfNEeL5lr3RTgB/XxtqcgV0Fn6us/FJFWqTcOra0=; b=C9wB5GNj2IraUWjx9/O5Ddzbev5P+2DuVp/mL0j82rgfWuxe25luVSP9BiTC1GrZB8 8ttHlEySu7kq2drclh1VQHy/yt9adc9VfQuzD9sbnlyMoRiLaeN+EDp2JlxwFUfYZIrd ZRgxRLLVqffJLbdPMjjB1XsStG1PFxSkBm9k2Xojr/071BHrFlNg5wpqvrZU5iuSDSoK QOHoWUcW7qWUmUYTeFGN7mWfKCVpTW3eY4CNDm/FJnh3P1w6FD/AQiGYmOLIXJj/eXDd aILhjLNG/thFS9Sr29Qo56F4tCWeOdCXRY7m5L03mHsbupByU+fuOjQrvtinvOhe6ULo 8yMA== X-Gm-Message-State: AOUpUlGXdVDaM4bleBGZblbvA8tF3RlujmT1s4SvC9QrjJDcnIw+FLuY eVC0MBX2LRxsoonPXDLA9HqcA6533vk= X-Received: by 2002:a1c:19c2:: with SMTP id 185-v6mr577321wmz.79.1533881577804; Thu, 09 Aug 2018 23:12:57 -0700 (PDT) Received: from localhost.localdomain ([2a02:587:4605:8300:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id i1-v6sm6182483wrq.69.2018.08.09.23.12.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Aug 2018 23:12:57 -0700 (PDT) From: Ilias Apalodimas To: netdev@vger.kernel.org, jaswinder.singh@linaro.org Cc: ard.biesheuvel@linaro.org, masami.hiramatsu@linaro.org, arnd@arndb.de, Ilias Apalodimas Subject: [net-next, PATCH 0/2 v2] netsec driver improvements Date: Fri, 10 Aug 2018 09:12:37 +0300 Message-Id: <1533881559-18589-1-git-send-email-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patchset introduces some improvements on socionext netsec driver. - patch 1/2, avoids unneeded MMIO reads on the Rx path - patch 2/2, is adjusting the numbers of descriptors used Changes since v1: - Move dma_rmb() to protect descriptor accesses until the device has updated the NETSEC_RX_PKT_OWN_FIELD bit Ilias Apalodimas (2): net: socionext: Use descriptor info instead of MMIO reads on Rx net: socionext: Increase descriptors to 256 drivers/net/ethernet/socionext/netsec.c | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) -- 2.7.4