tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vlan(4) support for hardware VLAN filtering



In article <alpine.NEB.2.20.1711201315450.3009%silky.invisible.ca@localhost>,
Jared McNeill  <jmcneill%invisible.ca@localhost> wrote:
>Hi folks --
>
>As part of the fix for kern/52733, I need a mechanism to notify parent 
>ethernet devices when a VLAN is added or removed. I'm proposing adding an 
>optional callback to struct ethercom, as demonstrated by the patch below. 
>Any comments?
>
>Thanks!
>Jared
>
>
>  typedef int (*ether_cb_t)(struct ethercom *);
>+typedef int (*ether_vlancb_t)(struct ethercom *, uint16_t, bool);

Should we rename "ether_cb_t" to "ether_ifflags_cb_t" for consistency?

christos



Home | Main Index | Thread Index | Old Index