Deleted Added
full compact
if_agevar.h (256281) if_agevar.h (264442)
1/*-
2 * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: stable/10/sys/dev/age/if_agevar.h 246341 2013-02-05 00:37:45Z yongari $
27 * $FreeBSD: stable/10/sys/dev/age/if_agevar.h 264442 2014-04-14 04:51:59Z yongari $
28 */
29
30#ifndef _IF_AGEVAR_H
31#define _IF_AGEVAR_H
32
33#define AGE_TX_RING_CNT 256
34#define AGE_RX_RING_CNT 256
35#define AGE_RR_RING_CNT (AGE_TX_RING_CNT + AGE_RX_RING_CNT)
36/* The following ring alignments are just guessing. */
37#define AGE_TX_RING_ALIGN 16
38#define AGE_RX_RING_ALIGN 16
39#define AGE_RR_RING_ALIGN 16
40#define AGE_CMB_ALIGN 16
41#define AGE_SMB_ALIGN 16
42
43#define AGE_TSO_MAXSEGSIZE 4096
44#define AGE_TSO_MAXSIZE (65535 + sizeof(struct ether_vlan_header))
28 */
29
30#ifndef _IF_AGEVAR_H
31#define _IF_AGEVAR_H
32
33#define AGE_TX_RING_CNT 256
34#define AGE_RX_RING_CNT 256
35#define AGE_RR_RING_CNT (AGE_TX_RING_CNT + AGE_RX_RING_CNT)
36/* The following ring alignments are just guessing. */
37#define AGE_TX_RING_ALIGN 16
38#define AGE_RX_RING_ALIGN 16
39#define AGE_RR_RING_ALIGN 16
40#define AGE_CMB_ALIGN 16
41#define AGE_SMB_ALIGN 16
42
43#define AGE_TSO_MAXSEGSIZE 4096
44#define AGE_TSO_MAXSIZE (65535 + sizeof(struct ether_vlan_header))
45#define AGE_MAXTXSEGS 32
45#define AGE_MAXTXSEGS 35
46#define AGE_RX_BUF_ALIGN 8
47#ifndef __NO_STRICT_ALIGNMENT
48#define AGE_RX_BUF_SIZE (MCLBYTES - AGE_RX_BUF_ALIGN)
49#else
50#define AGE_RX_BUF_SIZE (MCLBYTES)
51#endif
52
53#define AGE_ADDR_LO(x) ((uint64_t) (x) & 0xFFFFFFFF)

--- 222 unchanged lines hidden ---
46#define AGE_RX_BUF_ALIGN 8
47#ifndef __NO_STRICT_ALIGNMENT
48#define AGE_RX_BUF_SIZE (MCLBYTES - AGE_RX_BUF_ALIGN)
49#else
50#define AGE_RX_BUF_SIZE (MCLBYTES)
51#endif
52
53#define AGE_ADDR_LO(x) ((uint64_t) (x) & 0xFFFFFFFF)

--- 222 unchanged lines hidden ---