aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/re
Commit message (Collapse)AuthorAgeFilesLines
* MFC if_re.c 1.73 to RELENG_6.Pyun YongHyeon2006-09-211-0/+8
| | | | | | | | | | | | | | Make 8139C+ work again which was broken since rev 1.68. Ever since rev 1.68 re(4) checks the validity of link in re_start. But rlphy(4) got a garbled data due to a different bit layout used on 8139C+ and it couldn't report correct link state. To fix it, ignore BMCR_LOOP and BMCR_ISO bits which have different meanings on 8139C+. I think this also make dhclient(8) work on 8139C+. Approved by: re (mux) Notes: svn path=/stable/6/; revision=162516
* MFC if_re.c, 1.72 to RELENG_6Pyun YongHyeon2006-08-071-6/+5
| | | | | | | | | Fix re(4) breakage introduced in tree from rev 1.68. This should fix incorrect configuration of station address on big-endian architectures. Notes: svn path=/stable/6/; revision=161032
* MFC: fix padding of short checksum offload frames, fix TX DMA channelBill Paul2006-08-011-23/+52
| | | | | | | | stall, add USR NIC PCI ID, add tsleep() to re_detach() to avoid possible crash when unloading module Notes: svn path=/stable/6/; revision=160885
* MFC: correct PCI ID for 8169SC/8110SC, remove spinlock, work aroundBill Paul2006-07-301-21/+32
| | | | | | | checksum offload bugs, correct device descriptions Notes: svn path=/stable/6/; revision=160844
* MFC: fix detection of 8168, detect 8111 separatelyBill Paul2006-06-281-1/+4
| | | | Notes: svn path=/stable/6/; revision=160009
* MFC updates to the re(4) driver from -currentBill Paul2006-06-261-136/+260
| | | | Notes: svn path=/stable/6/; revision=159963
* MFC:Gleb Smirnoff2006-03-171-4/+0
| | | | | | | | | Do not touch ifp->if_baudrate in miibus aware drivers. Approved by: re (scottl) Notes: svn path=/stable/6/; revision=156820
* MFC 1.65:Gleb Smirnoff2006-03-101-6/+12
| | | | | | | | | Correctly switch IFCAP_VLAN_HWTAGGING on and off. Approved by: re (mux) Notes: svn path=/stable/6/; revision=156525
* - Restore VLAN_INPUT_TAG() macro to preserve API compatibility forGleb Smirnoff2006-01-131-1/+1
| | | | | | | | | third party drivers. - Fix bugs destribed in previous revision using macro with another name. Notes: svn path=/stable/6/; revision=154307
* MFC:Gleb Smirnoff2006-01-131-2/+5
| | | | | | | | | | | | | | - Use VLAN_TAG_VALUE() not only to read a dot1q tag value from an m_tag, but also to set it. This reduces complex code duplication and improves its readability. - Fix VLAN_INPUT_TAG() macro, so that it doesn't touch mtag in case if memory allocation failed. - Remove fourth argument from VLAN_INPUT_TAG(), that was used incorrectly in almost all drivers. Indicate failure with mbuf value of NULL. Notes: svn path=/stable/6/; revision=154298
* MFC: in the re_shutdown() mark interface as down since otherwise we will panicMaxim Sobolev2005-12-291-0/+7
| | | | | | | if interrupt comes in later on, which can happen in some uncommon cases. Notes: svn path=/stable/6/; revision=153824
* MFC 1.61:Gleb Smirnoff2005-11-271-4/+6
| | | | | | | | | | Check IFF_DRV_RUNNING in the re_intr() loop. It can disappear, since re_rxeof() drops the lock for some time. Reported & tested by: XueFeng Deng <dsnofe yahoo.com.cn> Notes: svn path=/stable/6/; revision=152848
* MFC: Only allow the sk(4) driver to attach to revision 2 of the LinkSysJohn Baldwin2005-11-061-0/+13
| | | | | | | EG1032 cards and teach the re(4) driver to attach to revision 3 cards. Notes: svn path=/stable/6/; revision=152126
* This line fell out of the merge, too.Gleb Smirnoff2005-10-081-1/+0
| | | | | | | Approved by: re (implicitly) Notes: svn path=/stable/6/; revision=151083
* Outwit gcc.Scott Long2005-10-081-1/+1
| | | | | | | | Submitted by: glebius, kensmith Approved by: re Notes: svn path=/stable/6/; revision=151076
* Big overall MFC of polling(4) cleanup:Gleb Smirnoff2005-10-071-38/+51
| | | | | | | | | | | | | | | | | | | | | | | o First attempt on removing Giant from polling. Details: http://lists.freebsd.org/pipermail/cvs-src/2005-September/051848.html o Second attempt, and big polling cleanup including: - Functinal approach to turning polling on/off - Deprecating of poll_in_trap - Removal of ifnet knowledge from kern_poll.c Details: http://lists.freebsd.org/pipermail/cvs-src/2005-October/053267.html o Improved checking of user configurable sysctls. Details: http://lists.freebsd.org/pipermail/cvs-src/2005-October/053351.html o Moving DEVICE_POLLING from opt_global.h to opt_device_polling.h: http://lists.freebsd.org/pipermail/cvs-src/2005-October/053479.html o All related documentation fixes. Approved by: re (kensmith) Thanks to: everyone, who helped with testing Notes: svn path=/stable/6/; revision=151061
* MFC: Fixup locking in rl(4) and re(4).John Baldwin2005-10-061-69/+56
| | | | | | | Approved by: re (scottl) Notes: svn path=/stable/6/; revision=151031
* Merge linux_ioctl.c:1.128 svr4_sockio.c:1.17 altq_cbq.c:1.3 if_oltr.c:1.38Robert Watson2005-08-251-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if_pflog.c:1.14 if_pfsync.c:1.21 if_an.c:1.70 if_ar.c:1.72 if_arl.c:1.11 amrr.c:1.10 onoe.c:1.10 if_ath.c:1.101 awi.c:1.41 if_bfe.c:1.27 if_bge.c:1.93 if_cm_isa.c:1.7 smc90cx6.c:1.16 if_cnw.c:1.20 if_cp.c:1.25 if_cs.c:1.42 if_ct.c:1.26 if_cx.c:1.46 if_ed.c:1.256 if_em.c:1.68 if_en_pci.c:1.37 midway.c:1.66 if_ep.c:1.143 if_ex.c:1.58 if_fatm.c:1.20 if_fe.c:1.93 if_fwe.c:1.38 if_fwip.c:1.8 if_fxp.c:1.244 if_gem.c:1.33 if_hatm.c:1.25 if_hatm_intr.c:1.20 if_hatm_ioctl.c:1.13 if_hatm_rx.c:1.10 if_hatm_tx.c:1.14 if_hme.c:1.39 if_ie.c:1.104 if_ndis.c:1.101 if_ic.c:1.24 if_ipw.c:1.10 if_iwi.c:1.10 if_ixgb.c:1.13 if_lge.c:1.41 if_lnc.c:1.113 if_my.c:1.31 if_nge.c:1.77 if_nve.c:1.10 if_owi.c:1.12 if_patm.c:1.9 if_patm_intr.c:1.6 if_patm_ioctl.c:1.10 if_patm_tx.c:1.10 pdq_ifsubr.c:1.28 if_plip.c:1.38 if_ral.c:1.12 if_ral_pci.c:1.2 if_ray.c:1.81 if_rayvar.h:1.22 if_re.c:1.49 if_sbni.c:1.21 if_sbsh.c:1.14 if_sn.c:1.48 dp83932.c:1.21 if_snc_pccard.c:1.9 if_sr.c:1.70 if_tx.c:1.91 if_txp.c:1.33 if_aue.c:1.92 if_axe.c:1.32 if_cdce.c:1.8 if_cue.c:1.59 if_kue.c:1.66 if_rue.c:1.23 if_udav.c:1.16 if_ural.c:1.12 if_vge.c:1.16 if_vx.c:1.58 if_wi.c:1.185 if_wi_pci.c:1.26 if_wl.c:1.68 if_xe.c:1.60 if_xe_pccard.c:1.30 if_el.c:1.68 i4b_ipr.c:1.35 i4b_isppp.c:1.31 kern_poll.c:1.20 bridge.c:1.94 bridgestp.c:1.4 if_arcsubr.c:1.27 if_atm.h:1.24 if_atmsubr.c:1.40 if_bridge.c:1.16 if_ef.c:1.35 if_ethersubr.c:1.196 if_faith.c:1.37 if_fddisubr.c:1.100 if_fwsubr.c:1.14 if_gif.c:1.54 if_gre.c:1.34 if_iso88025subr.c:1.70 if_loop.c:1.107 if_ppp.c:1.106 if_spppsubr.c:1.121 if_tap.c:1.57 if_tun.c:1.154 if_vlan.c:1.80 ppp_tty.c:1.67 ieee80211_ioctl.c:1.32 atm_if.c:1.31 ng_eiface.c:1.33 ng_ether.c:1.50 ng_fec.c:1.19 ng_iface.c:1.44 ng_sppp.c:1.9 ip_carp.c:1.30 ip_fastfwd.c:1.30 in6.c:1.53 nd6_nbr.c:1.31 natm.c:1.40 if_dc.c:1.162 if_de.c:1.168 if_pcn.c:1.72 if_rl.c:1.154 if_sf.c:1.84 if_sis.c:1.135 if_sk.c:1.108 if_ste.c:1.86 if_ti.c:1.109 if_tl.c:1.101 if_vr.c:1.106 if_wb.c:1.81 if_xl.c:1.194 from HEAD to RELENG_6: Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz Approved by: re (scottl) Notes: svn path=/stable/6/; revision=149443
* Merge if_ath.c:1.99 awi.c:1.39 if_bfe.c:1.26 if_bge.c:1.92 if_ed.c:1.255Robert Watson2005-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | if_em.c:1.67 if_ex.c:1.57 if_fe.c:1.92 if_fxp.c:1.242 if_gem.c:1.32 if_hme.c:1.38 if_ie.c:1.103 if_ndis.c:1.100 if_ixgb.c:1.12 if_lge.c:1.40 if_lnc.c:1.112 if_my.c:1.30 if_nge.c:1.76 if_nve.c:1.9 if_owi.c:1.11 pdq_ifsubr.c:1.27 if_ray.c:1.80 if_re.c:1.47 if_sn.c:1.47 dp83932.c:1.20 if_tx.c:1.90 if_txp.c:1.32 if_aue.c:1.91 if_axe.c:1.31 if_cue.c:1.58 if_kue.c:1.65 if_rue.c:1.22 if_udav.c:1.15 if_vge.c:1.15 if_wi.c:1.182 if_wl.c:1.67 if_xe.c:1.58 if_dc.c:1.161 if_de.c:1.167 if_pcn.c:1.70 if_rl.c:1.153 if_sf.c:1.83 if_sis.c:1.134 if_sk.c:1.107 if_ste.c:1.85 if_ti.c:1.108 if_tl.c:1.100 if_vr.c:1.105 if_wb.c:1.80 if_xl.c:1.193 from HEAD to RELENG_6: Modify device drivers supporting multicast addresses to lock if_addr_mtx over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> Approved by: re (scottl) Notes: svn path=/stable/6/; revision=149422
* MFC: Recognize D-Link DGE-528(T) Gigabit as an re(4) device.Anton Berezin2005-08-151-0/+2
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=149084
* Use correct pointer type. This should fix non-functional re(4)Pyun YongHyeon2005-07-011-1/+1
| | | | | | | | | driver on 64bit architectures. Approved by: re (scottl) Notes: svn path=/head/; revision=147714
* Move if_alloc() up so it's before mii_phy_probe().Brooks Davis2005-06-111-6/+7
| | | | Notes: svn path=/head/; revision=147291
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-14/+23
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-291-2/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Unbreak build with POLLING. I should really listen and test with NOTESMax Laier2005-03-131-1/+1
| | | | | | | instead of the module build. Notes: svn path=/head/; revision=143481
* ALTQ support for re(4).Max Laier2005-03-121-6/+14
| | | | | | | | | Submitted by: Chris Dionissopoulos, Theo Schlossnagle PR: kern/78681 MFC after: 2 weeks Notes: svn path=/head/; revision=143469
* Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inWarner Losh2005-03-011-1/+1
| | | | | | | | preference to some random negative number to allow other drivers a bite at the apple. Notes: svn path=/head/; revision=142890
* Bring in support for SUGOI LAN GIGA NIC made by System TALKS, Inc fromWarner Losh2005-01-221-0/+3
| | | | | | | | | | | | a RealTek 8169SB. PR: 74262 Submitted by: Yoshikazu GOTO-san # Submitter notes that he's unsure of the revision string for 8169SB Notes: svn path=/head/; revision=140642
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Disable checksum offloading by default. It seems to produce corrupted packetsOlivier Houchard2005-01-051-2/+2
| | | | | | | | | | with some revisions of the chip (particularly when using multiple TX descriptors). MFC after: 1 week Notes: svn path=/head/; revision=139693
* In re_detach(), remove an extra call to ether_ifdetach().Olivier Houchard2005-01-021-1/+0
| | | | | | | | | This fixes a panic that occurs when unloading the kernel module. MFC after: 3 days Notes: svn path=/head/; revision=139555
* fix jumbo frames as much as they can be fixed for re. We now cap the MTUJohn-Mark Gurney2004-09-281-16/+54
| | | | | | | | | | | | | | to 7422 since it appears that the 8169S can't transmit anything larger.. The 8169S can receive full jumbo frames, but we don't have an mru to let the upper layers know this... add fixup so that this driver should work on alignment constrained platforms (!i386 && !amd64) MFC after: 5 days Notes: svn path=/head/; revision=135896
* trim trailing white space..John-Mark Gurney2004-09-201-2/+2
| | | | | | | | | call the re mutex by it's name.. MFC after: 3 days Notes: svn path=/head/; revision=135505
* spell RX correctlyJohn-Mark Gurney2004-09-191-16/+10
| | | | | | | | | | don't call re_rxeof a second time when we've already done the work pull common code out from if and else clauses MFC after: 3 days Notes: svn path=/head/; revision=135468
* pass in pointer to m_head to re_encap because m_defrag could free theJohn-Mark Gurney2004-09-181-13/+13
| | | | | | | | | | original mbuf causing a free'd mbuf passed to bpf later and panic'ing the system.. This should only effect jumbo frames. MFC after: 5 days Notes: svn path=/head/; revision=135435
* Fixed build with DEVICE_POLLING defined.Ruslan Ermilov2004-09-041-2/+2
| | | | Notes: svn path=/head/; revision=134750
* merge in if_rl locking because if_re was originally based upon if_rl.John-Mark Gurney2004-09-031-84/+135
| | | | | | | | | | This essentially merges revs 1.143-1.1445 of sys/pci/if_rl.c. This now marks the interrupt MPSAFE along with making the mutex non-recursive. Looked over by: bms Notes: svn path=/head/; revision=134711
* Add support Corega CG-LAPCIGT Gigabit Ethernet(8169S)MIHIRA Sanpei Yoshiro2004-08-281-0/+2
| | | | | | | | | PR: [FreeBSD-users-jp 80667] Submitted by: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp> MFC after: 1 week Notes: svn path=/head/; revision=134433
* Eliminate unneeded return keywords.Bruce M Simpson2004-07-061-34/+1
| | | | Notes: svn path=/head/; revision=131668
* Whitespace passBruce M Simpson2004-07-061-54/+54
| | | | Notes: svn path=/head/; revision=131667
* Remove code to slam the config space on transition to d0.Warner Losh2004-06-281-56/+0
| | | | Notes: svn path=/head/; revision=131254
* Replace handrolled CRC calculation with ether_crc32_[lb]e().Christian Weisgerber2004-06-091-29/+2
| | | | Notes: svn path=/head/; revision=130270
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* Wrap the code to save/restore PCI config registers on suspend/resume inJohn Baldwin2004-05-241-0/+8
| | | | | | | | | #ifndef BURN_BRIDGES. Noticed by: phk Notes: svn path=/head/; revision=129672
* A handler for ioctl(SIOCSIFCAP) should not alter a bit inYaroslav Tykhiy2004-05-231-1/+3
| | | | | | | | | | if_capenable unless the interface driver is actually able to toggle the respective capability on and off. Reviewed by: ru Notes: svn path=/head/; revision=129633
* We don't need to initialize if_output, ether_ifattach() does itMaxime Henrion2004-05-231-1/+0
| | | | | | | for us. Notes: svn path=/head/; revision=129616
* Implemented per-interface polling(4) control.Ruslan Ermilov2004-04-111-1/+9
| | | | Notes: svn path=/head/; revision=128138
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-5/+5
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Announce ethernet MAC addresss in ether_ifattach().Matthew N. Dodd2004-03-141-5/+0
| | | | Notes: svn path=/head/; revision=126966
* Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones.David E. O'Brien2003-12-081-6/+6
| | | | | | | Requested by: bde,imp Notes: svn path=/head/; revision=123289