--- - branch: netbsd-8 date: Wed Apr 4 16:18:49 UTC 2018 files: - new: 1.24.2.9 old: 1.24.2.8 path: src/sys/dev/pci/ixgbe/ix_txrx.c pathrev: src/sys/dev/pci/ixgbe/ix_txrx.c@1.24.2.9 type: modified - new: 1.88.2.16 old: 1.88.2.15 path: src/sys/dev/pci/ixgbe/ixgbe.c pathrev: src/sys/dev/pci/ixgbe/ixgbe.c@1.88.2.16 type: modified - new: 1.24.6.9 old: 1.24.6.8 path: src/sys/dev/pci/ixgbe/ixgbe.h pathrev: src/sys/dev/pci/ixgbe/ixgbe.h@1.24.6.9 type: modified - new: 1.14.8.2 old: 1.14.8.1 path: src/sys/dev/pci/ixgbe/ixgbe_82599.c pathrev: src/sys/dev/pci/ixgbe/ixgbe_82599.c@1.14.8.2 type: modified - new: 1.9.8.2 old: 1.9.8.1 path: src/sys/dev/pci/ixgbe/ixgbe_api.h pathrev: src/sys/dev/pci/ixgbe/ixgbe_api.h@1.9.8.2 type: modified - new: 1.13.2.3 old: 1.13.2.2 path: src/sys/dev/pci/ixgbe/ixgbe_common.c pathrev: src/sys/dev/pci/ixgbe/ixgbe_common.c@1.13.2.3 type: modified - new: 1.7.8.3 old: 1.7.8.2 path: src/sys/dev/pci/ixgbe/ixgbe_common.h pathrev: src/sys/dev/pci/ixgbe/ixgbe_common.h@1.7.8.3 type: modified - new: 1.5.6.3 old: 1.5.6.2 path: src/sys/dev/pci/ixgbe/ixgbe_x550.c pathrev: src/sys/dev/pci/ixgbe/ixgbe_x550.c@1.5.6.3 type: modified - new: 1.2.12.2 old: 1.2.12.1 path: src/sys/dev/pci/ixgbe/ixgbe_x550.h pathrev: src/sys/dev/pci/ixgbe/ixgbe_x550.h@1.2.12.2 type: modified - new: 1.56.2.13 old: 1.56.2.12 path: src/sys/dev/pci/ixgbe/ixv.c pathrev: src/sys/dev/pci/ixgbe/ixv.c@1.56.2.13 type: modified id: 20180404T161849Z.90a6bdbe9e29808e12d7f54315f536429e779848 log: "Pull up following revision(s) (requested by msaitoh in ticket #690):\n\tsys/dev/pci/ixgbe/ixgbe_82599.c: revision 1.17\n\tsys/dev/pci/ixgbe/ixgbe.c: revision 1.138\n\tsys/dev/pci/ixgbe/ixv.c: revision 1.90\n\tsys/dev/pci/ixgbe/ixgbe.c: revision 1.139\n\tsys/dev/pci/ixgbe/ixgbe_common.c: revision 1.19\n\tsys/dev/pci/ixgbe/ixgbe_common.h: revision 1.11\n\tsys/dev/pci/ixgbe/ixgbe.h: revision 1.38\n\tsys/dev/pci/ixgbe/ixgbe_api.h: revision 1.12\n\tsys/dev/pci/ixgbe/ixgbe.h: revision 1.39\n\tsys/dev/pci/ixgbe/ixgbe_x550.c: revision 1.10\n\tsys/dev/pci/ixgbe/ixgbe_x550.c: revision 1.11\n\tsys/dev/pci/ixgbe/ix_txrx.c: revision 1.37\n\tsys/dev/pci/ixgbe/ix_txrx.c: revision 1.38\n\tsys/dev/pci/ixgbe/ixgbe.c: revision 1.140\n\tsys/dev/pci/ixgbe/ixgbe_common.c: revision 1.20\n\tsys/dev/pci/ixgbe/ixgbe.c: revision 1.141\n\tsys/dev/pci/ixgbe/ixgbe.c: revision 1.142\n\tsys/dev/pci/ixgbe/ixgbe.c: revision 1.143\n\tsys/dev/pci/ixgbe/ixgbe.h: revision 1.40\n\tsys/dev/pci/ixgbe/ixgbe_x550.h: revision 1.4\n\nFix the problem between eitr and link_speed.\n\nIn ixgbe_msix_que(), que->eitr_setting is limited to IXGBE_MIN_RSC_EITR_10G1G\nwhen link_speed is 1Gbps or 10Gbps. However, que->eitr_setting is set to EITR\nregister in the *next* Tx/Rx interrupt. If link_speed changes from 100Mbps to\n1Gbps ro 10Gbps, que->eitr_setting which is not limited can be set to EITR\nregister, that is, the problem fixed by ixgbe.c:r1.124 can occur in this case.\n\nTo fix this case, que->eitr_setting should be clear when link_speed is changed\nor link state is changed.\n\nFurthermore, expand the variants used for AIM (txr->bytes, txr->packets,\nrxr->bytes and rxr->packets) from u32 to u64 to avoid wraparound which causes\nque->eitr_setting calculation mistake.\nXXX pullup-8\n\nDon't write EIMC directly. It is required to manage with struct ix_queue status.\nXXX pullup-8\n\n- Add missing IFM_NONE support. If a interface support linkdown,\n \"ifconfig ixgN media none\" drpos link. Not all interface can do link down.\n Tested:\n 82598 AT2 (T)\n 92599 SF+(SFI) (X520-DA2)\n \ X540\n X550-T1\n X550EM_x (X10SDV-8C-TLN4F)\n X550EM_a (A2SDi-H-TP4F port 0, 1 (T))\n Doesn't work:\n X550EM_a (A2SDi-H-TP4F port 2, 3 (SFP+ (KR)))\n X550EM_a (MA10-ST0 port 2, 3 (SFP+ (SFI)))\n (Denverton SFP+ can't force link down because SFP+'s TX_DISABLE pin is\n pull down. Is there a way to shutdown SFP+ cage's power?)\n Not tested:\n 82598 fiber.\n- Change some functions static.\n\nAvoid issues caused by sending old packets at next link-up time.\n\nThis modification consists by the following two parts.\n \ - drain packets in if_snd queue or corresponding txr->txr_interq\n when link_active == false in ifp->if_start(), ifp->if_transmit(),\n and deferred Tx processing\n - drain packets in if_snd queue and all of txr->txr_interq's\n \ at link-down time\nok by msaitoh@n.o.\n\n Fix long standing bug that 82598 SFP+ panics in ixgbe_handle_mod() because\nhw->mac.ops.setup_sfp is NULL. This change is a part of FreeBSD r327031.\n\nFix a bug that \"ifconfig ixgN down up\" forgot IFM_NONE setting.\n - Don't assume autoneg == 0 is the first call of ixgbe_config_link().\n \ Check ifm_media, too.\n - Don't override autoneg_advertised in ixgbe_get_phy_id_fw() to not to\n be inconsistent with if_media value.\n" module: src subject: 'CVS commit: [netbsd-8] src/sys/dev/pci/ixgbe' unixtime: '1522858729' user: martin