Re: [PATCH v4 2/2] net: detect errors from probing vnet hdr flag for TAP devices

2020-07-07 Thread Philippe Mathieu-Daudé
On 7/7/20 8:45 PM, Laurent Vivier wrote: > From: "Daniel P. Berrange" > > When QEMU sets up a tap based network device backend, it mostly ignores errors > reported from various ioctl() calls it makes, assuming the TAP file descriptor > is valid. This assumption can easily be violated when the use

[PATCH v4 2/2] net: detect errors from probing vnet hdr flag for TAP devices

2020-07-07 Thread Laurent Vivier
From: "Daniel P. Berrange" When QEMU sets up a tap based network device backend, it mostly ignores errors reported from various ioctl() calls it makes, assuming the TAP file descriptor is valid. This assumption can easily be violated when the user is passing in a pre-opened file descriptor. At be