From patchwork Fri Dec 4 19:59:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jorge Ramirez-Ortiz, Foundries" X-Patchwork-Id: 1411248 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=RnAtoQMi; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cnk8X5Njfz9s0b for ; Sat, 5 Dec 2020 07:00:18 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA982825BB; Fri, 4 Dec 2020 21:00:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.b="RnAtoQMi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 402D0825C3; Fri, 4 Dec 2020 21:00:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EB4F4825B5 for ; Fri, 4 Dec 2020 21:00:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jorge@foundries.io Received: by mail-wm1-x342.google.com with SMTP id c198so6507654wmd.0 for ; Fri, 04 Dec 2020 12:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id; bh=tLFgWakXtA1Q1X6lSf3jeC91b7F4VQcdXqbBkQEoxU8=; b=RnAtoQMi7IdN2bGLL7W70vQS4ocnFLXjTVBvqDv3CRrVz0Saorg5npIJmUKzC1SpBd lWluUW1gWht8zXtXhayL5r3RJHmuR+9rF3cJwyucjYqtEwRZyAqtQeOrFHQP2FypzLJT Pq3X1w9MVpTebcr2EbtulkLwyctYd/3DN9kZwqJYxr+EUbJSty0iL3UYDfmnSgZM639P iJFuAKcFJTM/6lfEgWwbhjK5vDWlqznd7JLzK3XlsSHnrF71bR+qQxiNOPry9CyHgCFl Qo2+W8NSz9CQi1k4NTTvJc+mF8XBs0t3kOhtipNaAcvzKu8AFG+uc/9skwPnOdvo4MJg GsJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tLFgWakXtA1Q1X6lSf3jeC91b7F4VQcdXqbBkQEoxU8=; b=YXLhhc9dR3jtT2qOMQBmC5U6ljsvRoECJjs1LhXwh5wUbVGADode6nm7WD91MWlX3j mpZhAfTsGk+cIEQ4t+u77bW92RDx/fL+hm8z92bLqxKvkKUSFK0k7zrmf6WkiCoiATTU I0MShd9Vn/DRBxcl/v0/1Sp+8Ii1ttnWQK7ktv4ld8tLwCP5eco8LXJxjCmdISQxPJ0w ZV67AuJ85csvxTn4+IpBoM6lz5ppOsH9KUzomsnmwGMSRsCTwwqNkKBFIiQteOSP77oR J4FOwOaLJ6eMixrxA6iBK+YhaNQq0uno2zCQdP2RhUBbTx63UANHtkVupOxhC6uyKmxA kDCA== X-Gm-Message-State: AOAM532+hu8LrGc0iG++YK+EUC8cg4LG5HIH6fSP69LTepH5jaBGb1fJ wSSZxnDg4fMF6y+AyUSi61BW4w== X-Google-Smtp-Source: ABdhPJxC49xXJ6xuudM2i0lZhN2uE+rSxCe8EVU3dZILKqlA5kJJ2BJ8yoywVdi8yJzl6n0ZhiGndA== X-Received: by 2002:a1c:2cc2:: with SMTP id s185mr5821719wms.111.1607112002518; Fri, 04 Dec 2020 12:00:02 -0800 (PST) Received: from localhost.localdomain (32.red-2-137-11.dynamicip.rima-tde.net. [2.137.11.32]) by smtp.gmail.com with ESMTPSA id s13sm4050372wmj.28.2020.12.04.12.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 12:00:01 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge@foundries.io, joe.hershberger@ni.com, rfried.dev@gmail.com Cc: u-boot@lists.denx.de Subject: [PATCH] net: eth_legacy - fix build CMD_PCAP Date: Fri, 4 Dec 2020 20:59:58 +0100 Message-Id: <20201204195958.29384-1-jorge@foundries.io> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Fix typo which would cause a build error. Fixes: 3eaac6307df ("net: introduce packet capture support") Signed-off-by: Jorge Ramirez-Ortiz --- net/eth_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth_legacy.c b/net/eth_legacy.c index 6e0c058761..6870afb505 100644 --- a/net/eth_legacy.c +++ b/net/eth_legacy.c @@ -365,7 +365,7 @@ int eth_send(void *packet, int length) ret = eth_current->send(eth_current, packet, length); #if defined(CONFIG_CMD_PCAP) if (ret >= 0) - pcap_post(packet, lengeth, true); + pcap_post(packet, length, true); #endif return ret; }