mlx5_en_main.c (338552) | mlx5_en_main.c (341942) |
---|---|
1/*- 2 * Copyright (c) 2015 Mellanox Technologies. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2015 Mellanox Technologies. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c 338552 2018-09-10 08:09:42Z hselasky $ | 25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c 341942 2018-12-12 12:27:17Z hselasky $ |
26 */ 27 28#include "en.h" 29 30#include <sys/sockio.h> 31#include <machine/atomic.h> 32 33#ifndef ETH_DRIVER_VERSION --- 461 unchanged lines hidden (view full) --- 495 tx_queue_dropped += sq_stats->dropped; 496 if (sq_br != NULL) 497 tx_queue_dropped += sq_br->br_drops; 498 tx_defragged += sq_stats->defragged; 499 tx_offload_none += sq_stats->csum_offload_none; 500 } 501 } 502 | 26 */ 27 28#include "en.h" 29 30#include <sys/sockio.h> 31#include <machine/atomic.h> 32 33#ifndef ETH_DRIVER_VERSION --- 461 unchanged lines hidden (view full) --- 495 tx_queue_dropped += sq_stats->dropped; 496 if (sq_br != NULL) 497 tx_queue_dropped += sq_br->br_drops; 498 tx_defragged += sq_stats->defragged; 499 tx_offload_none += sq_stats->csum_offload_none; 500 } 501 } 502 |
503 s->tx_jumbo_packets = 504 priv->stats.port_stats_debug.p1519to2047octets + 505 priv->stats.port_stats_debug.p2048to4095octets + 506 priv->stats.port_stats_debug.p4096to8191octets + 507 priv->stats.port_stats_debug.p8192to10239octets; 508 |
|
503 /* update counters */ 504 s->tso_packets = tso_packets; 505 s->tso_bytes = tso_bytes; 506 s->tx_queue_dropped = tx_queue_dropped; 507 s->tx_defragged = tx_defragged; 508 s->lro_packets = lro_packets; 509 s->lro_bytes = lro_bytes; 510 s->sw_lro_queued = sw_lro_queued; --- 3233 unchanged lines hidden --- | 509 /* update counters */ 510 s->tso_packets = tso_packets; 511 s->tso_bytes = tso_bytes; 512 s->tx_queue_dropped = tx_queue_dropped; 513 s->tx_defragged = tx_defragged; 514 s->lro_packets = lro_packets; 515 s->lro_bytes = lro_bytes; 516 s->sw_lro_queued = sw_lro_queued; --- 3233 unchanged lines hidden --- |