Thread (49 messages) 49 messages, 4 authors, 2015-06-07

Re: [Xen-devel] [RFC PATCH 09/13] xen-netfront: move grant_{ref, page} to struct grant

From: David Vrabel <hidden>
Date: 2015-05-18 15:46:41

On 12/05/15 18:18, Joao Martins wrote:
Refactors a little bit how grants are stored by moving
grant_rx_ref/grant_tx_ref and grant_tx_page to its
own structure, namely struct grant.
Reviewed-by: David Vrabel <redacted>

Although...
quoted hunk ↗ jump to hunk
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -87,6 +87,11 @@ struct netfront_cb {
 /* IRQ name is queue name with "-tx" or "-rx" appended */
 #define IRQ_NAME_SIZE (QUEUE_NAME_SIZE + 3)
 
+struct grant {
+	grant_ref_t ref;
+	struct page *page;
+};
Is this sort of structure (and the following patch) useful for other
frontends?

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help