Re: FreeBSD 9.1 ix driver vlan problem

2013-09-28 Thread Dmitry Morozovsky
On Fri, 27 Sep 2013, Joe Holden wrote:

   Thanks for the heads-up Oleg, although not the news that I was hoping for.
   
   So what I am going to do right now is reinstall with 9.2 and recompile the
   driver with your patch.
   I'll come back to the list with my results.
  
  FWIW, we're (with oleg@, yeah) using this patch on stable/9, so you're
  welcome
  to test this on your 9
  
  It's supposedly way too late to try to include this fix into 9.2-R, but
  maybe
  it's worth the errata notice...
  
 This happens on several other intel chipsets as well, no previous errata was
 ever noted (legacy em, for example) :(

It's a pity then.  Provided that em/igb/ixgb[e] are possibly the most frequent 
ethernet interfaces on modern server-related x86/amd64 hardware, the userbase 
affected seems pretty large...

-- 
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: ma...@freebsd.org ]

*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-27 Thread Joe Holden

On 25/09/2013 22:10, Dmitry Morozovsky wrote:

On Wed, 25 Sep 2013, Rumen Telbizov wrote:


Thanks for the heads-up Oleg, although not the news that I was hoping for.

So what I am going to do right now is reinstall with 9.2 and recompile the
driver with your patch.
I'll come back to the list with my results.


FWIW, we're (with oleg@, yeah) using this patch on stable/9, so you're welcome
to test this on your 9

It's supposedly way too late to try to include this fix into 9.2-R, but maybe
it's worth the errata notice...


This happens on several other intel chipsets as well, no previous errata 
was ever noted (legacy em, for example) :(

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-26 Thread Michiel Boland

On 09/25/2013 20:03, Daniel Corbe wrote:

Why would disabling STP on the switch *shorten* the amount of time it takes for
the port to come up?  At least on Cisco switches, it takes ~45 seconds for the
switching topology to converge with STP disabled.  Shorter periods if you enable
portfast or uplinkfast.


What is meant, I believe, is that the port should be configured as an edge port 
(spanning-tree portfast [trunk] in cisco lingo, set edge for junipers). You 
don't ever want to disable STP anywhere - that's just a recipe for disaster.


Cheers
Michiel
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-26 Thread Rumen Telbizov
Hello everyone,

Here are the final results of my tests:
1. I reinstalled the router with vanilla 9.2-RC4 and performed the same
tests - the results were exactly the same. The problem persisted.
2. Then I applied the patch provided by Oleg and recompiled kernel. This
indeed did *fix* the problem and now creating/destroying vlans does NOT
cause the interface to flap at all. All the symptoms that I was
experiencing seem to be gone. Thank you so very much Oleg and Dmitry!
Appreciated.

Jack, at this point I am wondering what your opinion on the patch is? Do
you approve it for production use yourself or do you think it needs to
reworked? Also any plans of incorporating this in -STABLE ?

Again, I'd like to thank everyone who helped here and especially Oleg,
Dmitry and Jack. Thanks guys!

Cheers,
Rumen Telbizov


On Wed, Sep 25, 2013 at 2:10 PM, Dmitry Morozovsky ma...@rinet.ru wrote:

 On Wed, 25 Sep 2013, Rumen Telbizov wrote:

  Thanks for the heads-up Oleg, although not the news that I was hoping
 for.
 
  So what I am going to do right now is reinstall with 9.2 and recompile
 the
  driver with your patch.
  I'll come back to the list with my results.

 FWIW, we're (with oleg@, yeah) using this patch on stable/9, so you're
 welcome
 to test this on your 9

 It's supposedly way too late to try to include this fix into 9.2-R, but
 maybe
 it's worth the errata notice...


 --
 Sincerely,
 D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
 [ FreeBSD committer: ma...@freebsd.org ]
 
 *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***
 




-- 
Rumen Telbizov
Unix Systems Administrator http://telbizov.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Jack Vogel
I will look into this.

Jack



On Tue, Sep 24, 2013 at 5:16 PM, Rumen Telbizov telbi...@gmail.com wrote:

 Hello Jack, list,

 I've been dealing with a nagging problem for a day now and decided to ask a
 quick question here.

 Basically I am building a brand new FreeBSD 9.1-RELEASE router which has a
 dual port fiber NIC (X520-SR2 10GbE Dual-Port Server Adapter (82599ES)
 10GBASE-SR - LC). The network card is recognized fine by the ix driver and
 overall works fine.

 The issue is when I start adding vlans to this card. It seems like every
 time I add a brand new vlan it freezes all the rest of the vlans already
 configured on that one physical interface. I loose ping between my locally
 connected peers.

 Example:
 ifconfig vlan200 create  # this is OK
 ifconfig vlan200 inet 1.2.3.1/30  vlan 200 vlandev ix1 description DEBUG #
 this second line makes the rest of the vlans freeze for 6-7 seconds

 On the switch side (Juniper) the physical interface flaps. There's nothing
 in logs/dmesg.

 If I configure the above vlan on an em0 interface - things are just smooth.

 I read some similar complaints that have surfaced in the past:
  * http://readlist.com/lists/freebsd.org/freebsd-net/5/26378.html
  * http://marc.info/?l=freebsd-netm=130929760904438

 Any idea what might be the problem? Any improvements in 9.2-RC4 in this
 regards?

 Thank you in advance,

 --
 Rumen Telbizov
 Unix Systems Administrator http://telbizov.com
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Daniel Kalchev

On 25.09.2013, at 02:16, Rumen Telbizov telbi...@gmail.com wrote:

 
 
 Example:
 ifconfig vlan200 create  # this is OK
 ifconfig vlan200 inet 1.2.3.1/30  vlan 200 vlandev ix1 description DEBUG #
 this second line makes the rest of the vlans freeze for 6-7 seconds
 
 On the switch side (Juniper) the physical interface flaps. There's nothing
 in logs/dmesg.
 

Might be, you have spanning tree enabled on the switch port and when the 
interface flaps it needs time to converge. Disable spanning tree on the port 
and the reset will be very short.

Daniel

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Oleg Bulyzhin

I'm running my ixgbe servers with attached patch.
It does solve this problem for me.

-- 
Oleg.


=== Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===


Index: sys/dev/ixgbe/ixgbe.c
===
RCS file: /home/ncvs/src/sys/dev/ixgbe/ixgbe.c,v
retrieving revision 1.53.2.6.2.2
diff -u -r1.53.2.6.2.2 ixgbe.c
--- sys/dev/ixgbe/ixgbe.c	17 Nov 2012 08:47:49 -	1.53.2.6.2.2
+++ sys/dev/ixgbe/ixgbe.c	20 Sep 2013 12:39:27 -
@@ -1198,9 +1198,6 @@
 		IXGBE_WRITE_REG(hw, IXGBE_RDT(i), adapter-num_rx_desc - 1);
 	}
 
