Age | Commit message (Collapse) | Author |
|
Previously the script determined the driver that a NIC was using, then
used that to parse the queue names from /proc/interrupts. Now, it
determines the naming convention just by looking at the queue names.
Now the script should work for all NICs that support one of the two
standard naming conventions.
Also added some support for single-queue NICs.
|
|
|
|
|
|
vyatta config token at end of file. this will prevent the
accidental overwrite of non vyatta config files. check on prevent existing files that don't contain ' === vyatta-config-version:'
from being saved to.
|
|
This change implements a mechanism for setting the IRQ affinity of NIC
interrupts in a way that is optimally balanced. The affinity settings
are static, and are set up at configuration time. I've added "auto"
as a new legal value to the "interfaces ethernet ethX smp_affinity"
configuration parameter. If this value is set, then the system
attempts to perform automatic IRQ affinity assignment.
At this time, automatic IRQ affinity is supported only for multiqueue
NICs that use the igb or bnx2 drivers. Even with these two,
differences in the organization of queues and their naming convention
necessitate some NIC-specific code. The assignment strategy attempts
to assign all queues of all NICs that share the same queue number to
the same CPU. This has been shown to be optimal for IP forwarding
workloads in 2.6.31 kernels.
Setting the value to "auto" for NICs that use other drivers will be a
no-op.
|
|
Also restore "--valid-addr" flag to vyatta-interfaces.pl since it is used outside
this package.
|
|
Changed the the set-time and commit-time check of ethernet interface address
values. These checks need to prevent configuring both DHCP and static
IPv4 addresses on the same interfac. The previous checks were comparing
against the running configuration tree, not the proposed config tree. Now
the set-time check is purely a syntax check, and the commit-time check
only checks for both DHCP and static IPv4 addresses in the proposed config.
The system now allows DHCP and static IPv6 addresses to be configured on
the same interface.
|
|
The script was hiding any error exit codes from 'ip' command.
Switch to using exec so that error exits fail the commit.
Discovered when testing with IPV6 disabled.
|
|
This does the same thing as vyatta-quagga-utils.pl --exists, but
it is generally useful (outside quagga) and has less overhead than
a perl compile.
|
|
|
|
|
|
|
|
|
|
(cherry picked from commit abc33133b79759a629b14b81e6a65eed0fa23e8a)
|
|
|
|
|
|
|
|
|
|
Move the speed/duplex setting into script where we can handle errors
better, and avoid setting speed/duplex twice.
(cherry picked from commit 330470f1f060f579434eb89469f4ed021c95449d)
|
|
The "check" sub-command is called by the CLI at "set" time. The interface
may not be configured, or may be configured but not "up" at this time.
So we don't want to perform any validation on the interface.
|
|
|
|
Better than reading sysfs directly.
|
|
|
|
Added code to deal with NICs that utilize more than one IRQ. The "set"
sub-command of this script will now assign the requested affinity mask
to all IRQs that are associated with the NIC.
|
|
|
|
merge path support
|
|
configuration to current
running configuration.
|
|
|
|
Simpler to use new getIP() for all address fetching
|
|
Don't just silently exit on incorrect address format.
At least print an error
|
|
Bug 4311
Doing grep ($ip, @list) will return whole list since it evaluted
$ip as a expression and the result was defined.
|
|
If interface is down (because of release), then renew should still
be able restart interface.
|
|
More convient to do it here.
|
|
|
|
Remove duplicates from list, and make sure getIP is exported, and that
explicit imports are listed.
|
|
|
|
Need good way to find path to get current MTU.
|
|
|
|
|
|
|
|
|
|
These should be removed before release.
|
|
Standard perl convention is undefined for false rather than 0.
|
|
Trying to have uniform library to interface state.
|
|
Extra comma in options hash list!
Get rid of perl function prototype for usage.
Perl Best Practices and other books recommend against them.
Move up exit to avoid surprises in later code.
|
|
|
|
|
|
config boot. -a action is activated and last output is written to
/tmp/bar
|
|
|
|
ordering code (that has no effect) in a future submission.
|