summaryrefslogtreecommitdiffstats
path: root/net/packet/internal.h
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2018-08-13 10:42:46 +0800
committerDavid S. Miller <davem@davemloft.net>2018-08-13 09:21:05 -0700
commit71e41286203c017d24f041a7cd71abea7ca7b1e0 (patch)
treea0b91dc171133fc0ecbe5c192f6793a6d3f913f8 /net/packet/internal.h
parent0192e7d46c776f7f735560bfa4d40eac3fd700f9 (diff)
downloadlinux-71e41286203c017d24f041a7cd71abea7ca7b1e0.tar.bz2
packet: switch kvzalloc to allocate memory
The patches includes following change: *Use modern kvzalloc()/kvfree() instead of custom allocations. *Remove order argument for alloc_pg_vec, it can get from req. *Remove order argument for free_pg_vec, free_pg_vec now uses kvfree which does not need order argument. *Remove pg_vec_order from struct packet_ring_buffer, no longer need to save/restore 'order' *Remove variable 'order' for packet_set_ring, it is now unused Signed-off-by: Zhang Yu <zhangyu31@baidu.com> Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/internal.h')
-rw-r--r--net/packet/internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/packet/internal.h b/net/packet/internal.h
index 3bb7c5fb3bff..8f50036f62f0 100644
--- a/net/packet/internal.h
+++ b/net/packet/internal.h
@@ -64,7 +64,6 @@ struct packet_ring_buffer {
unsigned int frame_size;
unsigned int frame_max;
- unsigned int pg_vec_order;
unsigned int pg_vec_pages;
unsigned int pg_vec_len;