-	/* Set up VLAN support and filter */
-	ixgbe_setup_vlan_hw_support(adapter);
-
 	/* Enable Receive engine */
 	rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL);
 	if (hw-mac.type == ixgbe_mac_82598EB)
@@ -1284,6 +1281,9 @@
 	/* Initialize the FC settings */
 	ixgbe_start_hw(hw);
 
+	/* Set up VLAN support and filter */
+	ixgbe_setup_vlan_hw_support(adapter);
+
 	/* And now turn on interrupts */
 	ixgbe_enable_intr(adapter);
 
@@ -4736,7 +4736,8 @@
 	bit = vtag  0x1F;
 	adapter-shadow_vfta[index] |= (1  bit);
 	++adapter-num_vlans;
-	ixgbe_init_locked(adapter);
+	//ixgbe_init_locked(adapter);
+	ixgbe_setup_vlan_hw_support(adapter);
 	IXGBE_CORE_UNLOCK(adapter);
 }
 
@@ -4763,7 +4764,8 @@
 	adapter-shadow_vfta[index] = ~(1  bit);
 	--adapter-num_vlans;
 	/* Re-init to load the changes */
-	ixgbe_init_locked(adapter);
+	//ixgbe_init_locked(adapter);
+	ixgbe_setup_vlan_hw_support(adapter);
 	IXGBE_CORE_UNLOCK(adapter);
 }
 
@@ -4785,6 +4787,20 @@
 	if (adapter-num_vlans == 0)
 		return;
 
