Error Setting Outbound Mcast Interface
Clusters for Linux Brought to you by: brucewalker, rogertsang Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Bugs Feature Requests News SVN CVS Create Ticket View Stats Group default v1.2.0 v1.2.2 v1.9.1 v1.9.2 v1.9.3 Searches Changes Closed Tickets Open Tickets Help Formatting Help #101 IPVS: Error setting outbound mcast interface. Milestone: v1.9.1 Status: closed-accepted Owner: Roger Tsang Labels: Networking (12) Priority: 5 Updated: 2006-06-02 Created: 2005-11-07 Creator: Roger Tsang Private: No When using channel bonding for ICS where the sync_interface is bond0, and garp_interface is eth0 on the LVS directors, HA-LVS passes bond0eth0 to IPVS when setting up the connection sync daemons. master sync daemon (mcast=bond0eth0, syncid=0) The bug is in lvs_ha.c IFNAME_LEN define. It should be aliased to ipvs.h MAX..IFNAME.. define. Discussion Roger Tsang - 2005-11-08 Logged In: YES user_id=1246761 Checked in a fix. http://article.gmane.org/gmane.linux.cluster.ssic.cvs/6618 If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Roger Tsang - 2006-06-02 status: open --> closed-accepted If you would like to refer to this comment somewhere else in this project, copy and paste the following link: SourceForge About Site Status @sfnet_ops Powered by Apache Allura™ Find and Develop Software Create a Project Software Directory Top Downloaded Projects Community Blog @sourceforge Resources Help Site Documentation Support Request © 2016 Slashdot Media. All Rights Reserved. Terms Privacy Opt Out Choices Advertise Get latest updates about Open Source Projects, Conferences and News. Sign up for the SourceForge newsletter: I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. No, thanks
Date: 2005-11-08 0:43:06 Message-ID: E1EZHZq-0004X7-P8 () sc8-sf-web3 ! sourceforge ! net [Download message RAW] Bugs item #1350781, was opened at 2005-11-07 18:26 Message generated for change (Comment added) made by rogertsang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=405834&aid=1350781&group_id=32541 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, https://sourceforge.net/p/ssic-linux/bugs/101/ not just the latest update. Category: Networking Group: v1.9.1 Status: Open Resolution: None Priority: 5 Submitted By: Roger Tsang (rogertsang) Assigned to: Roger Tsang (rogertsang) Summary: IPVS: Error setting outbound mcast interface. Initial Comment: When using channel bonding for ICS where the sync_interface is bond0, http://marc.info/?l=ssic-linux-devel&m=113141061914082 and garp_interface is eth0 on the LVS directors, HA-LVS passes bond0eth0 to IPVS when setting up the connection sync daemons. master sync daemon (mcast=bond0eth0, syncid=0) The bug is in lvs_ha.c IFNAME_LEN define. It should be aliased to ipvs.h MAX..IFNAME.. define. ---------------------------------------------------------------------- >Comment By: Roger Tsang (rogertsang) Date: 2005-11-07 19:43 Message: Logged In: YES user_id=1246761 Checked in a fix. http://article.gmane.org/gmane.linux.cluster.ssic.cvs/6618 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=405834&aid=1350781&group_id=32541 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ ssic-linux-devel mailing list ssic-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ssic-linux-devel [prev in list] [next in list] [prev in thread] [next in thread] Configure | About | News | Addalist | SponsoredbyKoreLogic
Print Thread | View Threaded ja at ssi Jul7,2015,12:14PM Post #1 of 1 (402 views) Permalink [lvs-users] [PATCH net RFC] ipvs: add more mcast parameters for http://www.gossamer-threads.com/lists/lvs/users/25466 the sync daemon Add new sync parameters for sync daemon, used on start: - sync_maxlen: for setups with large MTU to send large sync packets and to avoid problems with MTU changes. The default value is now based on MTU but no more than 1500 for compatibility reasons. - mcast_group: configure the multicast address, now IPv6 is supported too - mcast_port: configure the multicast port - mcast_ttl: error setting configure the multicast TTL/HOP_LIMIT Now the sync messages do not use DF flag to allow fragmentation on MTU changes. Signed-off-by: Julian Anastasov <ja [at] ssi> --- include/net/ip_vs.h | 23 ++- include/uapi/linux/ip_vs.h | 5 + net/netfilter/ipvs/ip_vs_ctl.c | 104 ++++++++++--- net/netfilter/ipvs/ip_vs_sync.c | 316 +++++++++++++++++++++++++++------------- 4 files changed, 316 insertions(+), 132 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 4e3731e..9b9ca87 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h @@ -846,6 +846,17 @@ struct ipvs_master_sync_state error setting outbound { /* How much time to keep dests in trash */ #define IP_VS_DEST_TRASH_PERIOD (120 * HZ) +struct ipvs_sync_daemon_cfg { + union nf_inet_addr mcast_group; + int syncid; + u16 sync_maxlen; + u16 mcast_port; + u8 mcast_af; + u8 mcast_ttl; + /* multicast interface name */ + char mcast_ifn[IP_VS_IFNAME_MAXLEN]; +}; + /* IPVS in network namespace */ struct netns_ipvs { int gen; /* Generation */ @@ -961,15 +972,10 @@ struct netns_ipvs { spinlock_t sync_buff_lock; struct task_struct **backup_threads; int threads_mask; - int send_mesg_maxlen; - int recv_mesg_maxlen; volatile int sync_state; - volatile int master_syncid; - volatile int backup_syncid; struct mutex sync_mutex; - /* multicast interface name */ - char master_mcast_ifn[IP_VS_IFNAME_MAXLEN]; - char backup_mcast_ifn[IP_VS_IFNAME_MAXLEN]; + struct ipvs_sync_daemon_cfg mcfg; /* Master Configuration */ + struct ipvs_sync_daemon_cfg bcfg; /* Backup Configuration */ /* net name space ptr */ struct net *net; /* Needed by timer routines */ /* Number of heterogeneous destinations, needed becaus heterogeneous @@ -1408,7 +1414,8 @@ static inline void ip_vs_dest_put_and_free(struct ip_vs_dest *dest) /* IPVS sync daemon data and function prototypes * (from ip_vs_sync.c) */ -int start_sync_thread(struct net *net, int state, char *mcast_ifn, __u8 syncid); +int start_sync_thread(struct net *net, struct ipvs_sync_daemon_cfg *cfg, + int state); int stop_sync_thread(struct net *net, int state); void ip_vs_syn