From owner-freebsd-net@freebsd.org Sun Nov 12 04:30:52 2017 Return-Path: Delivered-To: freebsd-net@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 76AC0E6810B for ; Sun, 12 Nov 2017 04:30:52 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-ot0-x233.google.com (mail-ot0-x233.google.com [IPv6:2607:f8b0:4003:c0f::233]) (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 38BCF7BAB6 for ; Sun, 12 Nov 2017 04:30:52 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-ot0-x233.google.com with SMTP id n74so11213692ota.8 for ; Sat, 11 Nov 2017 20:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=noPIjcHqDcKCNeu7LmTJGGMjc0sg29afbqtJelzDNho=; b=o1vruBp4kMoPdT/tnwQzMcOsC5nwBiI5ulVcOX74ti8jTBf+M/lLJQOIldddoo4NwI kk0dx4SOG+0JK886IHoTAFidEu1vvbDBCL3k0dirI/iS4H7umplg5Uk1+T0NaO7TdCTm x5mO92+J/JYZ7AWvqPV5dgIkHC5ng/niNuskfQcEXxLUuWBRM+fTspAaq23/8xnRb47b ODpj3tGe7Kn7RUAUQtQBJAX1ddNLEu1o3T1u9WDVZiQ+yPmPWj7zarPex/gJUxB+jGy5 gG/sKyfW5ro9rDISTwycRBqK+U8VXTt9yd3UmZOnLP1IsgDbiEc7mbdc56hhBIWnn69M Kt4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=noPIjcHqDcKCNeu7LmTJGGMjc0sg29afbqtJelzDNho=; b=mcsYiO60RQJJbSjXkgoZirx8PVM78+miRz14OJlW4uYl86vcm7gU6iE1A86rS++RZL JX03/rCDLZ1uF5kENUQvMsnIxrLfOmVVFndmHVmMp/xOc7pFWoreGkGNfFmpBeBAUrzx vz+WPif2KVThx5F1lP+LX/PI4bJd4D72jqCFwo9Nz69ULx1GTHkUi32MCo/aewRjWWal byBc4uBdc7wIFW7Xtia3tXnieOqNwHEmNPUrz/ArgqkXYYZ/FL7vF+A6iENZVZ17vh5i xsf2oPmEu2DLkNxFrZvxeT0C4sMbYpWvdDaFKLPnaBF1O8PNIoPFP+b51clDxSNIsCjn lImA== X-Gm-Message-State: AJaThX7SjX7dicQTgJ79wrFOGBm8jzcoubznYmXL1HDESTewzEltRx9H d2TqTBwpQ/y7qLJqpFX7Wn6wwsM1R/7vFT/QHDM= X-Google-Smtp-Source: AGs4zMYQJg4P9YilgSYIzdvtMFzOYE45YxdkCFTik9Ic6OADTUxRMrSB+UezVi4L2rFLSqRnWcHzGY4BH2M/xHGfg/0= X-Received: by 10.157.6.198 with SMTP id 64mr1957095otx.460.1510461051274; Sat, 11 Nov 2017 20:30:51 -0800 (PST) MIME-Version: 1.0 Sender: kmacybsd@gmail.com Received: by 10.157.31.89 with HTTP; Sat, 11 Nov 2017 20:30:50 -0800 (PST) In-Reply-To: References: <5A01ED27.60900@cox.net> From: "K. Macy" Date: Sat, 11 Nov 2017 20:30:50 -0800 X-Google-Sender-Auth: tcD0Da_M8eML32nBU4RR_WquUE8 Message-ID: Subject: Re: netmap scatter/gather? To: Vincenzo Maffione Cc: "Joseph H. Buehler" , "freebsd-net@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2017 04:30:52 -0000 On Tue, Nov 7, 2017 at 9:32 AM, Vincenzo Maffione wrote: > Hi, > In general netmap adapters (i.e. netmap ports) may support NS_MOREFRAG. > But in practice this is mainly supported on VALE ports. > So if you don't want to add the missing support by yourself you can simply > change the netmap buffer size by tuning the sysctl dev.netmap.buf_size, and > increase it to 9600. > When doing vxlan that allows me to avoid copies on encap, but I don't see any mechanism to avoid a (second) copy on decap where what I'd like to do is to indicate to VALE that the packet starts at a certain offset. Am I missing something? Thanks.