diff options
| author | David S. Miller <davem@davemloft.net> | 2015-01-14 00:22:12 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-01-14 00:22:12 -0500 |
| commit | 6a38cc2be61c2293112adfa019158b9dc6e7eb03 (patch) | |
| tree | 47cb71e2663f17bdb8abea097c3c030d03c63d81 /include | |
| parent | 933685cacb0483d43345273c9e83f7ff0c8dc4bd (diff) | |
| parent | a55e8bb8fb89c90b33791861e59859a39e57ba30 (diff) | |
Merge branch 'xen-netfront-next'
David Vrabel says:
====================
xen-netfront: refactor making Tx requests
As netfront as evolved to handle different sorts of skbs the code to
fill a Tx requests has been copy and pasted several times. The series
refactors this and a few other areas.
The first patch is to a Xen header but this can be merged via
net-next.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/xen/page.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xen/page.h b/include/xen/page.h index 12765b6f9517..c5ed20bb3fe9 100644 --- a/include/xen/page.h +++ b/include/xen/page.h @@ -3,6 +3,11 @@ #include <asm/xen/page.h> +static inline unsigned long page_to_mfn(struct page *page) +{ + return pfn_to_mfn(page_to_pfn(page)); +} + struct xen_memory_region { phys_addr_t start; phys_addr_t size; |
