// SPDX-License-Identifier: GPL-2.0-or-later /* * IPVS: Overflow-Connection Scheduling module * * Authors: Raducu Deaconu <[email protected]> * * Scheduler implements "overflow" loadbalancing according to number of active * connections , will keep all connections to the node with the highest weight * and overflow to the next node if the number of connections exceeds the node's * weight. * Note that this scheduler might not be suitable for UDP because it only uses * active connections */ #define KMSG_COMPONENT … #define pr_fmt(fmt) … #include <linux/module.h> #include <linux/kernel.h> #include <net/ip_vs.h> /* OVF Connection scheduling */ static struct ip_vs_dest * ip_vs_ovf_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, struct ip_vs_iphdr *iph) { … } static struct ip_vs_scheduler ip_vs_ovf_scheduler = …; static int __init ip_vs_ovf_init(void) { … } static void __exit ip_vs_ovf_cleanup(void) { … } module_init(…) …; module_exit(ip_vs_ovf_cleanup); MODULE_LICENSE(…) …; MODULE_DESCRIPTION(…) …;