mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
ipvs: Pass ipvs not net to ip_vs_process_message
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
37b68e6ded
commit
7d537f3ab7
1 changed files with 3 additions and 4 deletions
|
@ -1204,10 +1204,9 @@ static inline int ip_vs_proc_sync_conn(struct net *net, __u8 *p, __u8 *msg_end)
|
|||
* ip_vs_conn entries.
|
||||
* Handles Version 0 & 1
|
||||
*/
|
||||
static void ip_vs_process_message(struct net *net, __u8 *buffer,
|
||||
static void ip_vs_process_message(struct netns_ipvs *ipvs, __u8 *buffer,
|
||||
const size_t buflen)
|
||||
{
|
||||
struct netns_ipvs *ipvs = net_ipvs(net);
|
||||
struct ip_vs_sync_mesg *m2 = (struct ip_vs_sync_mesg *)buffer;
|
||||
__u8 *p, *msg_end;
|
||||
int i, nr_conns;
|
||||
|
@ -1257,7 +1256,7 @@ static void ip_vs_process_message(struct net *net, __u8 *buffer,
|
|||
return;
|
||||
}
|
||||
/* Process a single sync_conn */
|
||||
retc = ip_vs_proc_sync_conn(net, p, msg_end);
|
||||
retc = ip_vs_proc_sync_conn(ipvs->net, p, msg_end);
|
||||
if (retc < 0) {
|
||||
IP_VS_ERR_RL("BACKUP, Dropping buffer, Err: %d in decoding\n",
|
||||
retc);
|
||||
|
@ -1763,7 +1762,7 @@ static int sync_thread_backup(void *data)
|
|||
break;
|
||||
}
|
||||
|
||||
ip_vs_process_message(ipvs->net, tinfo->buf, len);
|
||||
ip_vs_process_message(ipvs, tinfo->buf, len);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue