Deleted Added
full compact
sfxge_tx.h (279094) sfxge_tx.h (279184)
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/dev/sfxge/sfxge_tx.h 279094 2015-02-21 06:24:48Z arybchik $
29 * $FreeBSD: head/sys/dev/sfxge/sfxge_tx.h 279184 2015-02-22 19:25:57Z arybchik $
30 */
31
32#ifndef _SFXGE_TX_H
33#define _SFXGE_TX_H
34
35#include <netinet/in.h>
36#include <netinet/ip.h>
37#include <netinet/tcp.h>

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

212 unsigned int pending __aligned(CACHE_LINE_SIZE);
213 unsigned int completed;
214 struct sfxge_txq *next;
215};
216
217struct sfxge_evq;
218
219extern int sfxge_tx_packet_add(struct sfxge_txq *, struct mbuf *);
30 */
31
32#ifndef _SFXGE_TX_H
33#define _SFXGE_TX_H
34
35#include <netinet/in.h>
36#include <netinet/ip.h>
37#include <netinet/tcp.h>

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

212 unsigned int pending __aligned(CACHE_LINE_SIZE);
213 unsigned int completed;
214 struct sfxge_txq *next;
215};
216
217struct sfxge_evq;
218
219extern int sfxge_tx_packet_add(struct sfxge_txq *, struct mbuf *);
220extern uint64_t sfxge_tx_get_drops(struct sfxge_softc *sc);
220
221extern int sfxge_tx_init(struct sfxge_softc *sc);
222extern void sfxge_tx_fini(struct sfxge_softc *sc);
223extern int sfxge_tx_start(struct sfxge_softc *sc);
224extern void sfxge_tx_stop(struct sfxge_softc *sc);
225extern void sfxge_tx_qcomplete(struct sfxge_txq *txq, struct sfxge_evq *evq);
226extern void sfxge_tx_qflush_done(struct sfxge_txq *txq);
227#ifdef SFXGE_HAVE_MQ
228extern void sfxge_if_qflush(struct ifnet *ifp);
229extern int sfxge_if_transmit(struct ifnet *ifp, struct mbuf *m);
230#else
231extern void sfxge_if_start(struct ifnet *ifp);
232#endif
233
234#endif
221
222extern int sfxge_tx_init(struct sfxge_softc *sc);
223extern void sfxge_tx_fini(struct sfxge_softc *sc);
224extern int sfxge_tx_start(struct sfxge_softc *sc);
225extern void sfxge_tx_stop(struct sfxge_softc *sc);
226extern void sfxge_tx_qcomplete(struct sfxge_txq *txq, struct sfxge_evq *evq);
227extern void sfxge_tx_qflush_done(struct sfxge_txq *txq);
228#ifdef SFXGE_HAVE_MQ
229extern void sfxge_if_qflush(struct ifnet *ifp);
230extern int sfxge_if_transmit(struct ifnet *ifp, struct mbuf *m);
231#else
232extern void sfxge_if_start(struct ifnet *ifp);
233#endif
234
235#endif