-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPVS SNMP fixes, improvements and enhancements #2409
Commits on Apr 28, 2024
-
ipvs: Add snmp_vs_stats_update_interval for updating SNMP stats
The timer for updating VS and RS stats for SNMP was hard coded to 5 seconds. This commit still deffaults to 5 seconds but allows the timer to be configured. Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5f374fc - Browse repository at this point
Copy the full SHA 5f374fcView commit details -
ipvs: Don't call calloc() in ipvs_get_service()
We need to use our wrappers around malloc/free calls, so it now just calls MALLOC(). Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7361417 - Browse repository at this point
Copy the full SHA 7361417View commit details -
ipvs: Make ipvs_get_dests() use individual parameters
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f94ddac - Browse repository at this point
Copy the full SHA f94ddacView commit details -
ipvs: rs_cnt is only used when using SNMP
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd8a13e - Browse repository at this point
Copy the full SHA cd8a13eView commit details -
ipvs: optimise setting tsvc in ipvs_get_service()
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 91496f8 - Browse repository at this point
Copy the full SHA 91496f8View commit details -
configure: add comment re when IPVS netlink support started
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 97d0ac4 - Browse repository at this point
Copy the full SHA 97d0ac4View commit details -
ipvs: Add snmp_rs_stats_update_interval
This compliments snmp_vs_stats_update_interval, and also real server stats are now only fetched from the kernel when there is an SNMP request for them; i.e. VS stats and RS stats are updated separately. Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a8ea5f - Browse repository at this point
Copy the full SHA 3a8ea5fView commit details -
ipvs: Use assignment of structures rather than memcpy()
This allows proper type checking by the compiler. Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c7bade7 - Browse repository at this point
Copy the full SHA c7bade7View commit details -
ipvs: fix updating stats for SNMP when fetched via socket interface
This code is probably never used, since netlink is now used in preference to the old socket interface, and the socket interface is only used if netlink fails, which should neveer be the case. Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7752c33 - Browse repository at this point
Copy the full SHA 7752c33View commit details -
ipvs: Don't duplicate storage of 32 bit SNMP stats
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 930f3b7 - Browse repository at this point
Copy the full SHA 930f3b7View commit details -
ipvs: Use correct variable for returning 64 bit stats for SNMP
The long_ret variable was being set but the address of the counter64_ret variable was being return for the low 32 bits of the stats counters. Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aa83c57 - Browse repository at this point
Copy the full SHA aa83c57View commit details -
ipvs: Add counter64 options for 64 bit SNMP stats
For most 64 bit counter stats, the only way of reading them was to read the high and low 32 bits seperately. This commit adds 64 bit counters for this stats, so they can be read with only one snmp get. Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7f3f2ba - Browse repository at this point
Copy the full SHA 7f3f2baView commit details -
ipvs: Use structure sizes for lengths of IPv4/6 addresses
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e13b3b8 - Browse repository at this point
Copy the full SHA e13b3b8View commit details -
ipvs: Use SNMP variable3/4/7 instead of variable8 where appropriate
This reduces the memory usage of keepalived Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 63591bc - Browse repository at this point
Copy the full SHA 63591bcView commit details -
ipvs: streamline SNMP real server code when no sorry server
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b37052a - Browse repository at this point
Copy the full SHA b37052aView commit details -
ipvs: Merge several SNMP functions that were doing nearly the same thing
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 062f1df - Browse repository at this point
Copy the full SHA 062f1dfView commit details -
ipvs: Use kernel structures for ipvs daemon parameters
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 18f3835 - Browse repository at this point
Copy the full SHA 18f3835View commit details -
ipvs: Remove unused fields from ip_vs_get_dest_entries_app structure
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 247fd14 - Browse repository at this point
Copy the full SHA 247fd14View commit details -
ipvs: Streamline finding VS group entry for SNMP
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c3133e9 - Browse repository at this point
Copy the full SHA c3133e9View commit details -
ipvs: Streamline finding RS for SNMP
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 280e16b - Browse repository at this point
Copy the full SHA 280e16bView commit details -
ipvs: Streamline finding VS for SNMP
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 254513a - Browse repository at this point
Copy the full SHA 254513aView commit details -
ipvs: don't duplicate ipvs_getinfo() functionality
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35195dc - Browse repository at this point
Copy the full SHA 35195dcView commit details -
ipvs: set var_len = 0 when returning an error to SNMP
The net-snmp code does this in header_simple_table(), so we should do so when using a non-simple table. Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2e165df - Browse repository at this point
Copy the full SHA 2e165dfView commit details -
ipvs: fix building with SNMP support without using netlink interface
Signed-off-by: Quentin Armitage <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5a85dec - Browse repository at this point
Copy the full SHA 5a85decView commit details