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 92AFA4622E for ; Sat, 15 Feb 2025 16:55:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EE12400D7; Sat, 15 Feb 2025 16:55:58 +0100 (CET) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) by mails.dpdk.org (Postfix) with ESMTP id 5E4F240041 for ; Sat, 15 Feb 2025 16:55:57 +0100 (CET) Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-724d1724657so2298579a34.0 for ; Sat, 15 Feb 2025 07:55:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739634956; x=1740239756; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=B5XXg046VDhkuk5tu/2BqbhCmNcIJAu7BOCQCdY++uY=; b=YHSrrZngvki5qMAFyQEHjmPUHHUfC5ANVEBtdBJfyLXuUYBX2vvvBXQCU/wBd5Fica p2Ovt8QWqWLWokenZxjp+e828Hjwexr1HrqdTrN5l9XRjmQOx/wyopm206ixYetfobAg nD3xQTkDheUpr+GBr3bzcbzv2K7yh8lV4CDTbBecaw2k03vIAgkmQIkw6myqUV1ddNGb uSQjR1v3rJwux0JI5WCa4C0Y/Ga+sbx4OYCoebCUtYMSC6bKZ8zS0fpihRxCTsSnQ5mR WJcse7RZcBAdSggH/yM+bqSPE2ZXEKax9ML9739GE/XW2mYBRB+vECeQRH6DiYicAZt2 Tlrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739634956; x=1740239756; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B5XXg046VDhkuk5tu/2BqbhCmNcIJAu7BOCQCdY++uY=; b=fS3UooVaqSw/m8eNvZh47e2qyCkBHpzNAH24Dl1KkVyKTS7by4FojkmWsAKRnqrzi4 IicWMZpb7kxl1K2d+oDjPNHA3yDanE/F30fv5V3ELv/BS2nqk54PEBXp5zVmAc6gmhHL 1Ft9qTqf2KuK9qskIQ97q8wBWnY1yJAeStUrisKn2YW78ITLcCy25r6tCBl6Zx5nEmPz XEbJd2gJFqSTBQ9dzojfN8fmlShpYlyAPrm9CvQzq+dPfV+88ZiVU1j2ybxaATm9wg5/ 30KvwkPByg5bxvHa2EDDOmvtuug1SnD0EUTAxqYdS325BwRt56xFt2/Sz1rcYe8Ls6nC uCxw== X-Gm-Message-State: AOJu0Yyoef9PdoCkicOQrUpxd/tqACGx6bsr/HbIaD6oCUnitmzu+8hz pJiZme1AC5ww1Phya+vsYhZJTLzeHGE06O0KRYFNI925Zq9UuKM+O5h2pS4gESdxD0lVXUOwwtD zPBLSw//N2VDEVBo//R+gO9ZoJQ0jxTA7 X-Gm-Gg: ASbGncsw9kQIT4eLS+RfUMy5DPP0MHWsZsN9WoGJ2e3eOkt3vVIiTW/r5e4inSC8/LJ sgjulTevNMlhr8S17bU5W+4nTYGj4PMy+2Kd9cMFGD3AfNbiDMPUa0MdRPshE7dR7PJt8Cw8= X-Google-Smtp-Source: AGHT+IH6IUkk7VwWgoZbUlWXv9tWzd8zjUQfhvXfr5K51WsPyQq2G525Kg2GPZIM0JeM3xJ99MdQma80x+LuDR/SXhs= X-Received: by 2002:a05:6808:1b07:b0:3eb:64a8:837c with SMTP id 5614622812f47-3f3d90d993amr7446517b6e.6.1739634956108; Sat, 15 Feb 2025 07:55:56 -0800 (PST) MIME-Version: 1.0 References: <20250213142613.23d52f6b@hermes.local> In-Reply-To: <20250213142613.23d52f6b@hermes.local> From: Alan Beadle Date: Sat, 15 Feb 2025 10:55:45 -0500 X-Gm-Features: AWEUYZno8GNvUirYPBuzbZ6YvWFdjrGDmfVGIgkROBkUEE6ALxhoFc9fw6EujRA Message-ID: Subject: Re: Questions about interrupts To: Stephen Hemminger Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 > After enabling interrupts, the application should do one more call to rx_burst > which will see if there any packets that raced in. > If it does get some packets, chances are you want to disable interrupts > and go back to polling mode. As I'm sure you are aware, polling one more time would not change the likelihood that additional packets arrive and disarm the interrupt before the thread suspends. A packet could still arrive between that polling round and the call to rte_epoll_wait(). Is there really no way to atomically arm the interrupt and suspend, guaranteeing that my thread will never suspend if packets have arrived prior to suspending?