diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-06 21:11:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 10:39:26 -0400 |
commit | 0e39250845c0f91acc64264709b25f7f9b85c2c3 (patch) | |
tree | d9b2a71f0af7180f5f5fcb7f6a17bf93bf67a3bc /.mailmap | |
parent | 2ee52ad4962b32797bac33fa29ec8159e64c4ee3 (diff) | |
download | lwn-0e39250845c0f91acc64264709b25f7f9b85c2c3.tar.gz lwn-0e39250845c0f91acc64264709b25f7f9b85c2c3.zip |
net: Store virtual address instead of page in netdev_alloc_cache
This change makes it so that we store the virtual address of the page
in the netdev_alloc_cache instead of the page pointer. The idea behind
this is to avoid multiple calls to page_address since the virtual address
is required for every access, but the page pointer is only needed at
allocation or reset of the page.
While I was at it I also reordered the netdev_alloc_cache structure a bit
so that the size is always 16 bytes by dropping size in the case where
PAGE_SIZE is greater than or equal to 32KB.
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions