linux/net/netfilter/xt_cpu.c

// SPDX-License-Identifier: GPL-2.0-only
/* Kernel module to match running CPU */

/*
 * Might be used to distribute connections on several daemons, if
 * RPS (Remote Packet Steering) is enabled or NIC is multiqueue capable,
 * each RX queue IRQ affined to one CPU (1:1 mapping)
 */

/* (C) 2010 Eric Dumazet
 */

#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/netfilter/xt_cpu.h>
#include <linux/netfilter/x_tables.h>

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_ALIAS();
MODULE_ALIAS();

static int cpu_mt_check(const struct xt_mtchk_param *par)
{}

static bool cpu_mt(const struct sk_buff *skb, struct xt_action_param *par)
{}

static struct xt_match cpu_mt_reg __read_mostly =;

static int __init cpu_mt_init(void)
{}

static void __exit cpu_mt_exit(void)
{}

module_init();
module_exit(cpu_mt_exit);