diff options
author | Robert Mustacchi <rm@joyent.com> | 2017-06-23 23:05:04 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2017-07-15 15:54:06 +0000 |
commit | ab70a126a5ce1f47b2c6890ef36e4f28ac81f374 (patch) | |
tree | 49e430163cfe98ebcce51163e600192efd965c6a | |
parent | 97d0229857d41b60313971575c862771240e366f (diff) | |
download | illumos-joyent-ab70a126a5ce1f47b2c6890ef36e4f28ac81f374.tar.gz |
Finish stubbing out the pm_handle_t which is for pre-mapped buffers
-rw-r--r-- | usr/src/uts/common/io/qede/qede.h | 2 | ||||
-rw-r--r-- | usr/src/uts/common/io/qede/qede_gld.c | 2 | ||||
-rw-r--r-- | usr/src/uts/common/io/qede/qede_main.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/qede/qede.h b/usr/src/uts/common/io/qede/qede.h index 0f164dc07c..9c719b3cf3 100644 --- a/usr/src/uts/common/io/qede/qede.h +++ b/usr/src/uts/common/io/qede/qede.h @@ -722,7 +722,9 @@ typedef struct qede { * used for getting sglist for mbkls * that were already mapped in mac layer */ +#ifdef DBLK_DMA_PREMAP pm_handle_t pm_handle; +#endif /* current operating paramters */ uint32_t mtu; diff --git a/usr/src/uts/common/io/qede/qede_gld.c b/usr/src/uts/common/io/qede/qede_gld.c index c451797ff5..36232a2011 100644 --- a/usr/src/uts/common/io/qede/qede_gld.c +++ b/usr/src/uts/common/io/qede/qede_gld.c @@ -2002,7 +2002,9 @@ qede_mac_start(void * arg) mutex_exit(&qede->drv_lock); +#ifdef DBLK_DMA_PREMAP qede->pm_handle = mac_pmh_tx_get(qede->mac_handle); +#endif return (0); } diff --git a/usr/src/uts/common/io/qede/qede_main.c b/usr/src/uts/common/io/qede/qede_main.c index 43e182d180..10d069b149 100644 --- a/usr/src/uts/common/io/qede/qede_main.c +++ b/usr/src/uts/common/io/qede/qede_main.c @@ -2873,7 +2873,9 @@ qede_fastpath_config(qede_t *qede) tx_ring->tx_buf_size = qede->tx_buf_size; tx_ring->tx_ring_size = qede->tx_ring_size; tx_ring->queue_started = B_FALSE; +#ifdef DBLK_DMA_PREMAP tx_ring->pm_handle = qede->pm_handle; +#endif tx_ring->doorbell_addr = qede->doorbell; |