Deleted Added
sdiff udiff text old ( 293814 ) new ( 293891 )
full compact
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_tx.c 293814 2016-01-13 07:25:51Z arybchik $");
33
34#include "efx.h"
35#include "efx_impl.h"
36
37
38#if EFSYS_OPT_HUNTINGTON
39
40#if EFSYS_OPT_QSTATS

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

82 req.emr_out_buf = payload;
83 req.emr_out_length = MC_CMD_INIT_TXQ_OUT_LEN;
84
85 MCDI_IN_SET_DWORD(req, INIT_TXQ_IN_SIZE, size);
86 MCDI_IN_SET_DWORD(req, INIT_TXQ_IN_TARGET_EVQ, target_evq);
87 MCDI_IN_SET_DWORD(req, INIT_TXQ_IN_LABEL, label);
88 MCDI_IN_SET_DWORD(req, INIT_TXQ_IN_INSTANCE, instance);
89
90 MCDI_IN_POPULATE_DWORD_6(req, INIT_TXQ_IN_FLAGS,
91 INIT_TXQ_IN_FLAG_BUFF_MODE, 0,
92 INIT_TXQ_IN_FLAG_IP_CSUM_DIS,
93 (flags & EFX_TXQ_CKSUM_IPV4) ? 0 : 1,
94 INIT_TXQ_IN_FLAG_TCP_CSUM_DIS,
95 (flags & EFX_TXQ_CKSUM_TCPUDP) ? 0 : 1,
96 INIT_TXQ_IN_FLAG_TCP_UDP_ONLY, 0,
97 INIT_TXQ_IN_CRC_MODE, 0,
98 INIT_TXQ_IN_FLAG_TIMESTAMP, 0);
99
100 MCDI_IN_SET_DWORD(req, INIT_TXQ_IN_OWNER_ID, 0);
101 MCDI_IN_SET_DWORD(req, INIT_TXQ_IN_PORT_ID, EVB_PORT_ID_ASSIGNED);
102
103 dma_addr = MCDI_IN2(req, efx_qword_t, INIT_TXQ_IN_DMA_ADDR);

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

584 ESF_DZ_TX_OPTION_TYPE,
585 ESE_DZ_TX_OPTION_DESC_TSO,
586 ESF_DZ_TX_TSO_TCP_FLAGS, tcp_flags,
587 ESF_DZ_TX_TSO_IP_ID, ipv4_id,
588 ESF_DZ_TX_TSO_TCP_SEQNO, tcp_seq);
589}
590
591 void
592ef10_tx_qdesc_vlantci_create(
593 __in efx_txq_t *etp,
594 __in uint16_t tci,
595 __out efx_desc_t *edp)
596{
597 EFSYS_PROBE2(tx_desc_vlantci_create, unsigned int, etp->et_index,
598 uint16_t, tci);
599

--- 78 unchanged lines hidden ---