+	/* Setup the queues for vlans */
+	for (int i = 0; i  adapter-num_queues; i++) {
+		rxr = adapter-rx_rings[i];
+		/* On 82599 the VLAN enable is per/queue in RXDCTL */
+		if (hw-mac.type != ixgbe_mac_82598EB) {
+			ctrl = IXGBE_READ_REG(hw, IXGBE_RXDCTL(i));
+			ctrl |= IXGBE_RXDCTL_VME;
+			IXGBE_WRITE_REG(hw, IXGBE_RXDCTL(i), ctrl);
+		}
+		rxr-vtag_strip = TRUE;
+	}
+
+	if ((ifp-if_capenable  IFCAP_VLAN_HWFILTER) == 0)
+		return;
 	/*
 	** A soft reset zero's out the VFTA, so
 	** we need to repopulate it now.
@@ -4803,18 +4819,6 @@
 	if (hw-mac.type == ixgbe_mac_82598EB)
 		ctrl |= IXGBE_VLNCTRL_VME;
 	IXGBE_WRITE_REG(hw, IXGBE_VLNCTRL, ctrl);
-
-	/* Setup the queues for vlans */
-	for (int i = 0; i  adapter-num_queues; i++) {
-		rxr = adapter-rx_rings[i];
-		/* On 82599 the VLAN enable is per/queue in RXDCTL */
-		if (hw-mac.type != ixgbe_mac_82598EB) {
-			ctrl = IXGBE_READ_REG(hw, IXGBE_RXDCTL(i));
-			ctrl |= IXGBE_RXDCTL_VME;
-			IXGBE_WRITE_REG(hw, IXGBE_RXDCTL(i), ctrl);
-		}
-		rxr-vtag_strip = TRUE;
-	}
 }
 
 static void
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Rumen Telbizov
Thanks for the patch Oleg.
I'll give it a try but I would also like to hear back from Jack.

Oleg, can you confirm that you're experiencing the exact same
problem/behavior? What kind of switch is connected on the other end?

Thanks,
Rumen Telbizov


On Wed, Sep 25, 2013 at 9:40 AM, Oleg Bulyzhin o...@freebsd.org wrote:


 I'm running my ixgbe servers with attached patch.
 It does solve this problem for me.

 --
 Oleg.

 
 === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===
 




-- 
Rumen Telbizov
Unix Systems Administrator http://telbizov.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Jack Vogel
Rumen,

I'd like to know if you can check the spanning tree setting as Daniel
mentioned and if that solves it,
I do know that that can cause considerable delay in link transitions. Also,
can you see if you see
different behavior by going to the latest 9.2 bits?

Oleg thanks for the patch, I will check it out and have my validation
engineer do some tests and
we'll get to the bottom of this.

Jack



On Wed, Sep 25, 2013 at 9:57 AM, Rumen Telbizov telbi...@gmail.com wrote:

 Thanks for the patch Oleg.
 I'll give it a try but I would also like to hear back from Jack.

 Oleg, can you confirm that you're experiencing the exact same
 problem/behavior? What kind of switch is connected on the other end?

 Thanks,
 Rumen Telbizov


 On Wed, Sep 25, 2013 at 9:40 AM, Oleg Bulyzhin o...@freebsd.org wrote:

 
  I'm running my ixgbe servers with attached patch.
  It does solve this problem for me.
 
  --
  Oleg.
 
  
  === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===
  
 
 


 --
 Rumen Telbizov
 Unix Systems Administrator http://telbizov.com
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Oleg Bulyzhin
On Wed, Sep 25, 2013 at 09:57:07AM -0700, Rumen Telbizov wrote:
 Thanks for the patch Oleg.
 I'll give it a try but I would also like to hear back from Jack.
 
 Oleg, can you confirm that you're experiencing the exact same
 problem/behavior? What kind of switch is connected on the other end?

It looks very similar. I've tested with dlink dgs-3620-28tc +
Cisco SFP-H10GB-CU1M and (i'm not sure here) with loopback to 2nd port of
Intel X520-DA2 card.
I've found 2 problems in current ixgbe driver:
1) few seconds link loss on vlan reconfiguration (both create/destroy).
2) if you have configured vlans over ix0 and then run
   ifconfig ix0 vlanhwfilter
   your vlans will stop working until you touch ix0 vlan configuration
   (create one more vlan or destroy existing one).

Patch solves both for me.

-- 
Oleg.


=== Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Rumen Telbizov
Hi Jack,

Thanks for the suggestions and looking into this.
Here are a few additional bits of information that you requested:

