Bug 171520 - [alc] alc network driver + tso + vlan does not work.
Summary: [alc] alc network driver + tso + vlan does not work.
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-10 12:10 UTC by Nikolau Nevzorov
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolau Nevzorov 2012-09-10 12:10:02 UTC
alc network driver + tso + vlan does not work. 

alc0: <Atheros AR8132 PCIe Fast Ethernet> port 0x5000-0x507f mem 0x57000000-0x5703ffff irq 16 at device 0.0 on pci1
alc0: 15872 Tx FIFO, 15360 Rx FIFO
alc0: Using 1 MSI message(s).
miibus0: <MII bus> on alc0
atphy0: <Atheros F1 10/100/1000 PHY> PHY 0 on miibus0
atphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow

Hello, I have a system using the ALC network card driver with vlans. By default the driver enables TSO4 support on the card. This support does not seem to work in this configuration and causes the OS to generate packets larger then MTU which are sent to the card to be fragmented. This doesn't seem to happen and the packets are dropped. This causes TCP connections to go extremely slowly as many re-transitions occur. ifconfig alc0 -tso fixes the problem. 

The problem doesn't occur without vlans. And this problem doesn't occur on routed packet's, only on generated on this host.

There was thread on this problem on 2010 but without localisation of problem.
http://www.freebsd.org/cgi/query-pr.cgi?pr=147985

Fix: 

disable TSO on iface
How-To-Repeat: Create vlans on alc interface and try to download via vlan and any file transfer protoco file bigger, than 1mb.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-09-10 17:30:46 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Pyun YongHyeon freebsd_committer freebsd_triage 2012-10-18 02:40:32 UTC
State Changed
From-To: open->feedback

I'm pretty sure TSO over VLAN worked well on my box. 
Could you share your exact network configuration and let me know 
how I can reproduce it? 


Comment 3 Pyun YongHyeon freebsd_committer freebsd_triage 2012-10-18 02:40:32 UTC
Responsible Changed
From-To: freebsd-net->yongari

Grab.
Comment 4 Eugene Grosbein 2012-10-22 05:15:28 UTC
22.10.2012 11:09, Nikolay Nevzorov ÐÉÛÅÔ:
> Any traffic throuhg NAT does not cause problems. And any routed traffic so on.
> 
> Problem only with traffic that generated on host with alc0, because host generate packets much more bigger than MTU (about 2300 bytes per packet with MTU 1500), a see it with tcpdump on alc0. 

Perhaps, that's another problem then. Just to make in really clean, try kernel without LIBALIAS
and do not start mpd during the test as it may load libalias.ko by itself.
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:40 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped