ia64/xen-unstable

view tools/hotplug/Linux/network-route @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 415505139333
children
line source
1 #!/bin/bash
2 #============================================================================
3 # Default Xen network start/stop script.
4 # Xend calls a network script when it starts.
5 # The script name to use is defined in ${XEN_CONFIG_DIR}/xend-config.sxp
6 # in the network-script field.
7 #
8 # Usage:
9 #
10 # network-route (start|stop|status) {VAR=VAL}*
11 #
12 # Vars:
13 #
14 # netdev The gateway interface (default eth0).
15 # antispoof Whether to use iptables to prevent spoofing (default yes).
16 #
17 #============================================================================
19 dir=$(dirname "$0")
20 . "$dir/hotplugpath.sh"
21 . "$dir/xen-script-common.sh"
23 evalVariables "$@"
25 netdev=${netdev:-eth${vifnum}}
27 echo 1 >/proc/sys/net/ipv4/ip_forward
28 echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp