From owner-soc-status@FreeBSD.ORG Sun Jun 14 20:37:15 2015 Return-Path: Delivered-To: soc-status@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B258F73; Sun, 14 Jun 2015 20:37:15 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C580631B; Sun, 14 Jun 2015 20:37:14 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: by obbsn1 with SMTP id sn1so51953725obb.1; Sun, 14 Jun 2015 13:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=g8C6LJVKHqPhWDq1qL51mJkZYP37q56Dl/vSLqS2rjE=; b=LEXO70/KTCGb75M1ftZf37b26cTL1jEK1S1XtE9tM7neoedCnzoM2UStBVQL8OZmDj rfxcuTyWmkCVOfd88sCrQWCkQx0GZBnTFQurDpzLnGK4NkzKq7yBepOPoc1Y5DhqhiM/ fa+hAw/z6vw0Ovrk1SaTFS18S2p8CZAnmcOGNaF4SoPkUKak5AoaqrfDBo0H+pqHzn2r MmnLF+lsw8hp5l773HNPBLKWNzFC2X/XNuOE4BSqq3x20VDGEMvhJiUlbNPbr/tbUiaI J88RSzEN3mA2vINxGd+9afByCsi/IK70bcksY6Pt3ERerngSTPQuEVwLh6+7NqK/qDFg MWag== MIME-Version: 1.0 X-Received: by 10.60.60.70 with SMTP id f6mr20666752oer.8.1434314234121; Sun, 14 Jun 2015 13:37:14 -0700 (PDT) Received: by 10.76.84.37 with HTTP; Sun, 14 Jun 2015 13:37:14 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Jun 2015 23:37:14 +0300 Message-ID: Subject: Re: GSOC 2015 - NE2000 emulation in bhyve Status From: Alex Teaca To: soc-status@freebsd.org Cc: Gavin Atkinson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2015 20:37:15 -0000 Hi, At the moment I am able to configure an IP address on the network interface corresponding to the NE2000 NIC. When I ping to the host IP, the tcpdump catches both ARP Request (sent by the guest using the NE2000 card) and an ARP Reply sent by the host OS. So, there is implemented the transmission protocol. For reception, the packets are only read from the tap device when it is notified by the mevent mechanism. For mode details, see the commits. Thanks, Alex On Tue, Jun 2, 2015 at 7:45 PM, Alex Teaca wrote: > Hi, > > I've started the implementation of the NE2000 module. At the moment the ED > driver is able to probe the emulated device (RealTek 8029) and add it as a > network interface. > > Some of the features which are implemented: > - implement some logging support > - clone the /usr/src/sys/dev/ed/if_edreg.h register interface from the ed > driver into the bhyve tree sources > - implement the NE2000 registers support and an API to access the NIC > registers (get and set by offset) > - design and implement the Remote DMA protocol so the ED driver can store > and load from the NIC's RAM memory > > Thanks, > Alex > >