From owner-freebsd-virtualization@FreeBSD.ORG Mon Aug 25 18:34:31 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2766984C; Mon, 25 Aug 2014 18:34:31 +0000 (UTC) Received: from mail-vc0-x22f.google.com (mail-vc0-x22f.google.com [IPv6:2607:f8b0:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C91743C65; Mon, 25 Aug 2014 18:34:30 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id ik5so15466082vcb.20 for ; Mon, 25 Aug 2014 11:34:29 -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=XMnltQ5ZXmAo/9ee3al5wZJn5znOYR+SuPUq1WpB0ow=; b=XAu4wadggJ6+NU3oQM6Ry5IJXQQpbza3JnGy6INNOp3bZD0UTNeJiXhJiqy8htUCcj 1TQBBmySuurfotSfhfQmwBR2c/g3uzf3JNEqs29ZvwoltjQ1ejWr6SexfHKCaBUPdzaN c8uKaAFV5Rj/NLI4TjaTDvFp5QSrc0yo5ztsxlxqj+bYg2wdnTZGX45F6ax0bB2SuChE V9FPX7lsf5Iw5UrnScTItmqAXEFMMYWnJ0VMoMzNyba/SRnjcZaPKNUtg+0qLOByLPtr eqlUbxSRduSoJ8O/Y1vzfgHP5X9WCPUWp0cAKpTEqWIXA46MbTx14UPo9WXvm+6ZLph4 jBHg== MIME-Version: 1.0 X-Received: by 10.220.97.138 with SMTP id l10mr8337585vcn.25.1408991669733; Mon, 25 Aug 2014 11:34:29 -0700 (PDT) Received: by 10.221.46.133 with HTTP; Mon, 25 Aug 2014 11:34:29 -0700 (PDT) In-Reply-To: <53FB716E.3050600@freebsd.org> References: <53FB716E.3050600@freebsd.org> Date: Mon, 25 Aug 2014 20:34:29 +0200 Message-ID: Subject: Re: Packets from host -> virt with broken ip checksum. From: Nikolay Denev To: Allan Jude Content-Type: text/plain; charset=UTF-8 Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2014 18:34:31 -0000 On Mon, Aug 25, 2014 at 7:25 PM, Allan Jude wrote: > On 2014-08-25 05:32, Nikolay Denev wrote: >> On Mon, Aug 25, 2014 at 11:01 AM, Nikolay Denev wrote: >>> I've started playing around with Bhyve and I've noticed that I can't >>> talk from the host to the virt and vice versa. >>> At the same time the virt can talk to the bridged subnet. >>> >>> My setup is pretty simple, FreeBSD 10-STABLE (about two week old >>> build), with two bce(4) interfaces in lagg0 interface. >>> Then I have bridge0 and the virt's tap0 interface joined in the bridge >>> with lagg0. >>> IP address is on lagg0. >>> >>> When I try to ping the virt from the host, tcpdump on vtnet0 shows >>> incoming icmp echo requests, >>> but no response. tcpdump shows bad checksums, netstat -s shows "bad >>> header checksums" incrementing. >>> Packes from the virt to the host seem ok, as I can try to ping from >>> the virt, and I see the icmp echo req, and the reply coming back, but >>> the reply is broken in this case so ping does not succeed. >>> >>> >>> --Nikolay >> >> So removing bridge/lagg out of the equation and configuring IP on tap0 >> on the host and >> another IP from the same subnet ot vtnet0 on the virt it works. >> >> --Nikolay >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" >> > > You might try just disabling hardware checksum offload (ifconfig bce0 > -hwcsum) (on both adapters) and see if that solves the problem too > > -- > Allan Jude > It's actually bge(4), and disabling hardware tx checksums (ifconfig bge[0-1] -txcsum) fixes this. --Nikolay