Deleted Added
full compact
ef10_rx.c (291747) ef10_rx.c (293752)
1/*-
2 * Copyright (c) 2012-2015 Solarflare Communications Inc.
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 are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012-2015 Solarflare Communications Inc.
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 are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/hunt_rx.c 291747 2015-12-04 06:54:46Z arybchik $");
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/hunt_rx.c 293752 2016-01-12 13:32:04Z arybchik $");
33
34#include "efsys.h"
35#include "efx.h"
36#include "efx_impl.h"
37
38
39#if EFSYS_OPT_HUNTINGTON
40

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

722
723 if ((rc = efx_mcdi_init_rxq(enp, n, eep->ee_index, label, index,
724 esmp, disable_scatter)) != 0)
725 goto fail3;
726
727 erp->er_eep = eep;
728 erp->er_label = label;
729
33
34#include "efsys.h"
35#include "efx.h"
36#include "efx_impl.h"
37
38
39#if EFSYS_OPT_HUNTINGTON
40

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

722
723 if ((rc = efx_mcdi_init_rxq(enp, n, eep->ee_index, label, index,
724 esmp, disable_scatter)) != 0)
725 goto fail3;
726
727 erp->er_eep = eep;
728 erp->er_label = label;
729
730 hunt_ev_rxlabel_init(eep, erp, label);
730 ef10_ev_rxlabel_init(eep, erp, label);
731
732 return (0);
733
734fail3:
735 EFSYS_PROBE(fail3);
736fail2:
737 EFSYS_PROBE(fail2);
738fail1:

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

744 void
745hunt_rx_qdestroy(
746 __in efx_rxq_t *erp)
747{
748 efx_nic_t *enp = erp->er_enp;
749 efx_evq_t *eep = erp->er_eep;
750 unsigned int label = erp->er_label;
751
731
732 return (0);
733
734fail3:
735 EFSYS_PROBE(fail3);
736fail2:
737 EFSYS_PROBE(fail2);
738fail1:

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

744 void
745hunt_rx_qdestroy(
746 __in efx_rxq_t *erp)
747{
748 efx_nic_t *enp = erp->er_enp;
749 efx_evq_t *eep = erp->er_eep;
750 unsigned int label = erp->er_label;
751
752 hunt_ev_rxlabel_fini(eep, label);
752 ef10_ev_rxlabel_fini(eep, label);
753
754 EFSYS_ASSERT(enp->en_rx_qcount != 0);
755 --enp->en_rx_qcount;
756
757 EFSYS_KMEM_FREE(enp->en_esip, sizeof (efx_rxq_t), erp);
758}
759
760 void

--- 15 unchanged lines hidden ---
753
754 EFSYS_ASSERT(enp->en_rx_qcount != 0);
755 --enp->en_rx_qcount;
756
757 EFSYS_KMEM_FREE(enp->en_esip, sizeof (efx_rxq_t), erp);
758}
759
760 void

--- 15 unchanged lines hidden ---