<div dir="ltr">hi all:<div> <span style="color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:14px;line-height:17.804800033569336px">I use vmalloc() which alloc the memory for skb->data, so this let NIC down. I fix it by use kmalloc().</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-29 20:30 GMT+08:00 lx <span dir="ltr"><<a href="mailto:lxlenovostar@gmail.com" target="_blank">lxlenovostar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi all:<div> I want to send sk_buff by "dev_queue_xmit", when I just send 2 packets, the network card may be hang.</div><div>I want to know how to debug this condition.</div><div><br></div><div>the /var/log/messages is:</div><div>#########################################</div><div><div><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">[root@10g-host2 test]# tail -f /var/log/messages</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:22 10g-host2 acpid: waiting for events: event logging is off</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:23 10g-host2 acpid: client connected from 2018[68:68]</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:23 10g-host2 acpid: 1 client rule loaded</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:24 10g-host2 automount[2210]: lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:24 10g-host2 mcelog: failed to prefill DIMM database from DMI data</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:24 10g-host2 xinetd[2246]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:24 10g-host2 xinetd[2246]: Started working: 0 available services</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:38:25 10g-host2 abrtd: Init complete, entering main loop</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:41 10g-host2 kernel: vmalloc mmap_buf=ffffc90016e29000 mmap_size=4096</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:41 10g-host2 kernel: insmod module wsmmap successfully!</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:49 10g-host2 kernel: mmap_buf + 1024 is ffffc90016e29400</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:49 10g-host2 kernel: data ffffc90016e2942a, len is 42</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:49 10g-host2 kernel: udp data ffffc90016e29422</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:49 10g-host2 kernel: ip data ffffc90016e2940e</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:49 10g-host2 kernel: eth data ffffc90016e29400</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:49 10g-host2 kernel: h_source is ffffc90016e29406, dev_addr is ffff880c235c4750, len is 6result is 0</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:50 10g-host2 kernel: mmap_buf + 1024 is ffffc90016e29400</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:50 10g-host2 kernel: data ffffc90016e2942a, len is 42</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:50 10g-host2 kernel: udp data ffffc90016e29422</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:50 10g-host2 kernel: ip data ffffc90016e2940e</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:50 10g-host2 kernel: eth data ffffc90016e29400</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:50 10g-host2 kernel: h_source is ffffc90016e29406, dev_addr is ffff880c235c4750, len is 6result is 0</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: Detected Tx Unit Hang</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: Tx Queue <11></span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: TDH, TDT <0>, <5></span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: next_to_use <5></span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: next_to_clean <0></span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: tx_buffer_info[next_to_clean]</span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: time_stamp <fffd3dd8></span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: jiffies <fffd497f></span><br style="color:rgb(0,0,0);font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><font color="#cc0000"><span style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: tx hang 1 detected on queue 11, resetting adapter</span><br style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: Reset adapter</span><br style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: master disable timed out</span><br style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:53 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: detected SFP+: 5</span><br style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto"><span style="font-family:Tahoma;font-size:15px;text-align:-webkit-auto">Sep 29 10:39:54 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: NIC Link is Up 10 Gbps, Flow Control: RX/TX</span></font></div></div><div>#########################################</div><div><br></div><div>some information of my computer is:</div><div>#########################################</div><div><div>ethtool -i eth2</div><div>driver: ixgbe</div><div>version: 3.21.2</div><div>firmware-version: 0x1bab0001</div><div>bus-info: 0000:03:00.0</div><div>supports-statistics: yes</div><div>supports-test: yes</div><div>supports-eeprom-access: yes</div><div>supports-register-dump: yes</div><div>supports-priv-flags: no</div></div><div><br></div><div><div><br></div><div>LSB Version:<span style="white-space:pre-wrap">        </span>:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch</div><div>Distributor ID:<span style="white-space:pre-wrap">        </span>CentOS</div><div>Description:<span style="white-space:pre-wrap">        </span>CentOS release 6.5 (Final)</div><div>Release:<span style="white-space:pre-wrap">        </span>6.5</div><div>Codename:<span style="white-space:pre-wrap">        </span>Final</div></div><div>#########################################</div><div><br></div><div>kernel version is: 2.6.32-431.el6.x86_64</div><div><br></div><div><br></div><div>Thank you for your help.</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>