Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1152690ybh; Sun, 19 Jul 2020 10:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDlci+lxXuy7uePBZQbw/UA579aMKmbGWyXvhj/LHDgIYFdZvaaeUh/sjBVlcQp2o5qOSZ X-Received: by 2002:aa7:c504:: with SMTP id o4mr17807704edq.311.1595178436906; Sun, 19 Jul 2020 10:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595178436; cv=none; d=google.com; s=arc-20160816; b=F6xZA4AY6EmwVMNQXKL/0KwjC1kaXiN6itGyrfdcNSBaDS3EVGHrHtMMTjW7CMOWDb JnBd8MDwsfI/ZyUf6o3ofeWz+95coJBSJJD98XoS7NUTdp5f/iROqwMIejbObtVjzaMW m7s2BGuWTbpv2Q8Ovl6DhzjffemSGavWBwfhy6VVc1i8KYLaVM8KTWgSa2N1HW7QRjMI 5rHGz1mNHQ1BcsKge+eVWMTE+flFNt3GXEkqChyRDYac1TJ4hCe/6St2Y0MWr78LeVTr 3xORL/nNyUf4MMLuQn3ceYOsL9SpUXbLM3wGK8uTP8RVzrIVsA405/LPxi2ztzSjdr8o CTJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Rm+ZUNmz42i49+8HSleDh8syNULnEr9j572afF7Mzjs=; b=fRLj6hUPc/3Nhzz7jCcLKKF+a+zo8mL7YIjlh0b1wdf/4AIXTuJxMAZJiw1Q9OP8pK lQ3YFpBdNqAI3lXdDypZehtrwOctgbWgFvxOK2xso+0DJwg1WiBEk0N7vSCk6dH6XsCb EhxWIuzUPd2l5Y8yo3d4uLw2oX3LFAdbaHgIpaUIJZv+GFVi3HnOrEZd1g3WwJrOot1A RvvmyHfBhPTc7x4UubdMniReKfPPPttgEP1yO4NmySbedFh/XHJHg3U+hj/v168x/LMU zf+9M6X58t+HohiXTNy0XHGGku390/kZ4LLzWpc/KJDtOzsVFHlc1pHmLlA5HmBQAT0L UQ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=c1bkVNtu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si8792171ejc.96.2020.07.19.10.06.54; Sun, 19 Jul 2020 10:07:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=c1bkVNtu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726438AbgGSRFe (ORCPT + 99 others); Sun, 19 Jul 2020 13:05:34 -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-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.