From patchwork Tue Jun 26 21:19:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Hershberger X-Patchwork-Id: 935100 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ni.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41FfCH35f4z9rx7 for ; Wed, 27 Jun 2018 07:22:51 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 268B5C21DB6; Tue, 26 Jun 2018 21:21:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0E19EC21E16; Tue, 26 Jun 2018 21:19:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DF22FC21E16; Tue, 26 Jun 2018 21:19:47 +0000 (UTC) Received: from mx0b-00010702.pphosted.com (mx0a-00010702.pphosted.com [148.163.156.75]) by lists.denx.de (Postfix) with ESMTPS id DA044C21D56 for ; Tue, 26 Jun 2018 21:19:43 +0000 (UTC) Received: from pps.filterd (m0098781.ppops.net [127.0.0.1]) by mx0a-00010702.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5QLGLbl026158; Tue, 26 Jun 2018 16:19:34 -0500 Received: from ni.com (skprod3.natinst.com [130.164.80.24]) by mx0a-00010702.pphosted.com with ESMTP id 2jucuu2n0x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Jun 2018 16:19:34 -0500 Received: from us-aus-exhub2.ni.corp.natinst.com (us-aus-exhub2.ni.corp.natinst.com [130.164.68.32]) by us-aus-skprod3.natinst.com (8.16.0.22/8.16.0.22) with ESMTPS id w5QLJXPg005832 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 26 Jun 2018 16:19:33 -0500 Received: from us-aus-exch7.ni.corp.natinst.com (130.164.68.17) by us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Tue, 26 Jun 2018 16:19:33 -0500 Received: from us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) by us-aus-exch7.ni.corp.natinst.com (130.164.68.17) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Tue, 26 Jun 2018 16:19:33 -0500 Received: from osboxes.amer.corp.natinst.com (130.164.49.7) by us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) with Microsoft SMTP Server id 15.0.1156.6 via Frontend Transport; Tue, 26 Jun 2018 16:19:33 -0500 From: Joe Hershberger To: Date: Tue, 26 Jun 2018 16:19:21 -0500 Message-ID: <20180626211926.13172-1-joe.hershberger@ni.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-06-26_09:, , signatures=0 X-Proofpoint-Spam-Reason: safe Cc: Heinrich Schuchardt , Joe Hershberger Subject: [U-Boot] [PATCH 0/5] sandbox: net: Fix sandbox eth drivers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" It seems as sandbox moved to livetree these drivers were not updated. Heinrich suggested correctly that at this point we should be enumerating network interface names, not hard-coding eth0. Also, there were a few bugs that needed fixing. Joe Hershberger (5): sandbox: eth-raw: Correct valid socket test in send/recv net: Correct comment in Kconfig net: sandbox: Convert sandbox mock eth driver to livetree net: sandbox-raw: Convert raw eth driver to livetree net: sandbox-raw: Allow interface to be specified by index arch/sandbox/cpu/eth-raw-os.c | 32 ++++++++++++++++++++++++++++++-- arch/sandbox/dts/sandbox.dts | 2 +- arch/sandbox/include/asm/eth-raw-os.h | 4 +++- drivers/net/Kconfig | 2 +- drivers/net/sandbox-raw.c | 28 ++++++++++++++++++---------- drivers/net/sandbox.c | 15 +++++++++++---- 6 files changed, 64 insertions(+), 19 deletions(-)