diff options
author | 2006-05-20 03:47:56 +0000 | |
---|---|---|
committer | 2006-05-20 03:47:56 +0000 | |
commit | 99cc6521c630ccca936fc90b9ca0009f00f02704 (patch) | |
tree | eba18b1df7649a2ed91526bfd721fa44ed45f642 /sys/dev/pci/if_xge.c | |
parent | simplify MTU ioctl switch case. (diff) | |
download | wireguard-openbsd-99cc6521c630ccca936fc90b9ca0009f00f02704.tar.xz wireguard-openbsd-99cc6521c630ccca936fc90b9ca0009f00f02704.zip |
set if_jumbo_mtu and the IFCAP_JUMBO_MTU capabilities flag where
appropriate.
ok reyk@
Diffstat (limited to 'sys/dev/pci/if_xge.c')
-rw-r--r-- | sys/dev/pci/if_xge.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c index 13a0c44448b..c780236ee4f 100644 --- a/sys/dev/pci/if_xge.c +++ b/sys/dev/pci/if_xge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xge.c,v 1.12 2006/05/15 00:41:51 brad Exp $ */ +/* $OpenBSD: if_xge.c,v 1.13 2006/05/20 03:47:56 brad Exp $ */ /* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */ /* @@ -560,10 +560,11 @@ xge_attach(struct device *parent, struct device *self, void *aux) ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = xge_ioctl; ifp->if_start = xge_start; + ifp->if_jumbo_mtu = XGE_MAX_MTU; IFQ_SET_MAXLEN(&ifp->if_snd, NTXDESCS - 1); IFQ_SET_READY(&ifp->if_snd); - ifp->if_capabilities = IFCAP_VLAN_MTU; + ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_JUMBO_MTU; /* * Attach the interface. |