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 5E57FA00BE for ; Wed, 22 Apr 2020 06:22:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0EF841C12E; Wed, 22 Apr 2020 06:22:28 +0200 (CEST) Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by dpdk.org (Postfix) with ESMTP id E72D11C12B for ; Wed, 22 Apr 2020 06:22:26 +0200 (CEST) Received: by mail-oi1-f180.google.com with SMTP id q204so753274oia.13 for ; Tue, 21 Apr 2020 21:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgate.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Ps0ZCcDKRNnAsEHv2x84nXzbbvDSFfq5TM7QHp/x8jk=; b=Pe3Adzx+S5opKskLzU/Ba9fem70STyZoVJzqpu8ffvvpF5W7X5ecS2vDMxmU1sBEB7 GF58DPG7buW/LoBepTnQI5cMtWO+b+NfFlzTnYGwq2ISoCaCjNPJqy/Rmwh9/WI/XnzC 1W8NhtpxhmEHlSa185ISh9oxsl+kR+oSpLtg0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Ps0ZCcDKRNnAsEHv2x84nXzbbvDSFfq5TM7QHp/x8jk=; b=LPnmDtvW4dE5+tZYOGpkSW2uFHu0NFG9ptDmfXg9/jh83aduzxUeEI0tL+OtawnqYc nV7nWjWrYorSopWEmof2+MFBQR5JZH41ASZ8JVmCUdtycy+RRCsVIsh/fWVWS6FIObvP fjE2wRsjg2mHaVvjJQFGM7d3tMJLW4j3MKTdsZ7dp8Nb9frSTVkw2imuiDyb7yxvfZ/u mVAaGC/LsBrMmrtmmzHkRA5kghxOcLgPKo+d+z7oTefGz3XWO472fOmUjLFee93rhKK/ yNLMtsijuyn5yuE43LRrKp1XMsRwwpQswi2UqDOUYtjG7HU4Kk9iVO+k8JwNVgrkCOcc pVng== X-Gm-Message-State: AGi0PuaDYsn05NidN5a1+P+w6drhkr5n3qCrJ6+ossNnP3pHtWdWizd5 Nc50QOko62/5+rHgMBoVCNtWBg== X-Google-Smtp-Source: APiQypLGVLoWQqxcu+hRNWZSTrd5i/R5SYDy8jrnj4U56RITN/O0ELyWhKXAopEDthtxWGPmFQGclw== X-Received: by 2002:aca:4f4b:: with SMTP id d72mr5594290oib.73.1587529345925; Tue, 21 Apr 2020 21:22:25 -0700 (PDT) Received: from [172.21.0.25] (66-196-7-151.dyn.grandenetworks.net. [66.196.7.151]) by smtp.gmail.com with ESMTPSA id w6sm1217866ooa.6.2020.04.21.21.22.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2020 21:22:25 -0700 (PDT) From: Jim Thompson Message-Id: <23CFFBA0-8F12-4017-9933-500D847029D1@netgate.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Tue, 21 Apr 2020 23:22:19 -0500 In-Reply-To: <7103100c-ff28-2ff8-deef-37b9a1877ae6@gmail.com> Cc: users@dpdk.org To: Alireza Sanaee References: <7103100c-ff28-2ff8-deef-37b9a1877ae6@gmail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Capturing Pause Frames in DPDK Applications 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" > On Apr 21, 2020, at 10:50 PM, Alireza Sanaee = wrote: >=20 > Dear all, >=20 > I'm wondering that if there is any chances to pass pause frames = through a NIC and receive it in the DPDK application? Is there any ideas = to practically make this modification? >=20 > I have read that Pause Frames are being consumed at ASIC level so it = would not be possible to pass the frame to CPU. In that case, I'm just = thinking of creating an artificial pause frame on arrival of a real = Ethernet pause frame and push the artificial one to software, it might = be crazy though but still capturing arrival event of an Ethernet pause = frame remains a challenge. >=20 > In a DPDK less scenario, I'm thinking if a packet sniffer like = Wireshark can capture a pause frame, then it means NIC is sending pause = frames to higher layers I believe. Likewise in the DPDK scenario I = should be able to see the pause frames maybe in the PMD driver? >=20 > Thanks, > Alireza Alireza, What you seek is documented. https://doc.dpdk.org/dts/test_plans/link_flowctrl_test_plan.html = testpmd> set mac_ctrl_frame_fwd on Not all PMDs support this setting, though igb and i40e do.=