From owner-freebsd-net@FreeBSD.ORG Sat Aug 24 01:11:29 2013 Return-Path: Delivered-To: freebsd-net@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 ESMTP id 9E91BFF1 for ; Sat, 24 Aug 2013 01:11:29 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 092FF20DA for ; Sat, 24 Aug 2013 01:11:28 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id r11so52365lbi.18 for ; Fri, 23 Aug 2013 18:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=QcTMdUz8d66QVpR1HakHqT4sugAVEMVxhAEHnDwQjI8=; b=n/UQZmlTTDp7QNOvYHUALPLsqDqEkKE7iJyejgyio3NZll97Gd+BqWehdqESuHT9mX nsexTduy7onnPBShv0CEqcAhZ868gQOqZQ+U99iWCAkAvWCy/kagNGYec350aUr4Pb1y IvLwMIeaHZ/TKRqN5j3mnfMA1G3tSA2XGVUt/zeb6l7KAxmktSyC96CIZsAgVGARKjgg 6HVeU3lQoBojUGH5qwP0wUbCFC0rWFSL8PKiugiOtN1MdGuEl29J9fAwT8VPvsAAvzPW CN5dahuWBLmCPii8XxO8ENv3o8lnTKFEbzrw/xMz5lMHHVQZp1UBB+MQi/A4HZaENmtA Wc4g== MIME-Version: 1.0 X-Received: by 10.152.8.12 with SMTP id n12mr1835778laa.10.1377306686850; Fri, 23 Aug 2013 18:11:26 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.200.165 with HTTP; Fri, 23 Aug 2013 18:11:26 -0700 (PDT) In-Reply-To: References: Date: Sat, 24 Aug 2013 03:11:26 +0200 X-Google-Sender-Auth: 5MB4nYzd0QzM8DZDnu9cdReQ74w Message-ID: Subject: Re: Netmap ixgbe stripping Vlan tags From: Luigi Rizzo To: Harika Tandra Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 01:11:29 -0000 responding to the first email in the thread: netmap by design does not modify the setting of the card (vlan, hwcsum, tso/lro, promisc, ...). The main practical reasons behind this choice are that i) in many cases both settings make sense when in netmap mode, ii) we can use existing OS tools/ioctl to modify the settings without having to replicate them within the netmap code. vlan tag insertion/removal is probably the one feature which should be always disabled in netmap mode. For others, the case is not so clear. As an example, having tso and hwcsum enabled is useful to postpone those expensive ops to the very last moment; the upcoming version of netmap supports scatter-gather I/O, and when used to interconnect virtual machines through the VALE switch you don't even need to do the segmentation or checksumming. cheers luigi On Fri, Aug 23, 2013 at 12:36 AM, Harika Tandra wrote: > Hi all, > > I am running Netmap with "intel 10G 82598EB" card in promiscuous mode. > While capturing packets via Netmap the driver is stripping off Vlan tags. > I tested my setup, I am able to see Vlan tags when the same card is in > promiscuous > mode without Netmap. > > This maybe due to the netmap related changes to the device driver code. > But I don't know much about drivers. I would appreciate any help or pointer > regarding this. > > Thanks, > Htandra. > > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------