Re: [PATCH] net/packet: support vhost mrg_rxbuf

2018-10-28 Thread Jianfeng Tan
On 10/29/2018 10:54 AM, Jason Wang wrote: On 2018/10/27 下午8:04, Jianfeng Tan wrote: Previouly, virtio net header size is hardcoded to be 10, which makes the feature mrg_rxbuf not available. We redefine PACKET_VNET_HDR ioctl which treats user input as boolean, but now as int, 0, 10, 12, or

Re: [PATCH] net/packet: support vhost mrg_rxbuf

2018-10-28 Thread Jason Wang
On 2018/10/27 下午8:04, Jianfeng Tan wrote: Previouly, virtio net header size is hardcoded to be 10, which makes the feature mrg_rxbuf not available. We redefine PACKET_VNET_HDR ioctl which treats user input as boolean, but now as int, 0, 10, 12, or everything else be treated as 10. There will