Deleted Added
full compact
siena_nic.c (293814) siena_nic.c (293891)
1/*-
2 * Copyright (c) 2009-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) 2009-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/siena_nic.c 293814 2016-01-13 07:25:51Z arybchik $");
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/siena_nic.c 293891 2016-01-14 09:05:51Z arybchik $");
33
34#include "efx.h"
35#include "efx_impl.h"
36#include "mcdi_mon.h"
37
38#if EFSYS_OPT_SIENA
39
40static __checkReturn efx_rc_t

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

164 encp->enc_txq_limit = MIN(EFX_TXQ_LIMIT_TARGET, ntxq);
165
166 encp->enc_buftbl_limit = SIENA_SRAM_ROWS -
167 (encp->enc_txq_limit * EFX_TXQ_DC_NDESCS(EFX_TXQ_DC_SIZE)) -
168 (encp->enc_rxq_limit * EFX_RXQ_DC_NDESCS(EFX_RXQ_DC_SIZE));
169
170 encp->enc_hw_tx_insert_vlan_enabled = B_FALSE;
171 encp->enc_fw_assisted_tso_enabled = B_FALSE;
33
34#include "efx.h"
35#include "efx_impl.h"
36#include "mcdi_mon.h"
37
38#if EFSYS_OPT_SIENA
39
40static __checkReturn efx_rc_t

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

164 encp->enc_txq_limit = MIN(EFX_TXQ_LIMIT_TARGET, ntxq);
165
166 encp->enc_buftbl_limit = SIENA_SRAM_ROWS -
167 (encp->enc_txq_limit * EFX_TXQ_DC_NDESCS(EFX_TXQ_DC_SIZE)) -
168 (encp->enc_rxq_limit * EFX_RXQ_DC_NDESCS(EFX_RXQ_DC_SIZE));
169
170 encp->enc_hw_tx_insert_vlan_enabled = B_FALSE;
171 encp->enc_fw_assisted_tso_enabled = B_FALSE;
172 encp->enc_fw_assisted_tso_v2_enabled = B_FALSE;
172 encp->enc_allow_set_mac_with_installed_filters = B_TRUE;
173
174 return (0);
175
176fail2:
177 EFSYS_PROBE(fail2);
178fail1:
179 EFSYS_PROBE1(fail1, efx_rc_t, rc);

--- 404 unchanged lines hidden ---
173 encp->enc_allow_set_mac_with_installed_filters = B_TRUE;
174
175 return (0);
176
177fail2:
178 EFSYS_PROBE(fail2);
179fail1:
180 EFSYS_PROBE1(fail1, efx_rc_t, rc);

--- 404 unchanged lines hidden ---