summaryrefslogtreecommitdiff
path: root/scripts/system
AgeCommit message (Collapse)Author
2011-05-20irq-affinity: more fixupStephen Hemminger
1. Fix thread_per_core -- now a global variable 2. Add documentation about where still broken with offline cpus 3. Break out hamming weight function (might be used to fix #2) Tested on UP, 4 core x 2 thread, 8 socket (virt) and Multiqueue and single queue NIC.
2011-05-20irq-affinity: use sysfs to read cpu topologyStephen Hemminger
Change to using sysfs to read cpu topology. This makes code more robust and follow the standard practice of other utilities. As an added benefit, irq-affinty now handles offline cpu's and other cases where cpu numbers are not fully populated.
2011-05-20irq-affinity: initialize sockets to 1Stephen Hemminger
2011-05-19irq-affinity: fix handling of UP systemStephen Hemminger
On a UP system, there is no "physical-id" in /proc/cpuinfo.
2011-05-19Use syslog perror for debug optionStephen Hemminger
Rather than reinventing existing code, use library.
2011-05-17Bugfix: 6773 (again). Fix handling of single-queue NICs on MPs.Bob Gilligan
Some single-queue NICs use the multiqueue IRQ naming format (e.g. eth0-rx-0). We need to select the CPU assignements for these IRQs using the same algorithm that we use for single-queue NICs using the standard naming format (e.g. eth0).
2011-05-17Fix calculation of number of cores on systems with more than one socket.Bob Gilligan
2011-05-17Support more than 10 CPUs.Bob Gilligan
2011-05-17irq-affinity: add workaround to avoid some cpu'sStephen Hemminger
For routing and other applications it is helpful to provide some mechanism to reserve some set of CPU's and not assign interface IRQ's to them. Uses environment variable VYATTA_IRQAFFINITY_BANNED_CPUS as mechanism similar to irqbalance(8).
2011-05-16smp-affinity: fix typo for assign_multiqueueStephen Hemminger
Multiqueue setup was broken ixgbe because of s/assign/assing/
2011-05-06Support netxen NIC irq naming conventionStephen Hemminger
Bug 7062 The irq's on Netxen NIC are named: eth0[0] eth0[1] eth0[2] ... This confuses the auto IRQ affinity script.
2011-05-03Make irq affinity handle any irq naming conventionStephen Hemminger
Bug 7032 (reprise) Since there are various forms of multi-queue naming, it is better to just go with the simplest pattern which is to take all the irq's of form ethX-... and sort them.
2011-05-02Fix irq-affinity mapping for multiqueue NIC'sStephen Hemminger
Bug 7032 Fix matchinging of irq's named 'eth0-TxRx-0'. And change the code to handle any form of IRQ naming of multiqueue that is eth0-xxx-0.
2011-04-13fix typo in irq-affinityStephen Hemminger
2011-04-13Fix irq naming convention mapping codeStephen Hemminger
The mislabeled commit ddce08161907797fe914ba609b362d812e23fc8a Fix wrong name in get_irq_affinity Was some code to handle Broadcom device IRQ naming convention that was untested. The part that built regex was incorrectly expanding a string with regex characters.
2011-04-10Fix wrong name in get_irq_affinityStephen Hemminger
2011-03-16Handle irq assignment on multiqueue NICStephen Hemminger
Bug 6845, 6821 Need to avoid using /sys/class/net/ethX/device/irq (or /sys/bus/pci/.../irq) because these don't handle MSI or multiqueue. This also resolves issues with Vmware/ESX.
2011-03-08Fix typo in domain name regexStephen Hemminger
meant to allow any upper (or lower case) in domain name.
2011-03-01Warn if attempting to force mask on multiqueue NICStephen Hemminger
Bug 6845 Warn (and ignore) attempt to assign IRQ directly on multiqueuej NIC.
2011-02-25Workaround Xen NIC addressStephen Hemminger
Bug 6837 Xen does not behave like normal hardware. It assigns a random MAC address (with local bit set).
2011-02-25Validate domain and host nameStephen Hemminger
Bug 6243 More complete validation of host name and domain name
2011-02-25Don't set irq affinity if device is disabledStephen Hemminger
Bug 6784 No point in trying to force affinity if device is offline.
2011-02-22Handle Vmware mulitqueue naming conventionStephen Hemminger
Adapt to irq naming convention in 2.6.37 kernel for vmxnet3 driver.
2011-02-21Handle case of device with no active IRQStephen Hemminger
Bug 6784 Disabled device has no IRQ, so don't change it.
2011-02-03Bugfix 6773: Spread load of single-queue NICs across all CPUs.Bob Gilligan
The initial CPU selection function needs to take hyperthreading into account.
2011-01-31Fix grammar error in help string.Robert Bays
(cherry picked from commit a943568e64bca73bb2951e968d0cc752d72874ab)
2011-01-20Change for rsyslog reloadStephen Hemminger
Bug 6663 (cherry picked from commit fa7d81f125033b7ed4bd549eb6905918612a6877)
2010-12-22Affinity script was failing to configure some queues of multi-queue NICs.Bob Gilligan
The problem was due to incorrect initialization of the $q and $cpu variables. Their initializations were reversed.
2010-12-10Fix update of serial speed on all grub linesStephen Hemminger
Bug 6551 Need to handle case where console=ttyS0,9600 is at end of line
2010-12-02Mark the Vyatta specific section of inittabStephen Hemminger
2010-12-02Allow more serial console linesStephen Hemminger
Since inittab allows up to 4 characters for id field, allow 1000 entries.
2010-12-02Allow configuring console speed etcStephen Hemminger
Bug 3849, 2289, 4126 Adds configuration of serial console: set system console { device ttyS0 { speed 19200 } device ttyACM0 { speed 57600 type modem } } This covers the cases of deleting serial console, changing speed, and allowing modem console devices
2010-11-29Automatically configure physical device for wireless interfacesStephen Hemminger
When system is booted with newly detected wireless device, both the hw-id and physical-device need to be setup.
2010-11-29Fix interface scanning on boot - allow more mac addressesStephen Hemminger
The code to match on locally assigned bit had a bad regex. Use conversion to hex and mask instead. Also don't allow multicast address bit.
2010-11-16Add ability to configure telnet listen-addresStephen Hemminger
Bug 4452 Allow configuring a telnet listen-address either IPv4 or IPv6 (like SSH). Unlike SSH, telnet only supports a single listen-address
2010-11-16update call to error location api.Michael Larson
2010-11-15Add hw-id for existing interfaces to configStephen Hemminger
If config has interface (without hw-id), then add it on boot.
2010-11-12Fix irq-affinity for special casesStephen Hemminger
Need to handle virtual devices with no IRQ, and older processors without concept of multi-core.
2010-11-12New IRQ affinity script and RPS supportStephen Hemminger
Replace old script with new cleaner script that handles both IRQ affinity and Receive Packet Steering. Instead of two scripts (one for mask and one for auto), do it all with one script. Receive Packet Steering is supported in two ways. If 'auto' is used, then both threads on HT system will be used for receive processing. If explicit mask is given, then two masks can be used to set both IRQ cpus and RPS cpus.
2010-11-12Change mode on all executable scriptsStephen Hemminger
The executable bit should be set on scripts. This only impacts the repository, during build install fixes it.
2010-11-04Add special case for single-queue NICs using multi-queue naming format.Bob Gilligan
2010-10-27Fix set on uniproc machineStephen Hemminger
It is better to just check using normal code path on uniproc than to make everything a special case.
2010-10-27IRQ affinity updateStephen Hemminger
1. Move scripts to vyatta-cfg-system 2. Use syntax to check for legal values 3. Don't fail on UP
2010-10-26Sort the interface names when addingStephen Hemminger
Makes new entries show up in order.
2010-10-26Change vyatta_net_name into a perl scriptStephen Hemminger
Use existing config parser and perl to handle udev device naming. Do renaming early in udev boot, and fixup config file later. This avoids rescanning udev devices on boot and adds preliminary support for hotplug.
2010-10-16Fix syntax error in vyatta_update_console.pl.Stig Thormodsrud
2010-10-15Merge branch 'mendocino' of vm:vyatta/mendocino/vyatta-cfg-system into mendocinoStephen Hemminger
2010-10-15Handle error cases on console updateStephen Hemminger
If inittab doesn't exist or console not configured, just do nothing.
2010-10-15change to accessor for outputerrorroot
2010-10-15Add ability to run modem gettyStephen Hemminger
For some dial in lines, need HAYES modem support.