From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by dpdk.org (Postfix) with ESMTP id 0C2B22C59 for ; Tue, 29 Mar 2016 03:45:27 +0200 (CEST) Received: by mail-oi0-f52.google.com with SMTP id o62so2458961oig.1 for ; Mon, 28 Mar 2016 18:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=BZqNTPNu7Yarq8O7iqMakHO45UIZvAVvvrpnl88WNAk=; b=id2oaEK5y14HPtvVzYowYrhdYWdtguHYmm3aQeOh3MzQjOlVatM6BESAhkC0Ipv69S pdFcQOWqtgpOPog/bpQ21nTT+rHfcPvbp1K+e8bGoQSVSkeOWtYv6MGcukSwcL59WVwy 58lHzEgTTAYAyv8Nz9pebsVlSlvR339QiXy3xoSe5yBNlwTYJoHzn77/aSBbNcpL2dKj Zy6+6RCHFCHrNCt+ghr5p/6mDN861FDteZCWyBXwgTOA9C5HK2khnY3fFws2NzvppkIS q+EDrDILORvhduRR2ZP/zpLmB3JoSjPkIJliSAbyDtzFRJfs2FsCCLJ2midOAsUhSjat tXRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=BZqNTPNu7Yarq8O7iqMakHO45UIZvAVvvrpnl88WNAk=; b=Bq+oBAoPJT8ZZb3lQV1aZnKIIdr36vXtAEImwcFij+FJlabxdBQ5pq+tmEYAQT6PZ4 HMtA0/hKfWJ1fWjR1HPygAOOEoXVjkm3varBs06pfS/vmHP+mjKIguefhQ2pVs3jUGhD iJCDaAE8ZFdScRFEko813BHR4IW0eTwEVcQZm4KzD7hxNqWwFYIHkpsQwMiupKSIn2bO IfukJGbQrc1cgmAHbxi+JX6UoCUkuA4Hjdk5k/BeaaRjJJJPeybVqRzgvDInFrp0xDzK tHQgkrn0QFjosiBAM46vygXA4OojrCUj4U8W4YB6PSQmu67seB5jDuhf87ybTX8qhp/o KJlA== X-Gm-Message-State: AD7BkJJWT8O088H1ueoqkgBZLOpIBZNSC5kUqtLOyinqtIDCJXf/k8cr6iiklj+1OhJFeQiIldBl4XRb7s+FSQ== MIME-Version: 1.0 X-Received: by 10.157.62.138 with SMTP id b10mr15119608otc.104.1459215926461; Mon, 28 Mar 2016 18:45:26 -0700 (PDT) Received: by 10.182.18.103 with HTTP; Mon, 28 Mar 2016 18:45:26 -0700 (PDT) Date: Mon, 28 Mar 2016 18:45:26 -0700 Message-ID: From: Mohammad El-Shabani To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] librte_pmd_ixgbe implementation of ixgbe_dev_rx_queue_count 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: Tue, 29 Mar 2016 01:45:27 -0000 Hi, Looking into why it hurts performance, I see that ixgbe_dev_rx_queue_count is implemented a scan of elements of rx descriptors, which is very expensive. I am wondering why its implemented the way it is. Could it not just read the head location from the driver? Thanks! Mohammad El-Shabani