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 C8606A0C4E; Tue, 12 Oct 2021 20:46:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8AD49410E5; Tue, 12 Oct 2021 20:46:57 +0200 (CEST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mails.dpdk.org (Postfix) with ESMTP id 3CA66410E1 for ; Tue, 12 Oct 2021 20:46:56 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id x27so1006317lfu.5 for ; Tue, 12 Oct 2021 11:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OlJIEmq5PoZS5Hyo81Sm9V8/Du/myA2azAB+vkKmN34=; b=HgOaGIDqMmCHNultjWLACrZU6moupIILGv3mJSsjx3CZlLA8DL79dzQ4Ke5UoKFhxQ SGrfQ2W0MWx4EIxSK8QyZIhGyHl+s6ycYMaEkHX8KHmGKT+0WVQwR18bOoQxK0yxt8c+ 4zO3v2UDC18bpbFJGSLUQAHXLQ9IcRiBEQeh+qvbaiErxhRcD3/L+6T53r4SNRaViNLz fI+wrFMLZo8I1JFohY3KDQlO9SaUHRGS8b2gsPSvmxm3qE3cknEVOoO0aCwbacdDl1Ru tATbF0gYDZiX33FncbAMcO9u5mJIzDIcvirqt6gHoPFZdOZgP2mpOy2iS3fglG8QMwhj 6LpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OlJIEmq5PoZS5Hyo81Sm9V8/Du/myA2azAB+vkKmN34=; b=63q8gSdTp3eehlh1GqtUVpoQ83kDeIwsSjKCN5LaWkzvxvI1JoaYWBLM5oK/TH2A+x 28sZLv5CuKoPFVvPOo1aOXe4/COViOjPEJdTY6wJlyGXwsDmFlyI9p5FyWLpaRJo4J4d BU7bL0dBPq65phL38LS470WMQOwwp+Avl17K4FiIch8saXMdDXX9coDN64XoBWEwPV2U x12fbO94Ua8OU9mCJGW3NwQHhhwDBaCZ46kbT632xJj8eWZ64qQt4fpwuk9pZC8VjwJ9 Ut4TUHEtyM78OlZp3qpUgY+MgEJ7mGIUmvfAW8tPvOarpH6as35Z13FDSu5122vF5GBf 4XtQ== X-Gm-Message-State: AOAM533dNio6JibD/1/NqFK7tWrXe+OJHhBRiNWYRkRBqq3nGVsxpqfH h1rryVQhsITHu7oXs8Dyr/2y8EUGKXiNzwJ4ts4= X-Google-Smtp-Source: ABdhPJzDc0w0pMxwS40/ve6fsl7zVIuE3zgG9nGKDLeWYvh9NqcShO+23VgiuZOLZaUJMPpPsEVcXCdjE29AbA+eCE4= X-Received: by 2002:a05:651c:1aa:: with SMTP id c10mr18982592ljn.222.1634064415736; Tue, 12 Oct 2021 11:46:55 -0700 (PDT) MIME-Version: 1.0 References: <20211012011107.431188-1-dmitry.kozliuk@gmail.com> In-Reply-To: <20211012011107.431188-1-dmitry.kozliuk@gmail.com> From: William Tu Date: Tue, 12 Oct 2021 11:46:19 -0700 Message-ID: To: Dmitry Kozlyuk Cc: dpdk-dev , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam , Ranjit Menon Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [kmods PATCH] windows/netuio: add interrupt support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" On Mon, Oct 11, 2021 at 6:11 PM Dmitry Kozlyuk wrote: > > Add IOCTL for interrupt event delivery to user space. > > * IOCTL_NETUIO_INTR_CONTROL: > Enable/disable the delivery of interrupt events. > This is a software switch to ignore received interrupts. > Programming the HW to stop issuing interrupts is up to the user. > > * IOCTL_NETUIO_INTR_QUERY: > Wait for an interrupt event on the specified vector. > More than one outstanding request may be issued for the same vector. > This can be used to balance the interrupt servicing if the requests > are issued using distinct handles waited by different threads. > If N identical requests are issued using the same handle, > one request will be completed each time the interrupt is triggered. > > MSI-X support is advertised for the driver, but the implementation > works with any type of interrupts assigned by the kernel. > > Signed-off-by: Dmitry Kozlyuk > --- Hi Dmitry, Is there a corresponding userspace code so I can give it a try? s.t like sending IOCTL_NETUIO_INTR_CONTROL to enable a device's interrupt, and blocked at IOCTL_NETUIO_INTR_QUERY for incoming request in the intr_queue. Thanks William