diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-05-28 00:20:22 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-05-28 00:20:22 +0000 |
commit | af88527ffe750f4fc35af70bb81fbfd68e129ace (patch) | |
tree | 0ab28a440b9de954f9aed386febe09d2908b7f38 /sys/dev/pci/if_ngereg.h | |
parent | f32ef14b7e0390d427153634ede40cc7b15599a4 (diff) |
- remove ETHER_MAX_LEN_JUMBO and ETHERMTU_JUMBO.
- use if_hardmtu for MTU ioctl handlers.
ok reyk@
Diffstat (limited to 'sys/dev/pci/if_ngereg.h')
-rw-r--r-- | sys/dev/pci/if_ngereg.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ngereg.h b/sys/dev/pci/if_ngereg.h index a726a6cedd1..f878bb4cf78 100644 --- a/sys/dev/pci/if_ngereg.h +++ b/sys/dev/pci/if_ngereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ngereg.h,v 1.7 2005/12/17 07:31:27 miod Exp $ */ +/* $OpenBSD: if_ngereg.h,v 1.8 2006/05/28 00:20:21 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -613,9 +613,11 @@ struct nge_mii_frame { #define NGE_MII_WRITEOP 0x01 #define NGE_MII_TURNAROUND 0x02 +#define NGE_JUMBO_FRAMELEN 9018 +#define NGE_JUMBO_MTU (NGE_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN) #define NGE_JSLOTS 384 -#define NGE_JRAWLEN (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN + sizeof(u_int64_t)) +#define NGE_JRAWLEN (NGE_JUMBO_FRAMELEN + ETHER_ALIGN + sizeof(u_int64_t)) #define NGE_JLEN (NGE_JRAWLEN + (sizeof(u_int64_t) - \ (NGE_JRAWLEN % sizeof(u_int64_t)))) #define NGE_MCLBYTES (NGE_JLEN - sizeof(u_int64_t)) |