mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 10:19:53 +07:00
[NETFILTER]: nf_queue: remove unused data pointer
Remove the data pointer from struct nf_queue_handler. It has never been used and is useless for the only handler that really matters, nfnetlink_queue, since the handler is shared between all instances. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e3ac529815
commit
f9d8928f83
@ -277,8 +277,7 @@ int compat_nf_getsockopt(struct sock *sk, int pf, int optval,
|
|||||||
/* Packet queuing */
|
/* Packet queuing */
|
||||||
struct nf_queue_handler {
|
struct nf_queue_handler {
|
||||||
int (*outfn)(struct sk_buff *skb, struct nf_info *info,
|
int (*outfn)(struct sk_buff *skb, struct nf_info *info,
|
||||||
unsigned int queuenum, void *data);
|
unsigned int queuenum);
|
||||||
void *data;
|
|
||||||
char *name;
|
char *name;
|
||||||
};
|
};
|
||||||
extern int nf_register_queue_handler(int pf,
|
extern int nf_register_queue_handler(int pf,
|
||||||
|
@ -272,7 +272,7 @@ ipq_build_packet_message(struct ipq_queue_entry *entry, int *errp)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info,
|
ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info,
|
||||||
unsigned int queuenum, void *data)
|
unsigned int queuenum)
|
||||||
{
|
{
|
||||||
int status = -EINVAL;
|
int status = -EINVAL;
|
||||||
struct sk_buff *nskb;
|
struct sk_buff *nskb;
|
||||||
|
@ -269,7 +269,7 @@ ipq_build_packet_message(struct ipq_queue_entry *entry, int *errp)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info,
|
ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info,
|
||||||
unsigned int queuenum, void *data)
|
unsigned int queuenum)
|
||||||
{
|
{
|
||||||
int status = -EINVAL;
|
int status = -EINVAL;
|
||||||
struct sk_buff *nskb;
|
struct sk_buff *nskb;
|
||||||
|
@ -153,7 +153,7 @@ static int __nf_queue(struct sk_buff *skb,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
afinfo->saveroute(skb, info);
|
afinfo->saveroute(skb, info);
|
||||||
status = qh->outfn(skb, info, queuenum, qh->data);
|
status = qh->outfn(skb, info, queuenum);
|
||||||
|
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
|
|
||||||
|
@ -534,7 +534,7 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue,
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
nfqnl_enqueue_packet(struct sk_buff *skb, struct nf_info *info,
|
nfqnl_enqueue_packet(struct sk_buff *skb, struct nf_info *info,
|
||||||
unsigned int queuenum, void *data)
|
unsigned int queuenum)
|
||||||
{
|
{
|
||||||
int status = -EINVAL;
|
int status = -EINVAL;
|
||||||
struct sk_buff *nskb;
|
struct sk_buff *nskb;
|
||||||
|
Loading…
Reference in New Issue
Block a user