ipoib.h (9d40cf60d6875924171eafe6364d4edc69f8d4c2) | ipoib.h (4e38478c595a9e6225b525890d7ee269a203c200) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 3 * 4 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved. 5 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. 6 * Copyright (c) 2004 Voltaire, Inc. All rights reserved. 7 * 8 * This software is available to you under a choice of one of two --- 103 unchanged lines hidden (view full) --- 112 IPOIB_FLUSH_NORMAL, 113 IPOIB_FLUSH_HEAVY 114}; 115 116enum { 117 IPOIB_ENCAP_LEN = 4, 118 IPOIB_HEADER_LEN = IPOIB_ENCAP_LEN + INFINIBAND_ALEN, 119 IPOIB_UD_MAX_MTU = 4 * 1024, | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 3 * 4 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved. 5 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. 6 * Copyright (c) 2004 Voltaire, Inc. All rights reserved. 7 * 8 * This software is available to you under a choice of one of two --- 103 unchanged lines hidden (view full) --- 112 IPOIB_FLUSH_NORMAL, 113 IPOIB_FLUSH_HEAVY 114}; 115 116enum { 117 IPOIB_ENCAP_LEN = 4, 118 IPOIB_HEADER_LEN = IPOIB_ENCAP_LEN + INFINIBAND_ALEN, 119 IPOIB_UD_MAX_MTU = 4 * 1024, |
120// IPOIB_UD_RX_SG = (IPOIB_UD_MAX_MTU / MJUMPAGESIZE), 121 IPOIB_UD_RX_SG = 2, | 120 IPOIB_UD_RX_SG = 2, /* packet header and one cluster */ |
122 IPOIB_UD_TX_SG = (IPOIB_UD_MAX_MTU / MCLBYTES) + 2, 123 IPOIB_CM_MAX_MTU = (64 * 1024), 124 IPOIB_CM_TX_SG = (IPOIB_CM_MAX_MTU / MCLBYTES) + 2, | 121 IPOIB_UD_TX_SG = (IPOIB_UD_MAX_MTU / MCLBYTES) + 2, 122 IPOIB_CM_MAX_MTU = (64 * 1024), 123 IPOIB_CM_TX_SG = (IPOIB_CM_MAX_MTU / MCLBYTES) + 2, |
125 IPOIB_CM_RX_SG = (IPOIB_CM_MAX_MTU / MJUMPAGESIZE), | 124 IPOIB_CM_RX_SG = (IPOIB_CM_MAX_MTU / MCLBYTES) + 2, |
126 IPOIB_RX_RING_SIZE = 256, 127 IPOIB_TX_RING_SIZE = 128, 128 IPOIB_MAX_RX_SG = MAX(IPOIB_CM_RX_SG, IPOIB_UD_RX_SG), 129 IPOIB_MAX_TX_SG = MAX(IPOIB_CM_TX_SG, IPOIB_UD_TX_SG), 130 IPOIB_MAX_QUEUE_SIZE = 8192, 131 IPOIB_MIN_QUEUE_SIZE = 2, 132 IPOIB_CM_MAX_CONN_QP = 4096, 133 --- 390 unchanged lines hidden (view full) --- 524void ipoib_drain_cq(struct ipoib_dev_priv *priv); 525 526int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req, int max); 527void ipoib_dma_unmap_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req); 528int ipoib_poll_tx(struct ipoib_dev_priv *priv, bool do_start); 529 530void ipoib_dma_unmap_rx(struct ipoib_dev_priv *priv, struct ipoib_rx_buf *rx_req); 531void ipoib_dma_mb(struct ipoib_dev_priv *priv, struct mbuf *mb, unsigned int length); | 125 IPOIB_RX_RING_SIZE = 256, 126 IPOIB_TX_RING_SIZE = 128, 127 IPOIB_MAX_RX_SG = MAX(IPOIB_CM_RX_SG, IPOIB_UD_RX_SG), 128 IPOIB_MAX_TX_SG = MAX(IPOIB_CM_TX_SG, IPOIB_UD_TX_SG), 129 IPOIB_MAX_QUEUE_SIZE = 8192, 130 IPOIB_MIN_QUEUE_SIZE = 2, 131 IPOIB_CM_MAX_CONN_QP = 4096, 132 --- 390 unchanged lines hidden (view full) --- 523void ipoib_drain_cq(struct ipoib_dev_priv *priv); 524 525int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req, int max); 526void ipoib_dma_unmap_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req); 527int ipoib_poll_tx(struct ipoib_dev_priv *priv, bool do_start); 528 529void ipoib_dma_unmap_rx(struct ipoib_dev_priv *priv, struct ipoib_rx_buf *rx_req); 530void ipoib_dma_mb(struct ipoib_dev_priv *priv, struct mbuf *mb, unsigned int length); |
532struct mbuf *ipoib_alloc_map_mb(struct ipoib_dev_priv *priv, struct ipoib_rx_buf *rx_req, int align, int size); | 531struct mbuf *ipoib_alloc_map_mb(struct ipoib_dev_priv *priv, struct ipoib_rx_buf *rx_req, int align, int size, int max_frags); |
533 534 535void ipoib_set_ethtool_ops(struct ifnet *dev); 536int ipoib_set_dev_features(struct ipoib_dev_priv *priv, struct ib_device *hca); 537 538#ifdef CONFIG_INFINIBAND_IPOIB_CM 539 540#define IPOIB_FLAGS_RC 0x80 --- 218 unchanged lines hidden --- | 532 533 534void ipoib_set_ethtool_ops(struct ifnet *dev); 535int ipoib_set_dev_features(struct ipoib_dev_priv *priv, struct ib_device *hca); 536 537#ifdef CONFIG_INFINIBAND_IPOIB_CM 538 539#define IPOIB_FLAGS_RC 0x80 --- 218 unchanged lines hidden --- |