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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sun Apr 1 19:43:41 PDT 2018


Issue #3126 has been updated by sepherosa.


This is wrong.  You should move the change to bpf_output_dispatch().
And before calling if_input, make sure to clear the M_HASH on the
duplicated mbuf's m_flags.

On Sat, Mar 31, 2018 at 8:13 AM,
<bugtracker-admin at leaf.dragonflybsd.org> wrote:
> Issue #3126 has been reported by tuxillo.
>
> ----------------------------------------
> Submit #3126: Bring in BIOC{S,G}FEEDBACK
> http://bugs.dragonflybsd.org/issues/3126
>
> * Author: tuxillo
> * Status: New
> * Priority: Normal
> * Assignee:
> * Category:
> * 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.28 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-13395

* Author: tuxillo
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* 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.28 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