Deleted Added
full compact
sfxge_rx.c (282996) sfxge_rx.c (283291)
1/*-
2 * Copyright (c) 2010-2011 Solarflare Communications, Inc.
3 * All rights reserved.
4 *
5 * This software was developed in part by Philip Paeps under contract for
6 * Solarflare Communications, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2010-2011 Solarflare Communications, Inc.
3 * All rights reserved.
4 *
5 * This software was developed in part by Philip Paeps under contract for
6 * Solarflare Communications, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_rx.c 282996 2015-05-16 05:36:40Z arybchik $");
31__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_rx.c 283291 2015-05-22 17:05:21Z jkim $");
32
33#include <sys/types.h>
34#include <sys/mbuf.h>
35#include <sys/smp.h>
36#include <sys/socket.h>
37#include <sys/sysctl.h>
38#include <sys/limits.h>
39#include <sys/syslog.h>

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

1212 sfxge_sram_buf_tbl_alloc(sc, EFX_RXQ_NBUFS(sc->rxq_entries),
1213 &rxq->buf_base_id);
1214
1215 /* Allocate the context array and the flow table. */
1216 rxq->queue = malloc(sizeof(struct sfxge_rx_sw_desc) * sc->rxq_entries,
1217 M_SFXGE, M_WAITOK | M_ZERO);
1218 sfxge_lro_init(rxq);
1219
32
33#include <sys/types.h>
34#include <sys/mbuf.h>
35#include <sys/smp.h>
36#include <sys/socket.h>
37#include <sys/sysctl.h>
38#include <sys/limits.h>
39#include <sys/syslog.h>

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

1212 sfxge_sram_buf_tbl_alloc(sc, EFX_RXQ_NBUFS(sc->rxq_entries),
1213 &rxq->buf_base_id);
1214
1215 /* Allocate the context array and the flow table. */
1216 rxq->queue = malloc(sizeof(struct sfxge_rx_sw_desc) * sc->rxq_entries,
1217 M_SFXGE, M_WAITOK | M_ZERO);
1218 sfxge_lro_init(rxq);
1219
1220 callout_init(&rxq->refill_callout, B_TRUE);
1220 callout_init(&rxq->refill_callout, 1);
1221
1222 rxq->init_state = SFXGE_RXQ_INITIALIZED;
1223
1224 return (0);
1225}
1226
1227static const struct {
1228 const char *name;

--- 111 unchanged lines hidden ---
1221
1222 rxq->init_state = SFXGE_RXQ_INITIALIZED;
1223
1224 return (0);
1225}
1226
1227static const struct {
1228 const char *name;

--- 111 unchanged lines hidden ---