From patchwork Fri Aug 30 09:25:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bogendoerfer X-Patchwork-Id: 11123609 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B8B3514F7 for ; Fri, 30 Aug 2019 09:25:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DD8D21726 for ; Fri, 30 Aug 2019 09:25:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727635AbfH3JZx (ORCPT ); Fri, 30 Aug 2019 05:25:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:41694 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726480AbfH3JZx (ORCPT ); Fri, 30 Aug 2019 05:25:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B8A66AD85; Fri, 30 Aug 2019 09:25:51 +0000 (UTC) From: Thomas Bogendoerfer To: Ralf Baechle , Paul Burton , James Hogan , "David S. Miller" , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 net-next 00/15] ioc3-eth improvements Date: Fri, 30 Aug 2019 11:25:23 +0200 Message-Id: <20190830092539.24550-1-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.13.7 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org In my patch series for splitting out the serial code from ioc3-eth by using a MFD device there was one big patch for ioc3-eth.c, which wasn't really usefull for reviews. This series contains the ioc3-eth changes splitted in smaller steps and few more cleanups. Only the conversion to MFD will be done later in a different series. Changes in v3: - no need to check skb == NULL before passing it to dev_kfree_skb_any - free memory allocated with get_page(s) with free_page(s) - allocate rx ring with just GFP_KERNEL - add required alignment for rings in comments Changes in v2: - use net_err_ratelimited for printing various ioc3 errors - added missing clearing of rx buf valid flags into ioc3_alloc_rings - use __func__ for printing out of memory messages Thomas Bogendoerfer (15): MIPS: SGI-IP27: remove ioc3 ethernet init MIPS: SGI-IP27: restructure ioc3 register access net: sgi: ioc3-eth: remove checkpatch errors/warning net: sgi: ioc3-eth: use defines for constants dealing with desc rings net: sgi: ioc3-eth: allocate space for desc rings only once net: sgi: ioc3-eth: get rid of ioc3_clean_rx_ring() net: sgi: ioc3-eth: separate tx and rx ring handling net: sgi: ioc3-eth: introduce chip start function net: sgi: ioc3-eth: split ring cleaning/freeing and allocation net: sgi: ioc3-eth: refactor rx buffer allocation net: sgi: ioc3-eth: use dma-direct for dma allocations net: sgi: ioc3-eth: use csum_fold net: sgi: ioc3-eth: Fix IPG settings net: sgi: ioc3-eth: protect emcr in all cases net: sgi: ioc3-eth: no need to stop queue set_multicast_list arch/mips/include/asm/sn/ioc3.h | 357 +++++------- arch/mips/sgi-ip27/ip27-console.c | 5 +- arch/mips/sgi-ip27/ip27-init.c | 13 - drivers/net/ethernet/sgi/ioc3-eth.c | 1038 +++++++++++++++++------------------ 4 files changed, 665 insertions(+), 748 deletions(-)