Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1401848ybh; Sun, 19 Jul 2020 19:01:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY++PFXHaJvlX/VG/tDAqp+PnKUEltL1RpFyRPhPWraZ2EZrW6RUy9EGw0sg7Ze7KNZZWb X-Received: by 2002:a17:906:6dda:: with SMTP id j26mr19339654ejt.336.1595210492599; Sun, 19 Jul 2020 19:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595210492; cv=none; d=google.com; s=arc-20160816; b=LESqSfbgedt30QEd0cRWayOIZY2NMODg9Ej0OXkKFu8AnNW0qV3kI+5kXs8Z+x0Ws1 uEzZwwL+O7tO3R6Ayc/d8DR+s47/2OG5Ew3duV+woYYRce/7SNlYOyAV6V1V4oThzpq4 IXv52UNzYzK/plsgYEq6dvC2QA8i+1CBUotyUn4GOQ2ohBvUXJPn9qMT+4kAqmOgKONy zKYijwdzvx8TwVKLICynvYP4qs1dnQDfg1lBBl/uHm8cILuCHEdV1VEmeUQXXJFtkZBu ReYJpa+C6yWSbLBaqvkHXFNh/cVUBhPDG146Oam+4Er02D1thvw5chcmzBPjch4P5YRo odyw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=fmB/LkNz2RbJX7dX03TcXmxB+icuffwr1YDeRLp2K8c=; b=004eQ5dvBkXRx9ki8EC5E+YSzV1zX3iIFR18ouE2C/3ifJz1FUfycNLj0P7cFPOxmD aYIjfz4ewEUkCOVCV7AsLEU4X5+uIZ3cti5xaIbyZS/UlDcYn7SpKTPtlKFD9I/7FkcS vQ+aqDJhERY5jCm4kNYq3hmzuRzPft+vFj9YNn2feW5j45f/LuIxcDihUrGf6tILJf67 CUaCPIKbMYHpOyLUfpYe5zeuxcfcPI7ogsPf6zGKtB+NEFwXsr1yyiV3J5H9tbDd//mo AIWsg/Mq1ouX1OsWG7UkdtpNWcrE804efXRP7DeJLpH26qThIiOZ9Qq22SArdU3NC8ys gIiw== ARC-Authentication-Results: i=1; mx.google.com; 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 e23si9451132edy.264.2020.07.19.19.01.09; Sun, 19 Jul 2020 19:01:32 -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; 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 S1727095AbgGTB6t (ORCPT + 99 others); Sun, 19 Jul 2020 21:58:49 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43938 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726225AbgGTB6t (ORCPT ); Sun, 19 Jul 2020 21:58:49 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E4B2874390DD2BBF0128; Mon, 20 Jul 2020 09:58:46 +0800 (CST) Received: from [127.0.0.1] (10.174.179.238) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Jul 2020 09:58:40 +0800 Subject: [PATCH v2] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX To: Stephen Hemminger CC: , , , , , , , References: <20200716173247.78912-1-cuibixuan@huawei.com> <20200719100522.220a6f5a@hermes.lan> From: Bixuan Cui Message-ID: <866b4a34-cd4e-0120-904f-13669257a765@huawei.com> Date: Mon, 20 Jul 2020 09:58:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200719100522.220a6f5a@hermes.lan> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Dropping the NR_SKB_COMPLETED to 16 is appropriate that won't have much impact on performance and functionality. Signed-off-by: Bixuan Cui Signed-off-by: Stephen Hemminger --- v2: Dropping the NR_SKB_COMPLETED to 16. drivers/net/ethernet/neterion/vxge/vxge-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index b0faa737b817..f905d0fe7d54 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c @@ -98,7 +98,7 @@ static inline void VXGE_COMPLETE_VPATH_TX(struct vxge_fifo *fifo) { struct sk_buff **skb_ptr = NULL; struct sk_buff **temp; -#define NR_SKB_COMPLETED 128 +#define NR_SKB_COMPLETED 16 struct sk_buff *completed[NR_SKB_COMPLETED]; int more; -- 2.17.1 .