From owner-soc-status@freebsd.org Wed Aug 5 21:29:18 2015 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC2D09B4DF0 for ; Wed, 5 Aug 2015 21:29:18 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (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 815FF1B8D; Wed, 5 Aug 2015 21:29:18 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: by oip136 with SMTP id 136so27482415oip.1; Wed, 05 Aug 2015 14:29:17 -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=dskRl+133xRgRbYWco2AiV/coZOoK9sJpb1w7n2H0lU=; b=PW84Ll5axoPpstjiXyO3ZAJINPbEuJ5jv7fk7kEy2l09TRFBUlixUsworhFhVHueRV WqIPPpVIgXQwANT793aYhEcWd8c/LcBJoGohRSZdtDzzU3Z05gURLKmZ3VmxyFSDvRYH ai57S15a4qs60lSFIlIp8bUN2DWm0QQWags43AnmBQ4JFuQuSJ8L60mh3Rs5yrbMoCQ9 56BsVb/mr5nyUCRdOjrAmdPQTIZvKiL0Svywc3ooT8yGqjo4LRqRR5P1AMHN8B7hEf// GmgOpuFQY7/ce8aveeldy8dONMhWQJhV26zRqBQoxIODgOzMArsGzRdpO8RYGLKcWHgF CALw== MIME-Version: 1.0 X-Received: by 10.202.193.2 with SMTP id r2mr3536098oif.1.1438810157569; Wed, 05 Aug 2015 14:29:17 -0700 (PDT) Received: by 10.76.84.37 with HTTP; Wed, 5 Aug 2015 14:29:17 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Aug 2015 00:29:17 +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: Wed, 05 Aug 2015 21:29:18 -0000 Hi, - handle the received multicast traffic - accept the frames in the Promiscuous mode for the destination addresses that do not match the station's address Thanks, Alex On Wed, Jul 29, 2015 at 7:08 PM, Alex Teaca wrote: > Hi, > > - I've added support for the read-only registers from the page0 > - handle the monitor mode of the NIC > - lock the reception flow with the .pe_barwrite and .pe_barwrite flows > > At the moment I am going to handle the multicast traffic and promiscuous > mode. > > Thanks, > Alex > > > On Sat, Jul 11, 2015 at 12:27 PM, Alex Teaca > wrote: > >> Hi, >> >> I've implemented the reception protocol of the NE2000 nic card. In order >> to test it, I send in both directions (from guest to host and from host to >> guest) big files (about 350M) >> and it works without any problems. >> >> At the moment, I want to implement a mechanism to lock the access on the >> shared resources between the tx and rx flows. >> >> Thanks, >> Alex >> >> >> >> On Sun, Jun 28, 2015 at 7:16 PM, Alex Teaca >> wrote: >> >>> Hi, >>> >>> From the last status report: >>> >>> implement 2 commits: >>> - parse the input string parameter and get the tap name and mac address >>> from it >>> - implement some logging and asserts related with the receive buffer ring >>> >>> Also, I start to think about the receive protocol which is the next step >>> of the implementation by reading the specification from the datasheet >>> and understanding the implementation of the ED driver regarding the way >>> it receives packets from the NE2000 memory. It is pretty clear >>> what we need to implement and after a short design I will be able to >>> implement. >>> >>> Thanks, >>> Alex >>> >>> >>> On Sun, Jun 14, 2015 at 11:37 PM, Alex Teaca >>> wrote: >>> >>>> 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 >>>>> >>>>> >>>> >>> >> >