From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from compass.polito.it (compass.polito.it [130.192.55.110]) by dpdk.org (Postfix) with ESMTP id C07E12BF2 for ; Wed, 30 Mar 2016 10:22:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by compass.polito.it (Postfix) with ESMTP id 8BCEB10013E for ; Wed, 30 Mar 2016 10:22:00 +0200 (CEST) Authentication-Results: compass.polito.it (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=studenti.polito.it DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= studenti.polito.it; h=content-type:content-type:cc:to:from:from :subject:subject:message-id:date:date:received:mime-version :received:received:received; s=y2k10; t=1459326119; bh=Bxh/Ca+Sr yBuCAhaCT4357XKnR1LOY2NeMczciL0Z4M=; b=jsosR3debOltEEBjNnCmpmAvP vWGNqIsWYehX1SEl464SL7tk1aPY3Nlc+vQlNX91Al53eeqWaBYlDZBsEk1K78T2 Lc5aATdqo5M0ITZvFkt+VGbUkEVKWZYKCtdAcKHTuq+Op8Ptj7z+a+qRsPDVBLhv 48z0b4M35jKdTMp7rQ= X-Virus-Scanned: amavisd-new at studenti.polito.it X-Spam-Flag: NO X-Spam-Score: -5.861 X-Spam-Level: X-Spam-Status: No, score=-5.861 tagged_above=-100 required=3.5 tests=[ALL_TRUSTED=-5, AWL=0.638, BAYES_00=-1.5, HTML_MESSAGE=0.001] autolearn=ham Received: from compass.polito.it ([127.0.0.1]) by localhost (compass.polito.it [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LGhHTo-m8Hps for ; Wed, 30 Mar 2016 10:21:59 +0200 (CEST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: s203403@studenti.polito.it) by compass.polito.it (Postfix) with ESMTPSA id 9C2B8100132 for ; Wed, 30 Mar 2016 10:21:59 +0200 (CEST) Received: by mail-lb0-f169.google.com with SMTP id bc4so26640825lbc.2 for ; Wed, 30 Mar 2016 01:21:59 -0700 (PDT) X-Gm-Message-State: AD7BkJLegiudZg3c+B1IuV1fOnwXVpfBTtfqsdk/oHdOf9+5+FOkMEM7iYxxTJbzzy9ITfYiz9LRf7uPD3wrvg== MIME-Version: 1.0 X-Received: by 10.112.12.98 with SMTP id x2mr3187886lbb.76.1459326119082; Wed, 30 Mar 2016 01:21:59 -0700 (PDT) Received: by 10.25.0.198 with HTTP; Wed, 30 Mar 2016 01:21:59 -0700 (PDT) Date: Wed, 30 Mar 2016 10:21:59 +0200 X-Gmail-Original-Message-ID: Message-ID: From: =?UTF-8?Q?Mauricio_V=C3=A1squez?= To: dev@dpdk.org Cc: Sergio Gonzalez Monroy , Bruce Richardson , Anatoly Burakov Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Question about cd10c42eb5bc ("mem: fix ivshmem freeing") 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: Wed, 30 Mar 2016 08:22:00 -0000 Dear All, I was looking at that patch, I can understand its functionality but not its implementation.. Why to calculate idx?, Just doing "mz->ioremap_addr = mz->phys_addr" would not be sufficient? After all, the goal is to mark the memzone as used by ivshmem to forbid freeing it. Please corrected if I am missing something. Thank you, Mauricio Vasquez,