On Tue, Mar 03, 2009 at 11:02:13AM +0100, Cristiano Deana
wrote:> Hi,
>
> tuning my network fixing nic's speed and duplex (both on server and
> switch) i got this error with bce driver:
>
> # ifconfig bce0
> bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500
>
options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
> ether 00:15:c5:fe:11:01
> inet 192.168.1.13 netmask 0xffffff00 broadcast 192.168.1.255
> media: Ethernet autoselect (1000baseSX <full-duplex>)
> status: active
> # ifconfig bce0 media 1000baseSX
> ifconfig: SIOCSIFMEDIA (media): Device not configured
>
I don't have experience on bce(4) hardwares so I'm not sure but how
about adding full-duplex?
e.g. ifconfig bce0 media 1000baseSX mediaopt full-duplex
For gigabit connections you should always use auto-negotiation.
There is no need to manually specify link speed/duplex except
connecting to broken link partners.
> or (according to bce(4)):
>
> # ifconfig bce0 media 1000baseTX
> ifconfig: SIOCSIFMEDIA (media): Device not configured
>
I guess your PHY type is not for 1000baseT. That's not valid option
for your controller.
> system:
> # uname -rsm
> FreeBSD 7.1-RELEASE-p3 amd64
>
> bce0@pci0:6:0:0: class=0x020000 card=0x01bb1028 chip=0x16ac14e4
> rev=0x12 hdr=0x00
> vendor = 'Broadcom Corporation'
> device = 'NetXtreme II BCM5708S Gigabit Ethernet'
> class = network
> subclass = ethernet
>
> bce0: <Broadcom NetXtreme II BCM5708 1000Base-SX (B2)> mem
> 0xf4000000-0xf5ffffff irq 16 at device 0.0 on pci6
> miibus0: <MII bus> on bce0
> brgphy0: <BCM5708S 1000/2500BaseSX PHY> PHY 2 on miibus0
> brgphy0: 1000baseSX-FDX, auto
> bce0: Ethernet address: 00:15:c5:fe:0f:c6
> bce0: [ITHREAD]
> bce0: ASIC (0x57081021); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); F/W