summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2015-12-14 09:46:46 +0000
committerhselasky <hselasky@FreeBSD.org>2015-12-14 09:46:46 +0000
commit832cab9e62e4c2e5cb25184aa42aefad051dffa8 (patch)
treec5275afda90706456bb37f981077988d8f4624e7 /sys/dev/usb
parentb15337b0d4d1752a44ea30bd9e83b0d87d69b618 (diff)
downloadFreeBSD-src-832cab9e62e4c2e5cb25184aa42aefad051dffa8.zip
FreeBSD-src-832cab9e62e4c2e5cb25184aa42aefad051dffa8.tar.gz
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
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/net/if_smsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_smsc.c b/sys/dev/usb/net/if_smsc.c
index f009183..c8f2202 100644
--- a/sys/dev/usb/net/if_smsc.c
+++ b/sys/dev/usb/net/if_smsc.c
@@ -1686,7 +1686,7 @@ smsc_attach_post_sub(struct usb_ether *ue)
/* 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?)
OpenPOWER on IntegriCloud