Re: Bug in MAC filter on IGB/if_vlan?

2021-11-09 Thread Rozhuk Ivan
On Tue, 9 Nov 2021 13:30:46 -0500
Ryan Stone  wrote:

> You're trying to use different MACs with each vlan.  I don't believe
> that this is really a support configuration in our stack, although
> putting the interface into promiscuous I guess works.

I try to look into if_vlan code and if I understand correct it try to set
MAC to parent adapter and read parent adapter MAC change.

But it must add/remove MAC addr to/from H/W MAC filter, not change only one.
It done for multicast join/leave, but not done for if_vlan and probably some 
other cases.




Re: Bug in MAC filter on IGB/if_vlan?

2021-11-09 Thread Rozhuk Ivan
On Tue, 9 Nov 2021 08:39:12 -0600
Kevin Bowling  wrote:

> > I have in rc.conf:
> >
> > =
> > vlans_igb0="vlan77 vlan86 vlan87"
> > create_args_vlan87="vlan 87"
> > create_args_vlan86="vlan 86"
> > create_args_vlan77="vlan 77"
> > ifconfig_vlan87="inet 185.44.68.92 netmask 255.255.252.0 mtu 1500
> > down up" ifconfig_vlan87_alias0="link 00:aa:fa:dd:44:55"
> > ifconfig_vlan86="DHCP mtu 1500"
> > ifconfig_vlan86_alias0="link 00:ff:fa:dd:44:55"
> > ifconfig_vlan77="inet 192.168.0.254 netmask 255.255.255.0"
> > ifconfig_vlan77_alias0="link 00:0f:43:48:67:fe"
> > ifconfig_vlan77_ipv6="inet6 2001:470:2345:555::1/64 prefixlen 64
> > auto_linklocal"
> > ifconfig_igb0="-lro -tso -vlanhwtso mtu 9000 down up"
> >
> > =
> >
> > There is 4 different MAC addresses.
> > System is unavailable after boot until: ifconfig igb0 promisc down
> > up
> >
> > FreeBSD 13 build from fresh sources.
> >
> >
> > Is this a bug or this is normal?  
> 
> 
> Which chip?  Please post uname -a or git rev.

igb0@pci0:8:0:0:class=0x02 rev=0x03 hdr=0x00 vendor=0x8086 
device=0x1539 subvendor=0x1849 subdevice=0x1539
vendor = 'Intel Corporation'
device = 'I211 Gigabit Network Connection'
class  = network
subclass   = ethernet

514a095250b178ad81319bf8c30938c3f08dd16f
few days old build from 13 branch.


> Why do you have “down up” in the stateful config, please remove
> “down” and the MTU change and report back findings

It from some posts that recomend to use
ifconfig em0 mtu 2345 down up
to force mtu apply.




Re: Bug in MAC filter on IGB/if_vlan?

2021-11-09 Thread Ryan Stone
You're trying to use different MACs with each vlan.  I don't believe
that this is really a support configuration in our stack, although
putting the interface into promiscuous I guess works.



Re: Bug in MAC filter on IGB/if_vlan?

2021-11-09 Thread Kevin Bowling
On Sat, Nov 6, 2021 at 5:03 PM Rozhuk Ivan  wrote:

> Hi!
>
> I have in rc.conf:
>
> =
> vlans_igb0="vlan77 vlan86 vlan87"
> create_args_vlan87="vlan 87"
> create_args_vlan86="vlan 86"
> create_args_vlan77="vlan 77"
> ifconfig_vlan87="inet 185.44.68.92 netmask 255.255.252.0 mtu 1500 down up"
> ifconfig_vlan87_alias0="link 00:aa:fa:dd:44:55"
> ifconfig_vlan86="DHCP mtu 1500"
> ifconfig_vlan86_alias0="link 00:ff:fa:dd:44:55"
> ifconfig_vlan77="inet 192.168.0.254 netmask 255.255.255.0"
> ifconfig_vlan77_alias0="link 00:0f:43:48:67:fe"
> ifconfig_vlan77_ipv6="inet6 2001:470:2345:555::1/64 prefixlen 64
> auto_linklocal"
> ifconfig_igb0="-lro -tso -vlanhwtso mtu 9000 down up"
>
> =
>
> There is 4 different MAC addresses.
> System is unavailable after boot until: ifconfig igb0 promisc down up
>
> FreeBSD 13 build from fresh sources.
>
>
> Is this a bug or this is normal?


Which chip?  Please post uname -a or git rev.

Why do you have “down up” in the stateful config, please remove “down” and
the MTU change and report back findings

>


Bug in MAC filter on IGB/if_vlan?

2021-11-06 Thread Rozhuk Ivan
Hi!

I have in rc.conf:
=
vlans_igb0="vlan77 vlan86 vlan87"
create_args_vlan87="vlan 87"
create_args_vlan86="vlan 86"
create_args_vlan77="vlan 77"
ifconfig_vlan87="inet 185.44.68.92 netmask 255.255.252.0 mtu 1500 down up"
ifconfig_vlan87_alias0="link 00:aa:fa:dd:44:55"
ifconfig_vlan86="DHCP mtu 1500"
ifconfig_vlan86_alias0="link 00:ff:fa:dd:44:55"
ifconfig_vlan77="inet 192.168.0.254 netmask 255.255.255.0"
ifconfig_vlan77_alias0="link 00:0f:43:48:67:fe"
ifconfig_vlan77_ipv6="inet6 2001:470:2345:555::1/64 prefixlen 64 auto_linklocal"
ifconfig_igb0="-lro -tso -vlanhwtso mtu 9000 down up"
=

There is 4 different MAC addresses.
System is unavailable after boot until: ifconfig igb0 promisc down up

FreeBSD 13 build from fresh sources.


Is this a bug or this is normal?