efx_ev.c (264461) | efx_ev.c (277886) |
---|---|
1/*- 2 * Copyright 2007-2009 Solarflare Communications Inc. 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. --- 10 unchanged lines hidden (view full) --- 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 26#include <sys/cdefs.h> | 1/*- 2 * Copyright 2007-2009 Solarflare Communications Inc. 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. --- 10 unchanged lines hidden (view full) --- 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 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_ev.c 264461 2014-04-14 16:31:56Z gnn $"); | 27__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_ev.c 277886 2015-01-29 18:54:43Z arybchik $"); |
28 29#include "efsys.h" 30#include "efx.h" 31#include "efx_types.h" 32#include "efx_regs.h" 33#include "efx_impl.h" 34 35#if EFSYS_OPT_QSTATS --- 954 unchanged lines hidden (view full) --- 990fail2: 991 EFSYS_PROBE(fail2); 992fail1: 993 EFSYS_PROBE1(fail1, int, rc); 994 995 return (rc); 996} 997 | 28 29#include "efsys.h" 30#include "efx.h" 31#include "efx_types.h" 32#include "efx_regs.h" 33#include "efx_impl.h" 34 35#if EFSYS_OPT_QSTATS --- 954 unchanged lines hidden (view full) --- 990fail2: 991 EFSYS_PROBE(fail2); 992fail1: 993 EFSYS_PROBE1(fail1, int, rc); 994 995 return (rc); 996} 997 |
998#if EFSYS_OPT_QSTATS |
|
998#if EFSYS_OPT_NAMES 999/* START MKCONFIG GENERATED EfxEventQueueStatNamesBlock 67e9bdcd920059bd */ 1000static const char __cs * __cs __efx_ev_qstat_name[] = { 1001 "all", 1002 "rx", 1003 "rx_ok", 1004 "rx_recovery", 1005 "rx_frm_trunc", --- 41 unchanged lines hidden (view full) --- 1047 __in unsigned int id) 1048{ 1049 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); 1050 EFSYS_ASSERT3U(id, <, EV_NQSTATS); 1051 1052 return (__efx_ev_qstat_name[id]); 1053} 1054#endif /* EFSYS_OPT_NAMES */ | 999#if EFSYS_OPT_NAMES 1000/* START MKCONFIG GENERATED EfxEventQueueStatNamesBlock 67e9bdcd920059bd */ 1001static const char __cs * __cs __efx_ev_qstat_name[] = { 1002 "all", 1003 "rx", 1004 "rx_ok", 1005 "rx_recovery", 1006 "rx_frm_trunc", --- 41 unchanged lines hidden (view full) --- 1048 __in unsigned int id) 1049{ 1050 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); 1051 EFSYS_ASSERT3U(id, <, EV_NQSTATS); 1052 1053 return (__efx_ev_qstat_name[id]); 1054} 1055#endif /* EFSYS_OPT_NAMES */ |
1056#endif /* EFSYS_OPT_QSTATS */ |
|
1055 1056#if EFSYS_OPT_QSTATS 1057 void 1058efx_ev_qstats_update( 1059 __in efx_evq_t *eep, 1060 __inout_ecount(EV_NQSTATS) efsys_stat_t *stat) 1061{ 1062 unsigned int id; --- 53 unchanged lines hidden --- | 1057 1058#if EFSYS_OPT_QSTATS 1059 void 1060efx_ev_qstats_update( 1061 __in efx_evq_t *eep, 1062 __inout_ecount(EV_NQSTATS) efsys_stat_t *stat) 1063{ 1064 unsigned int id; --- 53 unchanged lines hidden --- |