Hi, i tried setting the mtu on one of my ixgbe(4) intel NICs to support jumbo frames. This is on a box with RELENG_8 from today. # ifconfig ix0 mtu 9198 I then get the following error: # tail -n 1 /var/log/messages Apr 14 12:48:43 siloneu kernel: ix0: Could not setup receive structures I already tried the following patch because of Jack Vogel's advice given in the following thread on -stable in Oct. last year, which still produces the same error message and leaves the box unpingable: http://lists.freebsd.org/pipermail/freebsd-stable/2010-October/059541.html # cat ~/patches/ixgbe.num_queues_to_4.patch --- /root/.vimbackup/ixgbe.c~ 2011-04-12 22:14:27.000000000 +0000 +++ sys/dev/ixgbe/ixgbe.c 2011-04-12 22:14:27.000000000 +0000 @@ -273,7 +273,7 @@ TUNABLE_INT("hw.ixgbe.hdr_split", &ixgbe * number of cpus. Each queue is a pair * of RX and TX rings with a msix vector */ -static int ixgbe_num_queues = 0; +static int ixgbe_num_queues = 4; TUNABLE_INT("hw.ixgbe.num_queues", &ixgbe_num_queues); /*
How many 9k jumbo clusters are available? On Thu, Apr 14, 2011 at 3:05 PM, Leon Me?ner <l.messner@physik.tu-berlin.de> wrote:> Hi, > > i tried setting the mtu on one of my ixgbe(4) intel NICs to support > jumbo frames. This is on a box with RELENG_8 from today. > > # ifconfig ix0 mtu 9198 > > I then get the following error: > > # tail -n 1 /var/log/messages > Apr 14 12:48:43 siloneu kernel: ix0: Could not setup receive structures > > I already tried the following patch because of Jack Vogel's advice given > in the following thread on -stable in Oct. last year, which still > produces the same error message and leaves the box unpingable: > > http://lists.freebsd.org/pipermail/freebsd-stable/2010-October/059541.html > > # cat ~/patches/ixgbe.num_queues_to_4.patch > --- /root/.vimbackup/ixgbe.c~ ? 2011-04-12 22:14:27.000000000 +0000 > +++ sys/dev/ixgbe/ixgbe.c ? ? ? 2011-04-12 22:14:27.000000000 +0000 > @@ -273,7 +273,7 @@ TUNABLE_INT("hw.ixgbe.hdr_split", &ixgbe > ?* number of cpus. Each queue is a pair > ? ?* of RX and TX rings with a msix vector > ? ? ?*/ > ? ? ?-static int ixgbe_num_queues = 0; > ? ? ?+static int ixgbe_num_queues = 4; > ? ? ? TUNABLE_INT("hw.ixgbe.num_queues", &ixgbe_num_queues); > > ? ? ? ? /* > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
On Apr 14, 2011, at 2:05 PM, Leon Me?ner wrote:> Hi, > > i tried setting the mtu on one of my ixgbe(4) intel NICs to support > jumbo frames. This is on a box with RELENG_8 from today. > > # ifconfig ix0 mtu 9198 > > I then get the following error: > > # tail -n 1 /var/log/messages > Apr 14 12:48:43 siloneu kernel: ix0: Could not setup receive structures > > I already tried the following patch because of Jack Vogel's advice given > in the following thread on -stable in Oct. last year, which still > produces the same error message and leaves the box unpingable: > > http://lists.freebsd.org/pipermail/freebsd-stable/2010-October/059541.html > > # cat ~/patches/ixgbe.num_queues_to_4.patch > --- /root/.vimbackup/ixgbe.c~ 2011-04-12 22:14:27.000000000 +0000 > +++ sys/dev/ixgbe/ixgbe.c 2011-04-12 22:14:27.000000000 +0000 > @@ -273,7 +273,7 @@ TUNABLE_INT("hw.ixgbe.hdr_split", &ixgbe > * number of cpus. Each queue is a pair > * of RX and TX rings with a msix vector > */ > -static int ixgbe_num_queues = 0; > +static int ixgbe_num_queues = 4; > TUNABLE_INT("hw.ixgbe.num_queues", &ixgbe_num_queues); > > /* > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"Hi, Have you tried increasing the following sysctls ? : kern.ipc.nmbjumbo16 kern.ipc.nmbjumbo9 kern.ipc.nmbclusters Regards, Nikolay
If you get this message its only for one reason, you don't have enough mbufs to fill your rings. You must do one of two things, either reduce the number of queues, or increase the relevant mbuf pool. Increase the 9K mbuf cluster pool. Jack On Thu, Apr 14, 2011 at 6:05 AM, Leon Me?ner <l.messner@physik.tu-berlin.de>wrote:> Hi, > > i tried setting the mtu on one of my ixgbe(4) intel NICs to support > jumbo frames. This is on a box with RELENG_8 from today. > > # ifconfig ix0 mtu 9198 > > I then get the following error: > > # tail -n 1 /var/log/messages > Apr 14 12:48:43 siloneu kernel: ix0: Could not setup receive structures > > I already tried the following patch because of Jack Vogel's advice given > in the following thread on -stable in Oct. last year, which still > produces the same error message and leaves the box unpingable: > > http://lists.freebsd.org/pipermail/freebsd-stable/2010-October/059541.html > > # cat ~/patches/ixgbe.num_queues_to_4.patch > --- /root/.vimbackup/ixgbe.c~ 2011-04-12 22:14:27.000000000 +0000 > +++ sys/dev/ixgbe/ixgbe.c 2011-04-12 22:14:27.000000000 +0000 > @@ -273,7 +273,7 @@ TUNABLE_INT("hw.ixgbe.hdr_split", &ixgbe > * number of cpus. Each queue is a pair > * of RX and TX rings with a msix vector > */ > -static int ixgbe_num_queues = 0; > +static int ixgbe_num_queues = 4; > TUNABLE_INT("hw.ixgbe.num_queues", &ixgbe_num_queues); > > /* > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >