* [PATCH net-next] net/packet: remove unused PGV_FROM_VMALLOC definition.
@ 2017-07-18 19:23 Rami Rosen
2017-07-19 23:28 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Rami Rosen @ 2017-07-18 19:23 UTC (permalink / raw)
To: davem; +Cc: netdev, loke.chetan, xiaosuo, shanwei, Rami Rosen
This patch removes the definition of PGV_FROM_VMALLOC from af_packet.c.
The PGV_FROM_VMALLOC definition was already removed by
commit 441c793a5650 ("net: cleanup unused macros in net directory"),
and its usage was removed even before by commit c56b4d90123b
("af_packet: remove pgv.flags"); but it was added back by mistake later on,
in commit f6fb8f100b80 ("af-packet: TPACKET_V3 flexible buffer implementation").
Signed-off-by: Rami Rosen <rami.rosen@intel.com>
---
net/packet/af_packet.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index e3beb28203eb..ee035cbe5621 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -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)
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net/packet: remove unused PGV_FROM_VMALLOC definition.
2017-07-18 19:23 [PATCH net-next] net/packet: remove unused PGV_FROM_VMALLOC definition Rami Rosen
@ 2017-07-19 23:28 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-07-19 23:28 UTC (permalink / raw)
To: rami.rosen; +Cc: netdev, loke.chetan, xiaosuo, shanwei
From: Rami Rosen <rami.rosen@intel.com>
Date: Tue, 18 Jul 2017 22:23:30 +0300
> This patch removes the definition of PGV_FROM_VMALLOC from af_packet.c.
> The PGV_FROM_VMALLOC definition was already removed by
> commit 441c793a5650 ("net: cleanup unused macros in net directory"),
> and its usage was removed even before by commit c56b4d90123b
> ("af_packet: remove pgv.flags"); but it was added back by mistake later on,
> in commit f6fb8f100b80 ("af-packet: TPACKET_V3 flexible buffer implementation").
>
> Signed-off-by: Rami Rosen <rami.rosen@intel.com>
Applied, thanks Rami.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-19 23:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18 19:23 [PATCH net-next] net/packet: remove unused PGV_FROM_VMALLOC definition Rami Rosen
2017-07-19 23:28 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.