Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 2015 09:46:46 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r292185 - stable/10/sys/dev/usb/net
Message-ID:  <201512140946.tBE9kk6X019054@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Dec 14 09:46:46 2015
New Revision: 292185
URL: https://svnweb.freebsd.org/changeset/base/292185

Log:
  MFC r291953:
  When setting up VLANs on a Raspberry Pi ethernet port, the MTU drops
  from 1500 to 1496 bytes. The MTU should remain at 1500, extending the
  frame size as per IEEE 802.3. Adding IFCAP_VLAN_MTU to the
  if_capabilities field in the smsc driver solves the problem.  The
  datasheet for the LAN9512 chip, section 3.2.3 states that the chip
  supports the extended frame.
  
  Submitted by:	rpp@ci.com.au
  PR:		205050

Modified:
  stable/10/sys/dev/usb/net/if_smsc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/usb/net/if_smsc.c
==============================================================================
--- stable/10/sys/dev/usb/net/if_smsc.c	Mon Dec 14 09:42:39 2015	(r292184)
+++ stable/10/sys/dev/usb/net/if_smsc.c	Mon Dec 14 09:46:46 2015	(r292185)
@@ -1686,7 +1686,7 @@ smsc_attach_post_sub(struct usb_ether *u
 	/* The chip supports TCP/UDP checksum offloading on TX and RX paths, however
 	 * currently only RX checksum is supported in the driver (see top of file).
 	 */
-	ifp->if_capabilities |= IFCAP_RXCSUM;
+	ifp->if_capabilities |= IFCAP_RXCSUM | IFCAP_VLAN_MTU;
 	ifp->if_hwassist = 0;
 	
 	/* TX checksuming is disabled (for now?)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512140946.tBE9kk6X019054>