Skip to content

Commit

Permalink
net/packet: remove unused PGV_FROM_VMALLOC definition.
Browse files Browse the repository at this point in the history
This patch removes the definition of PGV_FROM_VMALLOC from af_packet.c.
The PGV_FROM_VMALLOC definition was already removed by
commit 441c793 ("net: cleanup unused macros in net directory"),
and its usage was removed even before by commit c56b4d9
("af_packet: remove pgv.flags"); but it was added back by mistake later on,
in commit f6fb8f1 ("af-packet: TPACKET_V3 flexible buffer implementation").

Signed-off-by: Rami Rosen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Rosen, Rami authored and davem330 committed Jul 19, 2017
1 parent eeef171 commit 8410095
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
#define BLK_PLUS_PRIV(sz_of_priv) \
(BLK_HDR_LEN + ALIGN((sz_of_priv), V3_ALIGNMENT))

#define PGV_FROM_VMALLOC 1

#define BLOCK_STATUS(x) ((x)->hdr.bh1.block_status)
#define BLOCK_NUM_PKTS(x) ((x)->hdr.bh1.num_pkts)
#define BLOCK_O2FP(x) ((x)->hdr.bh1.offset_to_first_pkt)
Expand Down

0 comments on commit 8410095

Please sign in to comment.