From owner-freebsd-bugs@FreeBSD.ORG Thu May 24 07:10:04 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E2131065675 for ; Thu, 24 May 2012 07:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3DC578FC12 for ; Thu, 24 May 2012 07:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4O7A4eJ095346 for ; Thu, 24 May 2012 07:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4O7A43G095345; Thu, 24 May 2012 07:10:04 GMT (envelope-from gnats) Resent-Date: Thu, 24 May 2012 07:10:04 GMT Resent-Message-Id: <201205240710.q4O7A43G095345@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sergey Budnevitch Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 691C8106566C for ; Thu, 24 May 2012 07:07:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 53ABF8FC08 for ; Thu, 24 May 2012 07:07:12 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4O77BjM013672 for ; Thu, 24 May 2012 07:07:11 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q4O77BVF013671; Thu, 24 May 2012 07:07:11 GMT (envelope-from nobody) Message-Id: <201205240707.q4O77BVF013671@red.freebsd.org> Date: Thu, 24 May 2012 07:07:11 GMT From: Sergey Budnevitch To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/168294: ixgbe driver compiled in kernel has no Flow Director support although loaded as a module has one X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 07:10:04 -0000 >Number: 168294 >Category: kern >Synopsis: ixgbe driver compiled in kernel has no Flow Director support although loaded as a module has one >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 24 07:10:03 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Sergey Budnevitch >Release: FreeBSD 9.0-RELEASE >Organization: >Environment: FreeBSD fbsd9-amd64-ovl.xxxx.xxx 9.0-RELEASE FreeBSD 9.0-RELEASE #21: Tue May 15 10:26:20 UTC 2012 root@fbsd9-amd64-ovl.xxx.xxx:/usr/obj/usr/src/sys/D amd64 >Description: Flow Director support is enabled by defining IXGBE_FDIR. modules/ixgbe/Makefile adds -DIXGBE_FDIR to CFLAGS, so Flow Director works with ixgbe loaded as a module, but built in kernel leave IXGBE_FDIR undefined. >How-To-Repeat: compile kernel with device ixgbe >Fix: Coping CFLAGS from modules/ixgbe/Makefile to sys/conf/files fix the problem. --- sys/conf/files.orig 2012-05-21 14:57:14.000000000 +0000 +++ sys/conf/files 2012-05-21 14:59:13.000000000 +0000 @@ -1366,7 +1366,7 @@ dev/ixgb/ixgb_ee.c optional ixgb dev/ixgb/ixgb_hw.c optional ixgb dev/ixgbe/ixgbe.c optional ixgbe inet \ - compile-with "${NORMAL_C} -I$S/dev/ixgbe" + compile-with "${NORMAL_C} -I$S/dev/ixgbe -DSMP -DIXGBE_FDIR" dev/ixgbe/ixv.c optional ixgbe inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_phy.c optional ixgbe inet \ >Release-Note: >Audit-Trail: >Unformatted: