]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly advertise that if_arge can handle long frames (if_arge is set to
authorloos <loos@FreeBSD.org>
Thu, 3 Jul 2014 20:16:48 +0000 (20:16 +0000)
committerloos <loos@FreeBSD.org>
Thu, 3 Jul 2014 20:16:48 +0000 (20:16 +0000)
commitb8da8e9a79de4b559385281af21ee2e910502cf3
tree1b23a2f8a06730f6298d08ba4bfbda91b4ed2595
parent96e0511f76f7debf0367ed7cd41ea6c63cff6c10
Properly advertise that if_arge can handle long frames (if_arge is set to
handle packets up to 1536 bytes)

This fixes the need to frag that could happen when using vlans on top of
if_arge (which is a common case for the use the switch ports as individual
NICs).

Previously to this commit any vlan setup with if_arge as parent would have
the MTU of the parent interface reduced by the size of dot1q header
(4 bytes).

Tested on TP-Link 1043ND (where the WAN port is just a switch port setup to
tag packets in a different VLAN than the LAN ports).

Reported and tested by: Harm Weites (harm at weites.com)
sys/mips/atheros/if_arge.c