summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-06-29 10:56:19 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-06-29 10:56:19 +0000
commit64ebe910aa78ad8da8c10b6a2a145a62ab25ae59 (patch)
treecbab090a5bc9551bcac3cc56421b9a30ea7c6d39 /sys
parente91d3a3698106406a98eab3b1bec4ebca1cb9603 (diff)
Always use the maximum permissible frame size for Rx size limit.
This lets a change of interface MTU take effect immediately without link cycling and brings cnmac(4) into line with other jumbo frame capable NIC drivers. Prompted by Joe Holden on misc@ OK dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/octeon/dev/cn30xxgmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/dev/cn30xxgmx.c b/sys/arch/octeon/dev/cn30xxgmx.c
index af8dd1eb71a..4dd98a8ff9a 100644
--- a/sys/arch/octeon/dev/cn30xxgmx.c
+++ b/sys/arch/octeon/dev/cn30xxgmx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cn30xxgmx.c,v 1.34 2017/05/02 13:26:49 visa Exp $ */
+/* $OpenBSD: cn30xxgmx.c,v 1.35 2017/06/29 10:56:18 visa Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -578,7 +578,7 @@ cn30xxgmx_rx_frm_ctl_enable(struct cn30xxgmx_port_softc *sc,
struct ifnet *ifp = &sc->sc_port_ac->ac_if;
unsigned int maxlen;
- maxlen = roundup(ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN +
+ maxlen = roundup(ifp->if_hardmtu + ETHER_HDR_LEN + ETHER_CRC_LEN +
ETHER_VLAN_ENCAP_LEN, 8);
_GMX_PORT_WR8(sc, GMX0_RX0_JABBER, maxlen);