Project

General

Profile

Actions

Submit #3126

closed

Bring in BIOC{S,G}FEEDBACK

Added by tuxillo over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
net
Target version:
-
Start date:
03/31/2018
Due date:
% Done:

100%

Estimated time:

Description

Hi,

The port net/vde2 uses a ioctl command BIOCFEEDBACK for FreeBSD to allow host-guest communication in a vde switch. The attached patch is the initial attempt to bring that ioctl command from NetBSD.
It compiles but it's untested until I figure out how to test it.

I'd need some pointers though:

- Is it okay to use directly ifp->if_input directly? Isn't there a mechanism similar to the one used in bpfwrite() > bpf_output_dispatch but for input?
If it's okay to use ifp->if_input directly, wouldn't it need some locking?

Cheers,
Antonio Huete


Files

bpf_biocfeedback.patch (3.37 KB) bpf_biocfeedback.patch tuxillo, 04/18/2018 01:39 AM
Actions

Also available in: Atom PDF