From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 27 21:10:04 2009 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 304251065670 for ; Mon, 27 Apr 2009 21: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 0BB068FC17 for ; Mon, 27 Apr 2009 21:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3RLA3eo014348 for ; Mon, 27 Apr 2009 21:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3RLA39x014347; Mon, 27 Apr 2009 21:10:03 GMT (envelope-from gnats) Resent-Date: Mon, 27 Apr 2009 21:10:03 GMT Resent-Message-Id: <200904272110.n3RLA39x014347@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, Scott Ullrich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 825E1106568E for ; Mon, 27 Apr 2009 21:02:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 70BCB8FC28 for ; Mon, 27 Apr 2009 21:02:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3RL2wCF018681 for ; Mon, 27 Apr 2009 21:02:58 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3RL2wTS018680; Mon, 27 Apr 2009 21:02:58 GMT (envelope-from nobody) Message-Id: <200904272102.n3RL2wTS018680@www.freebsd.org> Date: Mon, 27 Apr 2009 21:02:58 GMT From: Scott Ullrich To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/134051: SK driver does not honor carp advskew unless PROMISC mode is enabled 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: Mon, 27 Apr 2009 21:10:04 -0000 >Number: 134051 >Category: misc >Synopsis: SK driver does not honor carp advskew unless PROMISC mode is enabled >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 27 21:10:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Scott Ullrich >Release: 8-CURRENT >Organization: pfSense >Environment: FreeBSD gate1.geekgod.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Apr 24 13:41:50 EDT 2009 sullrich@FreeBSD_8_Builder.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8 i386 >Description: CARP does not work correctly with the SK driver unless PROMISC mode is enabled. This problem is present on FreeBSD6-FreeBSD8. It seems the multicast filter is not being setup correctly? skc0: [ITHREAD] skc1: port 0xd100-0xd1ff mem 0xd0420000-0xd0423fff irq 19 at device 5.0 on pci5 skc1: Marvell Yukon Lite Gigabit Ethernet rev. (0x9) sk1: on skc1sk1: Ethernet address: 00:10:f3:0b:49:23 miibus5: on sk1 e1000phy5: PHY 0 on miibus5 e1000phy5: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto skc1: [ITHREAD] skc2: port 0xd200-0xd2ff mem 0xd0424000-0xd0427fff irq 18 at device 6.0 on pci5 skc2: Marvell Yukon Lite Gigabit Ethernet rev. (0x9) sk2: on skc2sk2: Ethernet address: 00:10:f3:0b:49:24 miibus6: on sk2 >How-To-Repeat: Install 2 FreeBSD machines. One with SK nics and one without. One the machine with SK NICS: ifconfig carp0 create ifconfig carp0 192.168.1.1/24 ifconfig carp0 advskew 25 On the second machine: ifconfig carp0 create ifconfig carp0 192.168.1.1/24 ifconfig carp0 advskew 254 Notice the machine with the lower advskew is BACKUP. Now issue the command on the machine with SK nics: ifconfig sk0 PROMISC carp0 should go from BACKUP to MASTER after enabling PROMISC. >Fix: ifconfig carp0 PROMISC >Release-Note: >Audit-Trail: >Unformatted: