NetBSD Problem Report #48950

From msaitoh@five.execsw.org  Wed Jun 25 16:29:45 2014
Return-Path: <msaitoh@five.execsw.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BE143A650D
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Jun 2014 16:29:45 +0000 (UTC)
Message-Id: <20140625162942.1C20917E213A@five.execsw.org>
Date: Thu, 26 Jun 2014 01:29:42 +0900 (JST)
From: msaitoh@execsw.org
Reply-To: msaitoh@execsw.org
To: gnats-bugs@NetBSD.org
Subject: Some ethernet intetfaces can't change flow control setting.
X-Send-Pr-Version: 3.95

>Number:         48950
>Category:       kern
>Synopsis:       Some ethernet interfaces can't change flow control setting.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 25 16:30:00 +0000 2014
>Last-Modified:  Thu Jun 26 07:55:01 +0000 2014
>Originator:     SAITOH Masanobu
>Release:        all
>Organization:
>Environment:
Architecture: all
Machine: all
>Description:
	Some ethernet interfaces can't change the setting of flow control.

	e.g. bnx:

		# ifconfig bnx0 mediaopt flow
		ifconfig: SIOCSIFMEDIA: Invalid argument

>How-To-Repeat:
	See above.
>Fix:
	The reason is that the MIIF_DOPAUSE mask isn't passed to
	mii_attach(). Set MIIF_DOPAUSE mask in drivers which support
	the flow control.

>Release-Note:

>Audit-Trail:

From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48950 CVS commit: src/sys/arch/powerpc/ibm4xx/dev
Date: Thu, 26 Jun 2014 07:50:29 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Thu Jun 26 07:50:29 UTC 2014

 Modified Files:
 	src/sys/arch/powerpc/ibm4xx/dev: if_emac.c

 Log Message:
  Pass MIIF_DOPAUSE mask to mii_attach() in if_emac.c. emac(4) change a
 register from IFM_FLOW flag, so this change is required to control the
 setting via ifconfig. PR#48950. OK'd by matt@.


 To generate a diff of this commit:
 cvs rdiff -u -r1.41 -r1.42 src/sys/arch/powerpc/ibm4xx/dev/if_emac.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.