Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177552245
D61211.1794698396.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61211.1794698396.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61211: gve: Page-align DQO descriptor and completion rings
Attached
Detach File
Event Timeline