Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3835692ybb; Mon, 6 Apr 2020 17:09:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKK5tUKrwy+2jtaq/3QYCA7Zll5uCaOJ0XVtY+89su++ZRXvMO/i+xwiTJCZCmZDnu5lTZY X-Received: by 2002:aca:ab4b:: with SMTP id u72mr1664320oie.26.1586218149394; Mon, 06 Apr 2020 17:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586218149; cv=none; d=google.com; s=arc-20160816; b=ankgq4gRFwpam6aduTj9X4tTFPjwe/51ZeQJegYVtJX08CKUTBjGOnERHUCZQjRWrk aKbOEactKzIh+55UFVom1HfT61WEXdt8nw5ykQ1mbO9o/ltnQ4tiXJS7u0BrhnoLo/uO 3VrMEVgSe0rivFTn9jwY1plhFRglv/YCtpsbgVO4hZlob68DoGfvh9SM4dzAJb+voGOl CSbPYD1n2Ax/njOIG5ktdJl5uMSfHk8upbOESMHIrNZmmz9q1vAvvG0NMkvQIP489xci 6TIssvP1FTBkloAqCeAXPlZREFZWoHdSZts2QvpRoaSEId0ooUEOTyDZ5pKOnI5RCNU+ 9Bqg== 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:date:subject:cc:to:from :dkim-signature; bh=5LtNRvcC9OXluIMdQ2P6GUyG1nVcWLYVJ6sxEbiUnjg=; b=NlkizyEWSasaZ8JOw9jhOTRrbbXlFYIQAd5GKfjy+v68xZ6o71P/sJmzCmGIJJp/LE 3DLOkzE2cyDrRKDj5pvMUb0uDyLVf2+I1oMyMKXHgDnMw6nQIsm3iQmxTEPNEm9YyLEK TUSPMFZTv11Wm9mH26EwPOGWcoId2iYcTqU1YgzzLIHAljDkeJ2Ze/SQS9zl3T5q9MBI PsouG09E1kGg4fkSJWRK5C9QiCpestINw5lExdw5EYolYFdplHhO0h9fIWoUlNJn8A1s i6kAvs1AeByf6+qD7/SocfZvjrhVblYyXTWlulkJjh9E2tNVhfv92xzuvQoiRqmFiMNe Ut0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fZmcGsKm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si466294otn.323.2020.04.06.17.08.56; Mon, 06 Apr 2020 17:09:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fZmcGsKm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728177AbgDGAIW (ORCPT + 99 others); Mon, 6 Apr 2020 20:08:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbgDGAB3 (ORCPT ); Mon, 6 Apr 2020 20:01:29 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 778D720857; Tue, 7 Apr 2020 00:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586217689; bh=iryEKzf2hO9H4jsbyGgbgdA/v/MMTMlVjJvsGOanEFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fZmcGsKmgHt2ufKslDk3hxQyfQQCUnk51Tqhp2GkYJqo+QyP/2n72WD3ABPp0zaUZ OtOknfa2OKNlEiEHpUqZNAkNe1+n/bxcB4XQQLl5Zxski8A9ySl1KxloyRt0HVdgHm QwxH/46WcM5djyJtD+uQawc4rqlGM8fqqkmNn9yM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Luo bin , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 24/35] hinic: fix wrong value of MIN_SKB_LEN Date: Mon, 6 Apr 2020 20:00:46 -0400 Message-Id: <20200407000058.16423-24-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200407000058.16423-1-sashal@kernel.org> References: <20200407000058.16423-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luo bin [ Upstream commit 7296695fc16dd1761dbba8b68a9181c71cef0633 ] the minimum value of skb len that hw supports is 32 rather than 17 Signed-off-by: Luo bin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/huawei/hinic/hinic_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_tx.c b/drivers/net/ethernet/huawei/hinic/hinic_tx.c index 375d81d03e866..365016450bdbe 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_tx.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_tx.c @@ -45,7 +45,7 @@ #define HW_CONS_IDX(sq) be16_to_cpu(*(u16 *)((sq)->hw_ci_addr)) -#define MIN_SKB_LEN 17 +#define MIN_SKB_LEN 32 #define MAX_PAYLOAD_OFFSET 221 #define TRANSPORT_OFFSET(l4_hdr, skb) ((u32)((l4_hdr) - (skb)->data)) -- 2.20.1