<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-IN link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoPlainText><span style='font-family:"Courier New"'>Hello,<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>I am getting this trace from my driver which I ported from 2.6.32-431 to 3.10.0-123 kernel.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>The driver works just fine on 2.6.32-431 kernel but not on 3.10.0-123 after porting.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Ping works fine on 3.10.0-123 but I get this trace when I run ssh or tcp traffic.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Please find the attached wireshark traces of both machines in between ssh was tried.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Please help…<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Patch:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>--- a/src/kernel/xyvnic/xyvnic.c<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+++ b/src/kernel/xyvnic/xyvnic.c<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>@@ -230,7 +230,11 @@ xyvnic_worker_thread(void *arg)<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> * Once unconditional, we will always notify when the<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> * link returns (and when we restart the driver).<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> */<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0))<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> netif_notify_peers(sp->dev);<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+#else<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+ netdev_notify_peers(sp->dev);<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+#endif<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> /*<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> * You may get a series of:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> * NOHZ: local_softirq_pending<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>@@ -429,7 +433,11 @@ xyvnic_probe(void)<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> dev->netdev_ops = &xyvnic_netdev_ops;<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> dev->mtu = STUB_MTU;<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> dev->hard_header_len = ETH_HLEN + 2;<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0))<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> dev->features = NETIF_F_NO_CSUM;<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+#else<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+ dev->features = NETIF_F_HW_CSUM;<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>+#endif<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> <o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> netif_napi_add(dev, &sp->napi, xyvnic_poll, 256);<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> SET_ETHTOOL_OPS(dev, &xyvnic_ethtool_ops);<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Trace:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.486918] ------------[ cut here ]------------<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.492910] WARNING: at net/ipv4/tcp.c:1669 tcp_recvmsg+0xd1c/0xe90()<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.500614] recvmsg bug 2: copied AFA498B3 seq AFA498B3 rcvnxt AFA49EDC fl 0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.508914] Modules linked in: fuse btrfs zlib_deflate raid6_pq xor vfat msdos fat ext4 mbcache jbd2 binfmt_misc bridge stp llc xyvnic(POF) xybridge(POF) sg nfsv3 nfs fscache iTCO_wdt iTCO_vendor_support raid1 dm_mirror dm_region_hash dm_log dm_mod coretemp kvm_intel ipmi_devintf kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul sb_edac glue_helper ablk_helper lpc_ich ses cryptd i2c_i801 pcspkr edac_core mfd_core enclosure ioatdma ipmi_si ipmi_msghandler shpchp acpi_cpufreq wmi mperf acpi_pad nfsd auth_rpcgss nfs_acl lockd sunrpc xfs libcrc32c sd_mod sr_mod cdrom crc_t10dif crct10dif_common mlx4_en usb_storage ast syscopyarea sysfillrect ixgbe sysimgblt i2c_algo_bit drm_kms_helper ttm mdio ahci e1000e libahci dca drm mpt3sas ptp crc32c_intel libata mlx4_core i2c_core<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.588598] raid_class pps_core scsi_transport_sas<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.593575] CPU: 2 PID: 26342 Comm: ssh Tainted: PF W O-------------- 3.10.0-123.20.1.el7.6.xrs7.x86_64 #1<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.605399] Hardware name: Seagate CS6000AC/Type2 - Board Product Summit Point, BIOS SummitPoint.v03.0005 12/12/2014<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.617329] ffff880451583c18 00000000eae1daff ffff880451583bd0 ffffffff815e2b0c<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.626232] ffff880451583c08 ffffffff8105dee1 ffff880464f16100 00000000ffffffff<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.635139] ffff88045b0aaaac ffff88045b0aa610 0000000000000000 ffff880451583c70<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.644060] Call Trace:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.647954] [<ffffffff815e2b0c>] dump_stack+0x19/0x1b<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.654551] [<ffffffff8105dee1>] warn_slowpath_common+0x61/0x80<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.662017] [<ffffffff8105df5c>] warn_slowpath_fmt+0x5c/0x80<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.669200] [<ffffffff815ea202>] ? _raw_spin_lock_bh+0x12/0x50<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.676556] [<ffffffff8151ae4c>] tcp_recvmsg+0xd1c/0xe90<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.683359] [<ffffffff8154347b>] inet_recvmsg+0x7b/0xa0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.690037] [<ffffffff814b7316>] sock_aio_read.part.7+0x146/0x160<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.697559] [<ffffffff811c3701>] ? set_fd_set+0x21/0x30<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.704183] [<ffffffff814b7351>] sock_aio_read+0x21/0x30<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.710855] [<ffffffff811aeffd>] do_sync_read+0x8d/0xd0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.717411] [<ffffffff811af785>] vfs_read+0x145/0x170<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.723752] [<ffffffff811b0208>] SyS_read+0x58/0xb0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.729891] [<ffffffff815f3219>] system_call_fastpath+0x16/0x1b<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.737044] ---[ end trace e338b9f1a546ee37 ]---<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.742782] ------------[ cut here ]------------<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.748524] WARNING: at net/ipv4/tcp.c:1657 tcp_recvmsg+0x4f7/0xe90()<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.756103] recvmsg bug: copied AFA498B3 seq AFA49EB3 rcvnxt AFA49EDC fl 0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.764108] Modules linked in: fuse btrfs zlib_deflate raid6_pq xor vfat msdos fat ext4 mbcache jbd2 binfmt_misc bridge stp llc xyvnic(POF) xybridge(POF) sg nfsv3 nfs fscache iTCO_wdt iTCO_vendor_support raid1 dm_mirror dm_region_hash dm_log dm_mod coretemp kvm_intel ipmi_devintf kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul sb_edac glue_helper ablk_helper lpc_ich ses cryptd i2c_i801 pcspkr edac_core mfd_core enclosure ioatdma ipmi_si ipmi_msghandler shpchp acpi_cpufreq wmi mperf acpi_pad nfsd auth_rpcgss nfs_acl lockd sunrpc xfs libcrc32c sd_mod sr_mod cdrom crc_t10dif crct10dif_common mlx4_en usb_storage ast syscopyarea sysfillrect ixgbe sysimgblt i2c_algo_bit drm_kms_helper ttm mdio ahci e1000e libahci dca drm mpt3sas ptp crc32c_intel libata mlx4_core i2c_core<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.843667] raid_class pps_core scsi_transport_sas<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.848645] CPU: 2 PID: 26342 Comm: ssh Tainted: PF W O-------------- 3.10.0-123.20.1.el7.6.xrs7.x86_64 #1<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.860468] Hardware name: Seagate CS6000AC/Type2 - Board Product Summit Point, BIOS SummitPoint.v03.0005 12/12/2014<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.872408] ffff880451583c18 00000000eae1daff ffff880451583bd0 ffffffff815e2b0c<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.881315] ffff880451583c08 ffffffff8105dee1 ffff880464f16600 00000000ffffffff<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.890230] ffff88045b0aaaac ffff88045b0aa610 0000000000000000 ffff880451583c70<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.899157] Call Trace:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.903053] [<ffffffff815e2b0c>] dump_stack+0x19/0x1b<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.909640] [<ffffffff8105dee1>] warn_slowpath_common+0x61/0x80<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.917105] [<ffffffff8105df5c>] warn_slowpath_fmt+0x5c/0x80<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.924335] [<ffffffff815ea202>] ? _raw_spin_lock_bh+0x12/0x50<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.931686] [<ffffffff8151a627>] tcp_recvmsg+0x4f7/0xe90<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.938488] [<ffffffff8154347b>] inet_recvmsg+0x7b/0xa0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.945168] [<ffffffff814b7316>] sock_aio_read.part.7+0x146/0x160<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.952626] [<ffffffff811c3701>] ? set_fd_set+0x21/0x30<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.959133] [<ffffffff814b7351>] sock_aio_read+0x21/0x30<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.965713] [<ffffffff811aeffd>] do_sync_read+0x8d/0xd0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.972104] [<ffffffff811af785>] vfs_read+0x145/0x170<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.978313] [<ffffffff811b0208>] SyS_read+0x58/0xb0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.984258] [<ffffffff815f3219>] system_call_fastpath+0x16/0x1b<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[ 8904.991223] ---[ end trace e338b9f1a546ee38 ]---<o:p></o:p></span></p></div></body></html>