Re: [PATCH net-next 08/11] tun: switch to new type of msg_control

2018-09-06 Thread Jason Wang
On 2018年09月07日 00:54, Michael S. Tsirkin wrote: On Thu, Sep 06, 2018 at 12:05:23PM +0800, Jason Wang wrote: This patch introduces to a new tun/tap specific msg_control: #define TUN_MSG_UBUF 1 #define TUN_MSG_PTR 2 struct tun_msg_ctl { int type; void *ptr; }; This allows us

Re: [PATCH net-next 08/11] tun: switch to new type of msg_control

2018-09-06 Thread Michael S. Tsirkin
On Thu, Sep 06, 2018 at 12:05:23PM +0800, Jason Wang wrote: > This patch introduces to a new tun/tap specific msg_control: > > #define TUN_MSG_UBUF 1 > #define TUN_MSG_PTR 2 > struct tun_msg_ctl { >int type; >void *ptr; > }; > > This allows us to pass different kinds of

[PATCH net-next 08/11] tun: switch to new type of msg_control

2018-09-05 Thread Jason Wang
This patch introduces to a new tun/tap specific msg_control: #define TUN_MSG_UBUF 1 #define TUN_MSG_PTR 2 struct tun_msg_ctl { int type; void *ptr; }; This allows us to pass different kinds of msg_control through sendmsg(). The first supported type is ubuf (TUN_MSG_UBUF) which