Page MenuHomeFreeBSD

D61211.1794698396.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61211.1794698396.diff

diff --git a/sys/dev/gve/gve_rx_dqo.c b/sys/dev/gve/gve_rx_dqo.c
--- a/sys/dev/gve/gve_rx_dqo.c
+++ b/sys/dev/gve/gve_rx_dqo.c
@@ -103,7 +103,7 @@
err = gve_dma_alloc_coherent(priv,
sizeof(struct gve_rx_desc_dqo) * priv->rx_desc_cnt,
- CACHE_LINE_SIZE, &rx->desc_ring_mem);
+ PAGE_SIZE, &rx->desc_ring_mem);
if (err != 0) {
device_printf(priv->dev,
"Failed to alloc desc ring for rx ring %d", i);
@@ -114,7 +114,7 @@
err = gve_dma_alloc_coherent(priv,
sizeof(struct gve_rx_compl_desc_dqo) * priv->rx_desc_cnt,
- CACHE_LINE_SIZE, &rx->dqo.compl_ring_mem);
+ PAGE_SIZE, &rx->dqo.compl_ring_mem);
if (err != 0) {
device_printf(priv->dev,
"Failed to alloc compl ring for rx ring %d", i);
diff --git a/sys/dev/gve/gve_tx_dqo.c b/sys/dev/gve/gve_tx_dqo.c
--- a/sys/dev/gve/gve_tx_dqo.c
+++ b/sys/dev/gve/gve_tx_dqo.c
@@ -173,7 +173,7 @@
/* Descriptor ring */
err = gve_dma_alloc_coherent(priv,
sizeof(union gve_tx_desc_dqo) * priv->tx_desc_cnt,
- CACHE_LINE_SIZE, &tx->desc_ring_mem);
+ PAGE_SIZE, &tx->desc_ring_mem);
if (err != 0) {
device_printf(priv->dev,
"Failed to alloc desc ring for tx ring %d", i);
@@ -184,7 +184,7 @@
/* Completion ring */
err = gve_dma_alloc_coherent(priv,
sizeof(struct gve_tx_compl_desc_dqo) * priv->tx_desc_cnt,
- CACHE_LINE_SIZE, &tx->dqo.compl_ring_mem);
+ PAGE_SIZE, &tx->dqo.compl_ring_mem);
if (err != 0) {
device_printf(priv->dev,
"Failed to alloc compl ring for tx ring %d", i);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 14, 11:19 PM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41697743
Default Alt Text
D61211.1794698396.diff (1 KB)

Event Timeline