X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fetc_init.d_vswitch;h=ae0b60682ee6a6428320a78ccf4f12ea7ea06234;hb=b2cdfea;hp=bb0011e37c060fce54b424eb4387202d2e8823d9;hpb=5de7052b9b5fe58628057984ddc99e9cf8a66596;p=openvswitch diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index bb0011e3..ae0b6068 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -34,7 +34,6 @@ test -e /etc/sysconfig/vswitch && . /etc/sysconfig/vswitch : ${VSWITCHD_PIDFILE:=/var/run/ovs-vswitchd.pid} : ${VSWITCHD_RUN_DIR:=/var/xen/vswitch} : ${VSWITCHD_PRIORITY:=-5} -: ${VSWITCHD_NETBACK_PRIORITY:=0} : ${VSWITCHD_LOGFILE:=/var/log/ovs-vswitchd.log} : ${VSWITCHD_FILE_LOGLEVEL:=} : ${VSWITCHD_SYSLOG_LOGLEVEL:=WARN} @@ -113,28 +112,6 @@ function reload_vswitchd { fi } -function quietly { - "$@" > /dev/null -} - -# renice_netback PRIORITY PID [PID...] -# -# Renices the netback processes given as each PID to nice level PRIORITY. -function renice_netback { - local pri=$1 - shift - - if test $# = 0; then - warning "Netback not running, nothing to renice" - return - fi - - for pid - do - action "Renicing netback (pid $pid) to priority $pri" quietly renice $pri -p $pid - done -} - function start_vswitchd { local syslog_opt="-vANY:SYSLOG:${VSWITCHD_SYSLOG_LOGLEVEL}" local logfile_file_opt="" @@ -172,11 +149,6 @@ function start_vswitchd { if [ "$ENABLE_FAKE_PROC_NET" = "y" ]; then fake_proc_net_opt="--fake-proc-net" fi - if [ "$VSWITCHD_NETBACK_PRIORITY" != default ]; then - renice_netback $VSWITCHD_NETBACK_PRIORITY $(pidof netback) - else - warning "Netback renicing disabled (see /etc/sysconfig/vswitch)" - fi if [ "$daemonize" != "y" ]; then # Start in background and force a "success" message action "Starting ovs-vswitchd ($strace_opt$valgrind_opt)" true