netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergey Kononenko <sergk@sergk.org.ua>
To: netdev@vger.kernel.org
Subject: WARNING at dev_disable_lro when enabling ip_forward
Date: Tue, 19 May 2009 01:01:47 +0300	[thread overview]
Message-ID: <20090519010147.772f0bff@vingilot.sergknet> (raw)

Hello,

I have system with two Intel 82575EB 1Gb/s NICs and two Intel 82598EB
10Gb/s NICs (motherboard Supermicro X7DWU). I'm using kernel 2.6.29.3
with compiled in drivers for both types of NICs with LRO enabled:
CONFIG_INET_LRO=y
CONFIG_IGB=y
CONFIG_IGB_LRO=y
CONFIG_IGB_DCA=y
CONFIG_IXGBE=y
CONFIG_IXGBE_DCA=y

After boot process is completed according to ethtool LRO is disabled on igb
and enabled on ixgbe. After I'm trying to turn on forwarding by
sysctl -w net.ipv4.ip_forward=1 I get following in dmesg:
------------[ cut here ]------------
WARNING: at net/core/dev.c:1199 dev_disable_lro+0x7c/0x80()
Hardware name: X7DWU
Modules linked in: ipt_REJECT ipt_ttl xt_multiport xt_hashlimit xt_length xt_NOTRACK xt_tcpudp xt_state ipt_set ip_set_i
ptree ip_set iptable_raw iptable_filter ip_tables x_tables nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 8021q msr cpuid
 ipmi_devintf ipmi_si ipmi_msghandler coretemp w83793 hwmon_vid i2c_dev loop i2c_i801 psmouse pcspkr i2c_core evdev i5k_
amb i5400_edac edac_core container button usbhid hid usb_storage sg sr_mod cdrom ehci_hcd uhci_hcd usbcore thermal proce
ssor fan thermal_sys hwmon
Pid: 5869, comm: sysctl Not tainted 2.6.29.3 #1
Call Trace:
 [<ffffffff8023b5d0>] warn_slowpath+0xd0/0x130
 [<ffffffff802872b3>] ? __alloc_pages_internal+0xe3/0x4f0
 [<ffffffff8028a3b0>] ? lru_cache_add_lru+0x20/0x50
 [<ffffffff802a12d5>] ? page_add_new_anon_rmap+0x85/0x90
 [<ffffffff80298003>] ? handle_mm_fault+0x553/0x770
 [<ffffffff8029c9bc>] ? vma_adjust+0xfc/0x4e0
 [<ffffffff804c4e8c>] dev_disable_lro+0x7c/0x80
 [<ffffffff8051c2e0>] devinet_sysctl_forward+0x140/0x160
 [<ffffffff8030b7c7>] proc_sys_call_handler+0xc7/0xe0
 [<ffffffff8030b7ef>] proc_sys_write+0xf/0x20
 [<ffffffff802b3f2b>] vfs_write+0xcb/0x190
 [<ffffffff802b40e0>] sys_write+0x50/0x90
 [<ffffffff8020b9db>] system_call_fastpath+0x16/0x1b
---[ end trace 2907c917776795f3 ]---
------------[ cut here ]------------
WARNING: at net/core/dev.c:1199 dev_disable_lro+0x7c/0x80()
Hardware name: X7DWU
Modules linked in: ipt_REJECT ipt_ttl xt_multiport xt_hashlimit xt_length xt_NOTRACK xt_tcpudp xt_state ipt_set ip_set_iptree ip_set iptable_raw iptable_filter ip_tables x_tables nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 8021q msr cpuid ipmi_devintf ipmi_si ipmi_msghandler coretemp w83793 hwmon_vid i2c_dev loop i2c_i801 psmouse pcspkr i2c_core evdev i5k_amb i5400_edac edac_core container button usbhid hid usb_storage sg sr_mod cdrom ehci_hcd uhci_hcd usbcore thermal processor fan thermal_sys hwmon
Pid: 5869, comm: sysctl Tainted: G        W  2.6.29.3 #1
Call Trace:
 [<ffffffff8023b5d0>] warn_slowpath+0xd0/0x130
 [<ffffffff802872b3>] ? __alloc_pages_internal+0xe3/0x4f0
 [<ffffffff8028a3b0>] ? lru_cache_add_lru+0x20/0x50
 [<ffffffff802a12d5>] ? page_add_new_anon_rmap+0x85/0x90
 [<ffffffff80298003>] ? handle_mm_fault+0x553/0x770
 [<ffffffff8029c9bc>] ? vma_adjust+0xfc/0x4e0
 [<ffffffff804c4e8c>] dev_disable_lro+0x7c/0x80
 [<ffffffff8051c2e0>] devinet_sysctl_forward+0x140/0x160
 [<ffffffff8030b7c7>] proc_sys_call_handler+0xc7/0xe0
 [<ffffffff8030b7ef>] proc_sys_write+0xf/0x20
 [<ffffffff802b3f2b>] vfs_write+0xcb/0x190
 [<ffffffff802b40e0>] sys_write+0x50/0x90
 [<ffffffff8020b9db>] system_call_fastpath+0x16/0x1b
---[ end trace 2907c917776795f4 ]---


Disabling ethtool -K eth0 lro off (and eth1 too) before turning on
forwarding don't help. I still get this warning but looks like kernel
works normally after it. I don't want jsut to disable LRO in kernel
config because I use same build of kernel on another machines there are
no need in ip forwarding. So may be this warning can be fixed somehow?

With best regards,
Sergey Kononenko.

             reply	other threads:[~2009-05-18 22:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18 22:01 Sergey Kononenko [this message]
2009-05-18 22:35 ` [IGB 2.6.29.3 bug] Re: WARNING at dev_disable_lro when enabling ip_forward David Miller
2009-05-18 22:57   ` Stephen Hemminger
2009-05-18 23:00     ` David Miller
2009-05-18 23:07       ` Jeff Kirsher
2009-05-18 23:08       ` Stephen Hemminger
2009-05-18 23:41         ` David Miller
2009-05-19 20:46     ` Sergey Kononenko
2009-05-19 22:06       ` Jeff Kirsher
2009-05-19 22:14         ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090519010147.772f0bff@vingilot.sergknet \
    --to=sergk@sergk.org.ua \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).