From nobody@FreeBSD.org  Tue Apr  2 02:57:35 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 4057E9EB
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Apr 2013 02:57:35 +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 3250FF69
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Apr 2013 02:57:35 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r322vYwe091279
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 Apr 2013 02:57:34 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r322vYAj091278;
	Tue, 2 Apr 2013 02:57:34 GMT
	(envelope-from nobody)
Message-Id: <201304020257.r322vYAj091278@red.freebsd.org>
Date: Tue, 2 Apr 2013 02:57:34 GMT
From: Marcelo Araujo <araujo@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ixgbe] Cannot select media type.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         177571
>Category:       kern
>Synopsis:       [ixgbe] Cannot select media type.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jfv
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 02 03:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri May 16 03:01:33 UTC 2014
>Originator:     Marcelo Araujo
>Release:        FreeBSD  9.1-RELEASE
>Organization:
FreeBSD
>Environment:
FreeBSD  9.1-RELEASE FreeBSD 9.1-RELEASE #11: Mon Apr  1 16:58:08 CST 2013     root@qnap91:/hg/freenas/obj.amd64/hg/freenas/FreeBSD/src/sys/QESS.amd64  amd64

>Description:
If you try to change the media type of interfaces ixgbe, it shows that can support only "auto" media type.

[root@ ~]# ifconfig -m ix1 | grep media
	media: Ethernet autoselect (1000baseSX <full-duplex>)
	supported media:
		media autoselect
		media 10Gbase-T

root@ ~]# ifconfig ix1 | grep media
	media: Ethernet autoselect


Now I'm gonna try to set 10Gbase-T:
[root@ ~]# ifconfig ix1 media 10Gbase-T
ifconfig: SIOCSIFMEDIA (media): Invalid argument

On my console it appears:
ix1: Only auto media type

I have a switch 10G with this interface.
>How-To-Repeat:
Just try to set 10GBase-T on this interface.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jfv 
Responsible-Changed-By: araujo 
Responsible-Changed-When: Tue Apr 2 03:04:10 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer.....The Intel guy! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177571 

From: Marcelo Araujo <araujobsdport@gmail.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/177571: [ixgbe] Cannot select media type.
Date: Fri, 16 May 2014 10:53:20 +0800

 --e89a8f6473c52eb53e04f97b8451
 Content-Type: multipart/alternative; boundary=e89a8f6473c52eb53a04f97b844f
 
 --e89a8f6473c52eb53a04f97b844f
 Content-Type: text/plain; charset=UTF-8
 
 I do believe with a patch everything is better.
 Here attached a patch that fix the issue.
 
 Best Regards,
 -- 
 Marcelo Araujo
 araujo@FreeBSD.org
 
 --e89a8f6473c52eb53a04f97b844f
 Content-Type: text/html; charset=UTF-8
 
 <div dir="ltr">I do believe if a patch everything is better.<div>Here attached a patch that fix the issue.</div><div><br></div><div><div>Best Regards,</div>-- <br>Marcelo Araujo<br>araujo@FreeBSD.org
 </div></div>
 
 --e89a8f6473c52eb53a04f97b844f--
 --e89a8f6473c52eb53e04f97b8451
 Content-Type: text/plain; charset=US-ASCII; name="ixgbe-r266110.diff"
 Content-Disposition: attachment; filename="ixgbe-r266110.diff"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_hv8w5u1l0
 
 SW5kZXg6IGl4Z2JlLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gaXhnYmUuYwkocmV2aXNpb24gMjY2MTEwKQor
 KysgaXhnYmUuYwkod29ya2luZyBjb3B5KQpAQCAtMTcyNSw2ICsxNzI1LDkgQEAKIAkJcmV0dXJu
 IChFSU5WQUwpOwogCiAgICAgICAgIHN3aXRjaCAoSUZNX1NVQlRZUEUoaWZtLT5pZm1fbWVkaWEp
 KSB7CisJY2FzZSBJRk1fMTBHX1Q6CisJCWFkYXB0ZXItPmh3LnBoeS5hdXRvbmVnX2FkdmVydGlz
 ZWQgPSBJWEdCRV9MSU5LX1NQRUVEXzEwR0JfRlVMTDsKKwkJYnJlYWs7CiAgICAgICAgIGNhc2Ug
 SUZNX0FVVE86CiAgICAgICAgICAgICAgICAgYWRhcHRlci0+aHcucGh5LmF1dG9uZWdfYWR2ZXJ0
 aXNlZCA9CiAJCSAgICBJWEdCRV9MSU5LX1NQRUVEXzEwMF9GVUxMIHwK
 --e89a8f6473c52eb53e04f97b8451--
>Unformatted:
