Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 15:40:36 +0530
From:      shreyank amartya <shreyankfbsd@gmail.com>
To:        freebsd-drivers@freebsd.org
Cc:        freebsd-hackers@freebsd.org, mmacy@mattmacy.io
Subject:   iflib
Message-ID:  <CAD9jf8CD=qKCS%2BEYQe7Eh7PmMT=L65myZ-zNMrnRA9MQnxwA5A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm working on writing a device driver for xgbe using iflib.

In the iflib interrupt allocation routine: iflib_irq_alloc_generic
(sys/net/iflib.c), if the interrupt type is specified as IFLIB_INTR_ADMIN
the variable tqrid is set to -1. Based on tqrid check there is a call to
taskgroup_attach, but the function would not reach the condition check (if
(tqrid != -1) if the type is IFLIB_INTR_ADMIN, which makes me think this
might be an error.

Can anyone please clarify if this behavior is intentional or this could be
an error.

Thanks
Shreyank Amartya



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD9jf8CD=qKCS%2BEYQe7Eh7PmMT=L65myZ-zNMrnRA9MQnxwA5A>