From patchwork Thu Oct 1 10:11:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 79411 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 68071A04B5; Thu, 1 Oct 2020 12:12:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CC0031DA75; Thu, 1 Oct 2020 12:12:09 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id C45651DA71 for ; Thu, 1 Oct 2020 12:12:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601547125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u+kDr8vs2TBrVJFSxNUWJJZsgVIYMgkOSbTpEGQyIyY=; b=exBBrE6v2s22elqre3JoDatIYA+Qft7tPPU32cO5UQ4jYxsxVeKjBBOP+6US8eTJFgekQC w7NhOas9hHSwzmpX4pPMvQuC0mDcH24cB8CLkSPm1Vvk5m0sR0s4fh0i6MIYD/bh9oUCtZ Tqf15xFXzKkEUi5GtECGPmErK5Nfefg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-508-r0B9OYT9M06us81eMatbLQ-1; Thu, 01 Oct 2020 06:12:03 -0400 X-MC-Unique: r0B9OYT9M06us81eMatbLQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6C7051868423; Thu, 1 Oct 2020 10:12:02 +0000 (UTC) Received: from localhost.localdomain (unknown [10.36.110.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9807C60DA0; Thu, 1 Oct 2020 10:11:57 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, yong.liu@intel.com Cc: Maxime Coquelin Date: Thu, 1 Oct 2020 12:11:53 +0200 Message-Id: <20201001101155.206237-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH 0/2] Fix packed ring header len X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" First patch is fixing packed ring header len. Issue was reported by Marvin. Second patch is a (very) light optimization, to make used directly of the static hdr len value in packed-ring only functions. Maxime Coquelin (2): vhost: fix Virtio-net header len with packed ring vhost: use fixed Virtio-net header len packed ring lib/librte_vhost/vhost_user.c | 4 +++- lib/librte_vhost/virtio_net.c | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-)