1. We did disable spanning tree on the switch port and the result of that
is that basically now creating/destroying a vlan on the ix interface makes
it freeze for about 3 seconds from previously 6.
2. I brought manually the physical interface down (ifconfig ix1 down) and
then up and measured the time it took for the interface on the switch to
show as up - and that was again about 3 seconds. So basically it seems to
me like that's how long it normally takes for a link to be negotiated.
3. We tweaked a setting on the switch which instructs the port to be down
for 5 seconds before it's considered down. Then repeated the test again and
the result was that now the freeze period got reduced to 1.5 seconds and
no ping packets were lost but one of the packets returned with 1500 ms
delay. My guess on this one is that since the switch ignored the flapping
of the interface, bringing it back up was much faster. So it does mask the
problem somewhat but it is still there - the interface seems to go down.

Next steps:
1. I will reinstall this machine with the latest 9.2 and repeat the tests
see what happens.
2. If the previous one fails - I'll try the patch that Oleg sent. Thanks a
lot for providing that patch.

I'll update this list with more findings.

Thank you,
Rumen Telbizov



On Wed, Sep 25, 2013 at 10:01 AM, Jack Vogel jfvo...@gmail.com wrote:

 Rumen,

 I'd like to know if you can check the spanning tree setting as Daniel
 mentioned and if that solves it,
 I do know that that can cause considerable delay in link transitions.
 Also, can you see if you see
 different behavior by going to the latest 9.2 bits?

 Oleg thanks for the patch, I will check it out and have my validation
 engineer do some tests and
 we'll get to the bottom of this.

 Jack



 On Wed, Sep 25, 2013 at 9:57 AM, Rumen Telbizov telbi...@gmail.comwrote:

 Thanks for the patch Oleg.
 I'll give it a try but I would also like to hear back from Jack.

 Oleg, can you confirm that you're experiencing the exact same
 problem/behavior? What kind of switch is connected on the other end?

 Thanks,
 Rumen Telbizov


 On Wed, Sep 25, 2013 at 9:40 AM, Oleg Bulyzhin o...@freebsd.org wrote:

 
  I'm running my ixgbe servers with attached patch.
  It does solve this problem for me.
 
  --
  Oleg.
 
  
  === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===
  
 
 


 --
 Rumen Telbizov

 Unix Systems Administrator http://telbizov.com
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org





-- 
Rumen Telbizov
Unix Systems Administrator http://telbizov.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Daniel Corbe
Why would disabling STP on the switch *shorten* the amount of time it takes 
for the port to come up?  At least on Cisco switches, it takes ~45 seconds 
for the switching topology to converge with STP disabled.  Shorter periods 
if you enable portfast or uplinkfast.



-Original Message- 
From: Daniel Kalchev

Sent: Wednesday, September 25, 2013 4:31 AM
To: Rumen Telbizov
Cc: freebsd-stable@freebsd.org ; Jack Vogel
Subject: Re: FreeBSD 9.1 ix driver vlan problem


On 25.09.2013, at 02:16, Rumen Telbizov telbi...@gmail.com wrote:




Example:
ifconfig vlan200 create  # this is OK
ifconfig vlan200 inet 1.2.3.1/30  vlan 200 vlandev ix1 description DEBUG #
this second line makes the rest of the vlans freeze for 6-7 seconds

On the switch side (Juniper) the physical interface flaps. There's nothing
in logs/dmesg.



Might be, you have spanning tree enabled on the switch port and when the 
interface flaps it needs time to converge. Disable spanning tree on the 
port and the reset will be very short.


Daniel

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Jack Vogel
Thanks for the investigation, I guess what I'm wondering the most right now
is if the patch from
Oleg is a good change in general, so any others that can test and give me
results would be appreciated.

Thanks,

Jack

