Age | Commit message (Collapse) | Author |
|
Bug 3917
Need to check current state when in operational mode (not config state).
|
|
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.
(cherry picked from commit 28e86f46e504eff3ab087aa179a969b1e3383a07)
|
|
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.
(cherry picked from commit 565f1d0d9bfe9f6b4174c322f3f6bb78f52b453e)
|
|
Also restore "--valid-addr" flag to vyatta-interfaces.pl since it is used outside
this package.
(cherry picked from commit d32ceb43ab64530c6eca81ec83fe4b374dd510d0)
|
|
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.
(cherry picked from commit 84fb2f920765c6d02f35ef1654dc0f8c2bef648c)
|
|
|
|
|
|
|
|
Move the speed/duplex setting into script where we can handle errors
better, and avoid setting speed/duplex twice.
|
|
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.
|
|
For when templates want to check for interface but
not die.
|
|
|
|
|
|
|
|
Have one central place for validity checks.
|
|
When finding allwed VIF, want to show vif id not name.
|
|
Use new Vyatta::Interface mtu function to handle all interface
types with DHCP.
|
|
|
|
Moved it back over to vyatta-cfg-quagga
|
|
Many templates should allow any known interface type, since
interface may be created later. So create some generic hooks
for validation.
|