From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no 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 EB5E9C433E2 for ; Sun, 19 Jul 2020 17:05:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CE01B207DD for ; Sun, 19 Jul 2020 17:05:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20150623.gappssmtp.com header.i=@networkplumber-org.20150623.gappssmtp.com header.b="c1bkVNtu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726464AbgGSRFf (ORCPT ); Sun, 19 Jul 2020 13:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbgGSRFd (ORCPT ); Sun, 19 Jul 2020 13:05:33 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4728AC0619D2 for ; Sun, 19 Jul 2020 10:05:33 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id gc9so8978078pjb.2 for ; Sun, 19 Jul 2020 10:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Rm+ZUNmz42i49+8HSleDh8syNULnEr9j572afF7Mzjs=; b=c1bkVNtufUQB0LzCaDll0bv4MjFg0PvcgSuzyEv+5TBypThJ9lum4OyWA680pIheuv UfITsozvyM+VMZHLcUzZJMOz/L7+eF0yd5iuo00A7UnHJuBYnmYcMVvIhHiILcYgiCxW mBKhOpL2TylDctbQhl8AWgy9irky3vMLVJjC9BGMgpPox1UNQRvq0Q35WyNbF/yTEc6S to0a3S+WgW9OwiwnEf5gn6yhUnToHyNpV6Er7CRfbwpO42faOCB2ZgWhhrvwrR+7V7lu QOkhZ2ofXtiK/Kf+pmnq973HQMj2djwoX0G7e3qsonDKYnjt97x6uww4IOLkqglCxHbg p5KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Rm+ZUNmz42i49+8HSleDh8syNULnEr9j572afF7Mzjs=; b=a5tvJklb0lkrAf5ZpY1gvvWDI34u8ZbkxczqCNOJcXVJBVxb2ibKXjR10CJpLJLjL/ 0PlAeL33Dxj6g1wn5e7rDtL+QXU9LioYOOtG/eGECLNM/7kVSIBY5HAq9I+tiEuM7Bnc wlj6j3+LWnfHt/VAERMMdplz5/OP7rgm7BeWiEgSOh3SbmiX76rSEMkzn7LIiFwRnmGS bbIkuOR5LImKIb+DQKv/65c5PCGUa6tNC1fyypqmoVWjab4X9eKVRGIGr3VxM+tzqXBU cL29NR0fYwxm23CtMAGBtVZ5jlgl2ZZi9ou71csAeRwGPgrWKfr7hfk8M3cIoiDxzH/b slbQ== X-Gm-Message-State: AOAM530qRnVHIhe77piw0qjsc7PTetWP+FdqNJeMkb2vGS2UeYx7tUSa 4szc/1n6QcDh2o6rIxHS0Deucw== X-Google-Smtp-Source: ABdhPJwuULdEXFD36AtFRB/oIPgxUFVcjKoHqbzCbXhGMUrFfqwxUWb2GXc98khAIUzH9T8stRYhWQ== X-Received: by 2002:a17:90a:2749:: with SMTP id o67mr19839181pje.183.1595178332191; Sun, 19 Jul 2020 10:05:32 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t20sm14300845pfc.158.2020.07.19.10.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 10:05:31 -0700 (PDT) Date: Sun, 19 Jul 2020 10:05:22 -0700 From: Stephen Hemminger To: Bixuan Cui Cc: , , , , , , , Subject: Re: [PATCH] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX Message-ID: <20200719100522.220a6f5a@hermes.lan> In-Reply-To: <20200716173247.78912-1-cuibixuan@huawei.com> References: <20200716173247.78912-1-cuibixuan@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jul 2020 17:32:47 +0000 Bixuan Cui wrote: > Fix the warning: [-Werror=-Wframe-larger-than=] > > drivers/net/ethernet/neterion/vxge/vxge-main.c: > In function'VXGE_COMPLETE_VPATH_TX.isra.37': > drivers/net/ethernet/neterion/vxge/vxge-main.c:119:1: > warning: the frame size of 1056 bytes is larger than 1024 bytes > > Signed-off-by: Bixuan Cui Dropping the NR_SKB_COMPLETED to 16 won't have much impact on performance, and shrink the size. Doing 16 skb's at a time instead of 128 probably costs less than one allocation. Especially since it is unlikely that the device completed that many transmits at once.