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 2C38FA0531; Mon, 27 Jan 2020 14:46:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 61BFA1BFE0; Mon, 27 Jan 2020 14:46:32 +0100 (CET) Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) by dpdk.org (Postfix) with ESMTP id 7F7C21BFDC for ; Mon, 27 Jan 2020 14:46:31 +0100 (CET) Received: by mail-vk1-f175.google.com with SMTP id w67so2644904vkf.1 for ; Mon, 27 Jan 2020 05:46:31 -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; bh=tscUpQqL11Aco8CxAbutLd5d1fgGZvAifRFFDSFPFrk=; b=oHn2ePEDS0Xva0HcwEEgm6MF8gkyQO7rUIKdNyqESghrogae8OYZG6+ZvXcE1cRe5U 2PJf83OqtqyUmOliwz2r998GketnYHj2wU7q0gSQvj9c2bZxE4pawLfdTGUYj3V/Z1qj j/gYAAeOD2/mmokOWrKVpDZyN33a5Q33FOhXwM6SwxHDtqTIDwAX5OdnfBBNVPJKuTIF 6OTl26rKT0xUzR7N6/Nq1K9gLFykq43uBHGAsPQp6dw0nKtBawCkLMIvN9ilmGnS54QY PAL9PtwVRFaNloIXcAV648ylD56upF41P9s496RfXMX6R3xkMf2nU8B/9iaiaYe8M3ZL Wk7A== 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; bh=tscUpQqL11Aco8CxAbutLd5d1fgGZvAifRFFDSFPFrk=; b=uPNVMv52A7iJEmtCcUbZR80eGrABiV52DIvlJBG/kVYWZyu3a+bc6JALgH3KrQLSqS YlzQDpZGzNSIfvcm+PLNUSshXPbTBojmJE+gsWSMLMIQqy9eowRcwRIZ4r8GB4QmE0EI nkA19+fRA+i1wb7O4W2nJCTPKk5um4eklO9H/35VCTCIjLwhjumSGRedzHpc0bI0JxSl dc73Gd0OngPwPntCT8azqbWLJXFhFwaql3R4ZuMWyc7H4jw5rLSttzTM4yRPVGn+mgBz /FvLC0Y5+UtNYIWY1BndmXqFZ026t3emOK2utGFEw/RyWtUqEgOp0m5QDnqsEguHe0nJ kxMw== X-Gm-Message-State: APjAAAXBr2991ECnBCaCsKZBuswwourAFjxoEs+ltNXoLMs+RS29g97Z hQbwRtN5D1SebVIWP9GDCNZsvksMv5xtgspyLUngZCQLPDe8rg== X-Google-Smtp-Source: APXvYqyezwqsdqImhu4RdQ7Cw9413iqsyp2KlNF7eTz6nOSvKwY4GPNcMpHBQIMwi8A2NHTNJlYmI6lNCNJOAIMH/Ms= X-Received: by 2002:ac5:cd39:: with SMTP id a25mr9787388vkm.50.1580132790384; Mon, 27 Jan 2020 05:46:30 -0800 (PST) MIME-Version: 1.0 From: nisarg joshi Date: Mon, 27 Jan 2020 19:16:18 +0530 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Guidance about how to carry out flow control at L2 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" 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