[DragonFlyBSD - Submit #3126] Bring in BIOC{S,G}FEEDBACK

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sat Apr 7 19:26:49 PDT 2018


Issue #3126 has been updated by sepherosa.


Line 607~608 are wrong, they probably should be:
if (mc != NULL) {
if (error == 0) {
/* the if_input part */
} else {
m_freem(mc);
}
}

Line 658~659 are wrong, you will have to unconditionally initialize nm_feedback.

Thanks,
sephe


On Wed, Apr 4, 2018 at 1:50 AM,  <bugtracker-admin at leaf.dragonflybsd.org> wrote:
> Issue #3126 has been updated by tuxillo.
>
> File bpf_biocfeedback.patch added
> Category set to net
> Status changed from New to In Progress
> Assignee set to tuxillo
>
> Hi Sephe,
>
> See attached the new patch, I've deleted the previous one.
>
> Regards,
> Antonio Huete
>
> ----------------------------------------
> Submit #3126: Bring in BIOC{S,G}FEEDBACK
> http://bugs.dragonflybsd.org/issues/3126#change-13400
>
> * Author: tuxillo
> * Status: In Progress
> * Priority: Normal
> * Assignee: tuxillo
> * Category: net
> * Target version:
> ----------------------------------------
> 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.33 KB)
>
>
> --
> You have received this notification because you have either subscribed to it, or are involved in it.
> To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



-- 
Tomorrow Will Never Die

----------------------------------------
Submit #3126: Bring in BIOC{S,G}FEEDBACK 
http://bugs.dragonflybsd.org/issues/3126#change-13401

* Author: tuxillo
* Status: In Progress
* Priority: Normal
* Assignee: tuxillo
* Category: net
* Target version: 
----------------------------------------
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.33 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list