From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2C21FA0352 for ; Thu, 16 Jan 2020 06:00:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 836DF1BF85; Thu, 16 Jan 2020 06:00:35 +0100 (CET) Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) by dpdk.org (Postfix) with ESMTP id 3D7C71BF82 for ; Thu, 16 Jan 2020 06:00:34 +0100 (CET) Received: by mail-vs1-f46.google.com with SMTP id b79so11896504vsd.9 for ; Wed, 15 Jan 2020 21:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=JWYeffqIQHHQ6KBeQ/oYAjEKrO6cT3ZZ8OUjIaqh7ww=; b=qx274JSs/HWiyV7cyouaTqMXeHFMjYrQoAGOC9LSGgbpj1mVAAP7zqj4d964vfxVFf oG+7TqlW2ofWqIyXEsbTQoED6kTxc2r8GOoNhucy4YQpFXeFKAdRThTVTzVgQEak2V7X 9pQWEdWJx4XCAKkMZ4rwamO59eylQ1RJy/R/gVQqKpeq3n0UIUbVY2C5Z51MzArfy11F nBi1RT/7hJ4K6xGE6Qxq6ZdckgpDM0eKt4J8tf07wyKHp6lQID77s0b/T25AkGROQTNc BtGIO2OhGZGZ50KZlC3va5EevNJ2L9uNHuNuI2g2k7TTCUpATYb2MSFybvOVR1bbIHtb vIWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=JWYeffqIQHHQ6KBeQ/oYAjEKrO6cT3ZZ8OUjIaqh7ww=; b=YROcz4tbHOO4dVt0yCFcIDCzpdcZbfn+amZW1BIZXt3MgROnwgNMCfKQf6ZgOFcHmN ItCGSGUS4A09jYO00lm2urBQXoarSGMDkflnFznZGxPn4DG6746yD76lu0AKedI6mOPi YNA3eFj5iSibAODKRLTg7nhIVd/wuR68udlLi4DdY8pRZ0P8fRUnvrK47MN0L4GM44Ws Ojg6BW/MyQW7CrpWsYPZm17A8X5VEmz1DLLS92V8p890hWqwJ+0HVSDrjC+Rb9/mzi/H juKrOyDVooslw3BScTefkPVfatGMttkuiEOYVvydjWMBCyYI48HL5dc17UPYL0m2Z5aO C9fg== X-Gm-Message-State: APjAAAXkGgAIvPsQ+B6+OrOFry2NN49tmaw66I/iW8iJ8R6YDzmz3EWf mNPUYksvFU7OrFyvM6SOm6BNoLBsjHPc3wV13SmxvI/B3R8I1A== X-Google-Smtp-Source: APXvYqxy0kEMvbXz9qNjUIwGwL9VuMYTJrJPFoKudYogXVNHuH/7GnQHV3if/F3JPO6W4Iozp85pTt/+dhibDBSFjiY= X-Received: by 2002:a67:d49e:: with SMTP id g30mr381856vsj.217.1579150833363; Wed, 15 Jan 2020 21:00:33 -0800 (PST) MIME-Version: 1.0 From: nisarg joshi Date: Thu, 16 Jan 2020 10:30:21 +0530 Message-ID: To: users@dpdk.org Cc: Yash Agarwal , Shweta Iyer Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Guidance about how to carry out flow control at L2 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hello community, I am working on a project in ns-3(network simulator) where we have a NetDevice implemented called "DpdkNetDevice" which emulates a net device using dpdk. The traffic control module/layer having the qdisc is a part of ns-3 and the transmit ring is a part of the dpdk environment. Both the queues are not in sync and we want to implement flow control between these 2 queues. We have a mechanism where we can signal the tc qdisc to stop and start, but for that, we require to know the empty space in the transmit ring. Can you please help us out with the correct API we should be using? Or is there some mechanism that dpdk has implemented for signaling the upper layers from the transmit ring? We have come across a function called rte_eth_tx_descriptor_status using which we are planning to check the status of the tail to judge if there is empty space. Can you guys help us in any way regarding this? Thank you Regards