Deleted Added
full compact
if_mxge.c (281855) if_mxge.c (294327)
1/******************************************************************************
2
3Copyright (c) 2006-2013, Myricom Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

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

23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28***************************************************************************/
29
30#include <sys/cdefs.h>
1/******************************************************************************
2
3Copyright (c) 2006-2013, Myricom Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

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

23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28***************************************************************************/
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/mxge/if_mxge.c 281855 2015-04-22 14:38:58Z rodrigc $");
31__FBSDID("$FreeBSD: head/sys/dev/mxge/if_mxge.c 294327 2016-01-19 15:33:28Z hselasky $");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/linker.h>
36#include <sys/firmware.h>
37#include <sys/endian.h>
38#include <sys/sockio.h>
39#include <sys/mbuf.h>

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

1632 SYSCTL_ADD_INT(ctx, children, OID_AUTO,
1633 "rx_small_cnt",
1634 CTLFLAG_RD, &ss->rx_small.cnt,
1635 0, "rx_small_cnt");
1636 SYSCTL_ADD_INT(ctx, children, OID_AUTO,
1637 "rx_big_cnt",
1638 CTLFLAG_RD, &ss->rx_big.cnt,
1639 0, "rx_small_cnt");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/linker.h>
36#include <sys/firmware.h>
37#include <sys/endian.h>
38#include <sys/sockio.h>
39#include <sys/mbuf.h>

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

1632 SYSCTL_ADD_INT(ctx, children, OID_AUTO,
1633 "rx_small_cnt",
1634 CTLFLAG_RD, &ss->rx_small.cnt,
1635 0, "rx_small_cnt");
1636 SYSCTL_ADD_INT(ctx, children, OID_AUTO,
1637 "rx_big_cnt",
1638 CTLFLAG_RD, &ss->rx_big.cnt,
1639 0, "rx_small_cnt");
1640 SYSCTL_ADD_INT(ctx, children, OID_AUTO,
1640 SYSCTL_ADD_U64(ctx, children, OID_AUTO,
1641 "lro_flushed", CTLFLAG_RD, &ss->lc.lro_flushed,
1642 0, "number of lro merge queues flushed");
1643
1641 "lro_flushed", CTLFLAG_RD, &ss->lc.lro_flushed,
1642 0, "number of lro merge queues flushed");
1643
1644 SYSCTL_ADD_INT(ctx, children, OID_AUTO,
1644 SYSCTL_ADD_U64(ctx, children, OID_AUTO,
1645 "lro_bad_csum", CTLFLAG_RD, &ss->lc.lro_bad_csum,
1646 0, "number of bad csums preventing LRO");
1647
1645 "lro_bad_csum", CTLFLAG_RD, &ss->lc.lro_bad_csum,
1646 0, "number of bad csums preventing LRO");
1647
1648 SYSCTL_ADD_INT(ctx, children, OID_AUTO,
1648 SYSCTL_ADD_U64(ctx, children, OID_AUTO,
1649 "lro_queued", CTLFLAG_RD, &ss->lc.lro_queued,
1650 0, "number of frames appended to lro merge"
1651 "queues");
1652
1653#ifndef IFNET_BUF_RING
1654 /* only transmit from slice 0 for now */
1655 if (slice > 0)
1656 continue;

--- 3376 unchanged lines hidden ---
1649 "lro_queued", CTLFLAG_RD, &ss->lc.lro_queued,
1650 0, "number of frames appended to lro merge"
1651 "queues");
1652
1653#ifndef IFNET_BUF_RING
1654 /* only transmit from slice 0 for now */
1655 if (slice > 0)
1656 continue;

--- 3376 unchanged lines hidden ---