From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ECA7D45588 for ; Thu, 4 Jul 2024 12:35:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E00AD42E9E; Thu, 4 Jul 2024 12:35:24 +0200 (CEST) Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by mails.dpdk.org (Postfix) with ESMTP id 630E14029E for ; Wed, 3 Jul 2024 14:36:19 +0200 (CEST) Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-e03a8955ae3so944400276.1 for ; Wed, 03 Jul 2024 05:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720010178; x=1720614978; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=/mCOD26Gq7NsnutIfeiwy1VcpTekGLfmTXImlG8BK4s=; b=Kn8ohxCd9ieO5cNCGGsnC2L1Ry9zuntsYCY18kbprtUbZl7Wg4FGGAQ4yxAmhiHsvP 2UBzzi/IsK3PHhgMRDNK+EwX9D17fnXq+EGpF/1rv86s7lEd/StbzwiS6/ar8aQ4LOPE QGjGj8WbcR4vh8SwCaKd5akAfB3Z6D4ysDxKOqNx7qSBQZ8iw6e6Gz6OnoIH6O7AbU7z nGMStYHJilXREkpHFD2lgks145Pxr6c1nOKeK1Bnyrk+ZkZKQb5YdXMqztCwVFunWOd6 zm+bd56wOJVAUCqQvi5+gjlU5v6aa2+l+NYG6RLlrmcZoMYrdExZ9AR6/OO3nSVelp/i fU8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720010178; x=1720614978; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/mCOD26Gq7NsnutIfeiwy1VcpTekGLfmTXImlG8BK4s=; b=WyZ4tR+qCD5z7yGPvdsyUyZh7AR3BWp/lNyjqcIWqzhhv3zHjKwuJ2Apyl1PvxWO+B e5Q82Bof2Esc/2pPrEorG1FlEnC/Oh8Vx0og+3fym5NN1eaW6jSGr0hPHOu99Aq7Nsn0 B+bX6bEPdt531fQeYDvDzIrBDGQP+Gavdtz+s7YplnPJLXkVwJaFnflcVhRwcenu1wtj /mIyovurCWF0vXF1zmmRAwes72nb8OamG6wz70YbYlxdR6OHDPhFtdtUP3KbXXCVQAVY 4s06SW67O6QRK8euH8CbyW+kizUl3676T9c75oQW2TuC3XcETLgOWXVIEWYctyiLhUTC RwXQ== X-Gm-Message-State: AOJu0Ywin0BRViQMe3L+dRwweq6FPJw1w1eUstds3cMqV9cpwWoa7BK+ lhUGtDRV/FFzYARi/8FI+Z6DJyPETGzjlf/bQVxuhqB3fUP/+QqwByzADfisbTj6Z7no72rCs3n c4xGdhxifkK9ZuHwfveuq6cnAwQGiuZNYptY= X-Google-Smtp-Source: AGHT+IFTWjvrX6sTpoFp2S/Q7aJuhrkIOu52Gcj/te7Ou9RUsCuJagagmPDyQc1m+Cg9b0cvfjR7M3iZ50cf3CdaGYQ= X-Received: by 2002:a25:b912:0:b0:dfd:cc57:e043 with SMTP id 3f1490d57ef6-e036eb01074mr12437271276.6.1720010178249; Wed, 03 Jul 2024 05:36:18 -0700 (PDT) MIME-Version: 1.0 From: Jiading Guo Date: Wed, 3 Jul 2024 20:36:06 +0800 Message-ID: Subject: Receive previous UDP packet even after relaunch To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Thu, 04 Jul 2024 12:35:23 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi all, I'm trying to run the Flow Filtering application[1] with DPDK 23.11.1 on Ubuntu 20.04 with Intel i210 NIC. Since i210 doesn't support IPv4 filtering, I removed the related code and made it print all received packets as a simple receiver. Then I noticed: - launch this receiver program on one machine - on another machine (connected back-to-back), a program sends UDP packets in a while loop - wait for several seconds, SIGINT the sender, then SIGINT receiver later - relaunch the receiver, the program print several previous UDP packets, even I'm not running the sender now I'm new to DPDK but I guess that I'm quitting receiver first, so when the NIC keeps receiving the packets and "marks" it ready, it has no chance for `rte_eth_rx_burst` when doing the exciting routine after SIGINT. However I'm expecting that after `rte_eth_dev_stop/close`, the previously marked packets should be cleared. What could go wrong here? Or should I clear it manually after launching? I tried igb_uio and vfio-pci, but with no luck. I'm using `iommu=off`. Best regards, Jiading Guo [1] https://doc.dpdk.org/guides-23.11/sample_app_ug/flow_filtering.html