On Wed, Sep 25, 2013 at 11:14 AM, Rumen Telbizov telbi...@gmail.com wrote:

 Hi Jack,

 Thanks for the suggestions and looking into this.
 Here are a few additional bits of information that you requested:

 1. We did disable spanning tree on the switch port and the result of that
 is that basically now creating/destroying a vlan on the ix interface makes
 it freeze for about 3 seconds from previously 6.
 2. I brought manually the physical interface down (ifconfig ix1 down) and
 then up and measured the time it took for the interface on the switch to
 show as up - and that was again about 3 seconds. So basically it seems to
 me like that's how long it normally takes for a link to be negotiated.
 3. We tweaked a setting on the switch which instructs the port to be down
 for 5 seconds before it's considered down. Then repeated the test again and
 the result was that now the freeze period got reduced to 1.5 seconds and
 no ping packets were lost but one of the packets returned with 1500 ms
 delay. My guess on this one is that since the switch ignored the flapping
 of the interface, bringing it back up was much faster. So it does mask the
 problem somewhat but it is still there - the interface seems to go down.

 Next steps:
 1. I will reinstall this machine with the latest 9.2 and repeat the tests
 see what happens.
 2. If the previous one fails - I'll try the patch that Oleg sent. Thanks a
 lot for providing that patch.

 I'll update this list with more findings.

 Thank you,
 Rumen Telbizov



 On Wed, Sep 25, 2013 at 10:01 AM, Jack Vogel jfvo...@gmail.com wrote:

 Rumen,

 I'd like to know if you can check the spanning tree setting as Daniel
 mentioned and if that solves it,
 I do know that that can cause considerable delay in link transitions.
 Also, can you see if you see
 different behavior by going to the latest 9.2 bits?

 Oleg thanks for the patch, I will check it out and have my validation
 engineer do some tests and
 we'll get to the bottom of this.

 Jack



 On Wed, Sep 25, 2013 at 9:57 AM, Rumen Telbizov telbi...@gmail.comwrote:

 Thanks for the patch Oleg.
 I'll give it a try but I would also like to hear back from Jack.

 Oleg, can you confirm that you're experiencing the exact same
 problem/behavior? What kind of switch is connected on the other end?

 Thanks,
 Rumen Telbizov


 On Wed, Sep 25, 2013 at 9:40 AM, Oleg Bulyzhin o...@freebsd.org wrote:

 
  I'm running my ixgbe servers with attached patch.
  It does solve this problem for me.
 
  --
  Oleg.
 
  
  === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===
  
 
 


 --
 Rumen Telbizov

 Unix Systems Administrator http://telbizov.com
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
 





 --
 Rumen Telbizov
 Unix Systems Administrator http://telbizov.com

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Rumen Telbizov
Jack,

Can you reproduce this problem yourself? Does it make sense to experience
this behavior?

Thanks,
Rumen Telbizov


On Wed, Sep 25, 2013 at 11:23 AM, Jack Vogel jfvo...@gmail.com wrote:


 Thanks for the investigation, I guess what I'm wondering the most right
 now is if the patch from
 Oleg is a good change in general, so any others that can test and give me
 results would be appreciated.

 Thanks,

 Jack

 On Wed, Sep 25, 2013 at 11:14 AM, Rumen Telbizov telbi...@gmail.comwrote:

 Hi Jack,

 Thanks for the suggestions and looking into this.
 Here are a few additional bits of information that you requested:

 1. We did disable spanning tree on the switch port and the result of that
 is that basically now creating/destroying a vlan on the ix interface makes
 it freeze for about 3 seconds from previously 6.
 2. I brought manually the physical interface down (ifconfig ix1 down) and
 then up and measured the time it took for the interface on the switch to
 show as up - and that was again about 3 seconds. So basically it seems to
 me like that's how long it normally takes for a link to be negotiated.
 3. We tweaked a setting on the switch which instructs the port to be down
 for 5 seconds before it's considered down. Then repeated the test again and
 the result was that now the freeze period got reduced to 1.5 seconds and
 no ping packets were lost but one of the packets returned with 1500 ms
 delay. My guess on this one is that since the switch ignored the flapping
 of the interface, bringing it back up was much faster. So it does mask the
 problem somewhat but it is still there - the interface seems to go down.

 Next steps:
 1. I will reinstall this machine with the latest 9.2 and repeat the tests
 see what happens.
 2. If the previous one fails - I'll try the patch that Oleg sent. Thanks
 a lot for providing that patch.

 I'll update this list with more findings.

 Thank you,
 Rumen Telbizov



 On Wed, Sep 25, 2013 at 10:01 AM, Jack Vogel jfvo...@gmail.com wrote:

 Rumen,

 I'd like to know if you can check the spanning tree setting as Daniel
 mentioned and if that solves it,
 I do know that that can cause considerable delay in link transitions.
 Also, can you see if you see
 different behavior by going to the latest 9.2 bits?

 Oleg thanks for the patch, I will check it out and have my validation
 engineer do some tests and
 we'll get to the bottom of this.

 Jack



 On Wed, Sep 25, 2013 at 9:57 AM, Rumen Telbizov telbi...@gmail.comwrote:

 Thanks for the patch Oleg.
 I'll give it a try but I would also like to hear back from Jack.

 Oleg, can you confirm that you're experiencing the exact same
 problem/behavior? What kind of switch is connected on the other end?

 Thanks,
 Rumen Telbizov


 On Wed, Sep 25, 2013 at 9:40 AM, Oleg Bulyzhin o...@freebsd.org
 wrote:

 
  I'm running my ixgbe servers with attached patch.
  It does solve this problem for me.
 
  --
  Oleg.
 
  
  === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===
  
 
 


 --
 Rumen Telbizov

 Unix Systems Administrator http://telbizov.com
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to 
 freebsd-stable-unsubscr...@freebsd.org





 --
 Rumen Telbizov
 Unix Systems Administrator http://telbizov.com





