From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by dpdk.org (Postfix) with ESMTP id E7E07234 for ; Mon, 19 Oct 2015 18:43:06 +0200 (CEST) Received: by pabrc13 with SMTP id rc13so195759128pab.0 for ; Mon, 19 Oct 2015 09:43:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=3aMVT3SMKbtI7zPKYHi07ZyDrN6dVwliXBgpYG2e3b0=; b=f5Nre5WfGqUg59n1pnuRcQSI0ki0n0EhC8byMDfESbc8YR5XBnQcqhgBMNmuV767mc NIGK4tqL24SCwxFJwrMwdtT//XSCKp5qXP4NSRvI6Zr+ta0WLGYauvmmSz4WznMhfMlK H0B4z2kbc1CtLJT8ygRNe2YUxcAXWg5hA/s5ZC+IwHlHIHAF+lriji3x268C+10Mx3Jj R7Nc5mifkgeb3erki4M6GdMs14vAbOeLWwXklxUl3zwVTzwlNNnWq3/2Yl6zutwV903X jXDbwiQcBYfxrvyNr24snYMymwn/sXo5CzPxgF0OalSLVtlhDxl7BC62lDocE9PfgIUO lWFw== X-Gm-Message-State: ALoCoQkf7ykTt0ovfIyrQE5cS25uNPhi7dyNCIhPTr1LF5/novmgAQ3SJ4S7zx6bUrCnbjNnybn5 X-Received: by 10.68.192.99 with SMTP id hf3mr36101678pbc.66.1445272986189; Mon, 19 Oct 2015 09:43:06 -0700 (PDT) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id tn2sm10972804pac.0.2015.10.19.09.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 09:43:05 -0700 (PDT) Date: Mon, 19 Oct 2015 09:43:16 -0700 From: Stephen Hemminger To: "Xie, Huawei" Message-ID: <20151019094316.1fffd775@xeon-e3> In-Reply-To: References: <1445231772-17467-1-git-send-email-stephen@networkplumber.org> <1445231772-17467-5-git-send-email-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , "changchun.ouyang@intel.com" Subject: Re: [dpdk-dev] [PATCH 4/5] virtio: use any layout on transmit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 16:43:07 -0000 On Mon, 19 Oct 2015 16:28:30 +0000 "Xie, Huawei" wrote: > On 10/19/2015 1:16 PM, Stephen Hemminger wrote: > > Virtio supports a feature that allows sender to put transmit > > header prepended to data. It requires that the mbuf be writeable, correct > > alignment, and the feature has been negotiatied. If all this works out, > > then it will be the optimum way to transmit a single segment packet. > "When using legacy interfaces, transitional drivers which have not > negotiated VIRTIO_F_ANY_LAYOUT > MUST use a single descriptor for the struct virtio_net_hdr on both > transmit and receive, with the > network data in the following descriptors." The code checks for the any layout feature, what is the problem?