Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
openvpn: Also alternate ovpn clients 3 through 5 between both CPU cores
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed Nov 14, 2015
1 parent 1f54442 commit 7d12f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/src/router/rc/openvpn.c
Expand Up @@ -438,7 +438,7 @@ void start_vpnclient(int clientNum)
// Start the VPN client
sprintf(&buffer[0], "/etc/openvpn/vpnclient%d", clientNum);
sprintf(&buffer2[0], "/etc/openvpn/client%d", clientNum);
taskset_ret = cpu_eval(NULL, (clientNum == 1 ? CPU1 : CPU0), &buffer[0], "--cd", &buffer2[0], "--config", "config.ovpn");
taskset_ret = cpu_eval(NULL, (clientNum % 2 == 0 ? CPU1 : CPU0), &buffer[0], "--cd", &buffer2[0], "--config", "config.ovpn");

vpnlog(VPN_LOG_INFO,"Starting OpenVPN client %d", clientNum);

Expand Down

0 comments on commit 7d12f19

Please sign in to comment.