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: 1155817 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46KYzG2kXjz9sML for ; Fri, 30 Aug 2019 19:27:22 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbfH3JZx (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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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(-)