-- 
Rumen Telbizov
Unix Systems Administrator http://telbizov.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Oleg Bulyzhin
On Wed, Sep 25, 2013 at 11:14:38AM -0700, Rumen Telbizov wrote:

 Next steps:
 1. I will reinstall this machine with the latest 9.2 and repeat the tests
 see what happens.

I didnt test 9.2 but i checked recent HEAD - it has vlan problem too.

-- 
Oleg.


=== Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Rumen Telbizov
Thanks for the heads-up Oleg, although not the news that I was hoping for.

So what I am going to do right now is reinstall with 9.2 and recompile the
driver with your patch.
I'll come back to the list with my results.

It would be really nice if Jack et al could test that patch themselves and
endorse/incorporate
into future FreeBSD releases. From the comments I am not sure if Jack
really approves on
it or there's a better way of fixing things.

Thank you,
Rumen Telbizov


On Wed, Sep 25, 2013 at 11:32 AM, Oleg Bulyzhin o...@freebsd.org wrote:

 On Wed, Sep 25, 2013 at 11:14:38AM -0700, Rumen Telbizov wrote:

  Next steps:
  1. I will reinstall this machine with the latest 9.2 and repeat the tests
  see what happens.

 I didnt test 9.2 but i checked recent HEAD - it has vlan problem too.

 --
 Oleg.

 
 === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===
 




-- 
Rumen Telbizov
Unix Systems Administrator http://telbizov.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD 9.1 ix driver vlan problem

2013-09-25 Thread Dmitry Morozovsky
On Wed, 25 Sep 2013, Rumen Telbizov wrote:

 Thanks for the heads-up Oleg, although not the news that I was hoping for.
 
 So what I am going to do right now is reinstall with 9.2 and recompile the
 driver with your patch.
 I'll come back to the list with my results.

FWIW, we're (with oleg@, yeah) using this patch on stable/9, so you're welcome 
to test this on your 9

It's supposedly way too late to try to include this fix into 9.2-R, but maybe 
it's worth the errata notice...


-- 
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: ma...@freebsd.org ]

*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


FreeBSD 9.1 ix driver vlan problem

2013-09-24 Thread Rumen Telbizov
Hello Jack, list,

I've been dealing with a nagging problem for a day now and decided to ask a
quick question here.

Basically I am building a brand new FreeBSD 9.1-RELEASE router which has a
dual port fiber NIC (X520-SR2 10GbE Dual-Port Server Adapter (82599ES)
10GBASE-SR - LC). The network card is recognized fine by the ix driver and
overall works fine.

The issue is when I start adding vlans to this card. It seems like every
time I add a brand new vlan it freezes all the rest of the vlans already
configured on that one physical interface. I loose ping between my locally
connected peers.

Example:
ifconfig vlan200 create  # this is OK
ifconfig vlan200 inet 1.2.3.1/30  vlan 200 vlandev ix1 description DEBUG #
this second line makes the rest of the vlans freeze for 6-7 seconds

On the switch side (Juniper) the physical interface flaps. There's nothing
in logs/dmesg.

If I configure the above vlan on an em0 interface - things are just smooth.

I read some similar complaints that have surfaced in the past:
 * http://readlist.com/lists/freebsd.org/freebsd-net/5/26378.html
 * http://marc.info/?l=freebsd-netm=130929760904438

Any idea what might be the problem? Any improvements in 9.2-RC4 in this
regards?

Thank you in advance,

-- 
Rumen Telbizov
Unix Systems Administrator http://telbizov.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org