mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 01:40:53 +07:00
cb1c7d9bbc
Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for the active socket. Introduce fields in struct sock_mapping to keep track of active sockets. Introduce a waitqueue to allow the frontend to wait on data coming from the backend on the active socket (recvmsg command). Two mutexes (one of reads and one for writes) will be used to protect the active socket in and out rings from concurrent accesses. Signed-off-by: Stefano Stabellini <stefano@aporeto.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> CC: boris.ostrovsky@oracle.com CC: jgross@suse.com Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
11 lines
237 B
C
11 lines
237 B
C
#ifndef __PVCALLS_FRONT_H__
|
|
#define __PVCALLS_FRONT_H__
|
|
|
|
#include <linux/net.h>
|
|
|
|
int pvcalls_front_socket(struct socket *sock);
|
|
int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
|
|
int addr_len, int flags);
|
|
|
|
#endif
|