From owner-freebsd-current@FreeBSD.ORG Thu Nov 17 12:08:58 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A76181065673 for ; Thu, 17 Nov 2011 12:08:58 +0000 (UTC) (envelope-from landimatte@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3D1FF8FC1D for ; Thu, 17 Nov 2011 12:08:57 +0000 (UTC) Received: by faap15 with SMTP id p15so1869735faa.13 for ; Thu, 17 Nov 2011 04:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=ad6BIiuvflhwtjnbgFX1FD0Cb9bQXz2J8P6rnmjkmFM=; b=v89Nb7myRbgfSXQW/ytC9T9BmdFZYjxBc2Z9wRLALOzulzuExWI7lSjhl/XtOufTLV ZphQ1CbLIlCptuy9NXDlr3m5iEjDF+zTSPaxhCPJXU2mkkfd+P+RN0lzxedtF8jVv2m4 7akUM2VVXeKOR3HRSE61wOTh82O/EmQPSFF8A= Received: by 10.152.104.167 with SMTP id gf7mr23089709lab.46.1321529923223; Thu, 17 Nov 2011 03:38:43 -0800 (PST) MIME-Version: 1.0 Sender: landimatte@gmail.com Received: by 10.152.25.74 with HTTP; Thu, 17 Nov 2011 03:38:21 -0800 (PST) From: Matteo Landi Date: Thu, 17 Nov 2011 12:38:21 +0100 X-Google-Sender-Auth: -B-Yu3B_fUBWUF3nOltcjdqokI4 Message-ID: To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ixgbe and fast interrupts X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 12:08:58 -0000 Hi everybody, trying to measure the interrupt latency of a 10G Intel network adapter, I find out that the the used driver (ixgbe) can can be configured to work with both fast and standard interrupts. From my understanding of the BUS_SETUP_INTR(9) man page and sys/kern/kern_intr.c file, it seems that drivers in need of registering fast interrupts should call bus_setup_intr() specifying a filter function instead of a handler. My question is: why ixgbe_allocate_legacy() says it is allocating a fast interrupt (comments and error messages say so) but instead passes a handler instead of a filter to pci_setup_intr()? Is there anything I am not taking into account? Regards, Matteo -- http://www.matteolandi.net/