Re: [PATCH net-next 09/11] tuntap: accept an array of XDP buffs through sendmsg()

2018-09-07 Thread Jason Wang
On 2018年09月07日 01:51, Michael S. Tsirkin wrote: On Thu, Sep 06, 2018 at 12:05:24PM +0800, Jason Wang wrote: This patch implement TUN_MSG_PTR msg_control type. This type allows the caller to pass an array of XDP buffs to tuntap through ptr field of the tun_msg_control. If an XDP program is

Re: [PATCH net-next 09/11] tuntap: accept an array of XDP buffs through sendmsg()

2018-09-06 Thread Michael S. Tsirkin
On Thu, Sep 06, 2018 at 12:05:24PM +0800, Jason Wang wrote: > This patch implement TUN_MSG_PTR msg_control type. This type allows > the caller to pass an array of XDP buffs to tuntap through ptr field > of the tun_msg_control. If an XDP program is attached, tuntap can run > XDP program directly.

[PATCH net-next 09/11] tuntap: accept an array of XDP buffs through sendmsg()

2018-09-05 Thread Jason Wang
This patch implement TUN_MSG_PTR msg_control type. This type allows the caller to pass an array of XDP buffs to tuntap through ptr field of the tun_msg_control. If an XDP program is attached, tuntap can run XDP program directly. If not, tuntap will build skb and do a fast receiving since part of