From patchwork Wed Jan 6 21:55:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Brandeburg X-Patchwork-Id: 12002361 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 988E1C433E6 for ; Wed, 6 Jan 2021 21:56:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 64CEE2333B for ; Wed, 6 Jan 2021 21:56:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726706AbhAFV4z (ORCPT ); Wed, 6 Jan 2021 16:56:55 -0500 Received: from mga07.intel.com ([134.134.136.100]:52550 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbhAFV4z (ORCPT ); Wed, 6 Jan 2021 16:56:55 -0500 IronPort-SDR: b1yTFxgOWCHjL9Sw4rl08DliLKEZdUlzdz2JsM4/JcxEiowyTCIUwnhTAt33FpWeZavLk5i03l xfXrg0fKWbsg== X-IronPort-AV: E=McAfee;i="6000,8403,9856"; a="241418415" X-IronPort-AV: E=Sophos;i="5.79,328,1602572400"; d="scan'208";a="241418415" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 13:55:59 -0800 IronPort-SDR: MkjkvqFNLTzefuxgE5OzvQaWvOA4DK1MvR2O8nQB8PzlzWsbCGZHq2S55FphjgURuqcqji6NX1 MAtU96ToGvWA== X-IronPort-AV: E=Sophos;i="5.79,328,1602572400"; d="scan'208";a="361734668" Received: from jbrandeb-saw1.jf.intel.com ([10.166.28.56]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 13:55:58 -0800 From: Jesse Brandeburg To: netdev@vger.kernel.org Cc: Jesse Brandeburg , intel-wired-lan@lists.osuosl.org Subject: [PATCH net-next v1 0/2] GRO drop accounting Date: Wed, 6 Jan 2021 13:55:37 -0800 Message-Id: <20210106215539.2103688-1-jesse.brandeburg@intel.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add some accounting for when the stack drops a packet that a driver tried to indicate with a gro* call. This helps users track where packets might have disappeared to and will show up in the netdevice stats that already exist. After that, remove the driver specific workaround that was added to do the same, just scoped too small. Jesse Brandeburg (2): net: core: count drops from GRO ice: remove GRO drop accounting drivers/net/ethernet/intel/ice/ice.h | 1 - drivers/net/ethernet/intel/ice/ice_ethtool.c | 1 - drivers/net/ethernet/intel/ice/ice_main.c | 4 +--- drivers/net/ethernet/intel/ice/ice_txrx.h | 1 - drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 2 -- net/core/dev.c | 2 ++ 6 files changed, 3 insertions(+), 8 deletions(-)