Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci vmx(4) enable jumbo frame.
details: https://anonhg.NetBSD.org/src/rev/9bacdc933fd3
branches: trunk
changeset: 452642:9bacdc933fd3
user: knakahara <knakahara%NetBSD.org@localhost>
date: Fri Jul 19 08:31:41 2019 +0000
description:
vmx(4) enable jumbo frame.
I tested 1600 mtu to/from Linux vmxnet3.
diffstat:
sys/arch/x86/pci/if_vmx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5590c37b963e -r 9bacdc933fd3 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Fri Jul 19 04:18:49 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Fri Jul 19 08:31:41 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vmx.c,v 1.32 2019/07/16 10:12:10 knakahara Exp $ */
+/* $NetBSD: if_vmx.c,v 1.33 2019/07/19 08:31:41 knakahara Exp $ */
/* $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.32 2019/07/16 10:12:10 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.33 2019/07/19 08:31:41 knakahara Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -1721,7 +1721,7 @@
sc->vmx_ethercom.ec_if.if_capabilities |= IFCAP_TSOv4 | IFCAP_TSOv6;
sc->vmx_ethercom.ec_capabilities |=
- ETHERCAP_VLAN_MTU | ETHERCAP_VLAN_HWTAGGING;
+ ETHERCAP_VLAN_MTU | ETHERCAP_VLAN_HWTAGGING | ETHERCAP_JUMBO_MTU;
sc->vmx_ethercom.ec_capenable |= ETHERCAP_VLAN_HWTAGGING;
IFQ_SET_MAXLEN(&ifp->if_snd, sc->vmx_ntxdescs);
Home |
Main Index |
Thread Index |
Old Index