summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix detection of PC-9821 V166 internal sound card.joel2007-05-191-1/+1
| | | | | | PR: kern/105600 Submitted by: rotus <rotus@takamanohara.dyndns.org> Approved by: ariff
* Minor update to version 3.70.03.007scottl2007-05-192-2/+2
|
* Compare the partner system priority when choosing the aggregator.thompsa2007-05-192-1/+11
|
* Implement the Marker Protocol. A marker frame is placed on the interface queuethompsa2007-05-192-32/+131
| | | | | | | | | | | | | of each port and any further packets are blocked, when the all the marker frames have been returned to us from the remote network device then we can be sure that all interface queues are empty. This is needed when a port is added or removed from the aggregation since it will affect the hash based distribution, if the queues are not empty then a packet from an existing connection may be placed on a different interface and arrive out of order. This was previously achieved by suppressing transmission for 1 second, now that there is an active feedback this timeout as been increased to 3 seconds and used as a fallback.
* Check return value of m_pullup() in firewire_input().rwatson2007-05-191-0/+2
| | | | | CID: 2105 Found with: Coverity Prevent(tm)
* Tweak inlining parameters a little. Add warning to tell us if functionkan2007-05-192-2/+4
| | | | we declared as inline can not be inlined.
* Remove extern struct pcpu __pcpu[]; from the header file andkan2007-05-192-2/+2
| | | | move it the the only file where it appears to be used.
* Include machine/pcb.hto turn extern struct pcb stoppcbs[]; constructkan2007-05-193-0/+3
| | | | into the valid C.
* Remove local static redefinition of ucom_devclass.kan2007-05-191-2/+0
|
* Add kern.arnd sysctl. SSP code uses it to initialize the stack guardkan2007-05-192-1/+14
| | | | | | magic value. Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* Disable -Werror for now.kan2007-05-192-4/+4
| | | | Remove -I- construct obsolete in GCC 4.2.
* Add -Wno-pointer-sign to CWARNFLAGS.kan2007-05-191-2/+2
| | | | | | Switch ia64 kernels to -fpic. This is likely wrong, but at least gets ia64 kernels to compile and link with GCC 4.2. The previous -mno-sdata trick is not working anymore.
* Fix a mbuf leak where sc_start fails or the protocol is none.thompsa2007-05-191-2/+4
|
* Fix locking assert where we should hold the reader lock.thompsa2007-05-182-2/+2
|
* Zero scsi_readcapacity allocations so we can reallymjacob2007-05-181-4/+3
| | | | | | | tell if there has been data returned (for some broken residual checking points). MFC after: 3 days
* Be more restrictive with segment validity checks in syncache_expand()andre2007-05-181-3/+42
| | | | | | and log check failures to syslog at LOG_DEBUG level. Always prefill the sc->sc_ts field to use it in the checks.
* o Add syslog logging under LOG_DEBUG to various failures caused byandre2007-05-181-5/+38
| | | | | | bogus segments o Add more KASSERT()s o Update comments
* Remove unnecessary assignment.rwatson2007-05-181-2/+0
| | | | | CID: 2227 Found with: Coverity Prevent(tm)
* Add tcp_log_addrs() function to generate and standardized TCP log lineandre2007-05-184-22/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for use thoughout the tcp subsystem. It is IPv4 and IPv6 aware creates a line in the following format: "TCP: [1.2.3.4]:50332 to [1.2.3.4]:80 tcpflags <RST>" A "\n" is not included at the end. The caller is supposed to add further information after the standard tcp log header. The function returns a NUL terminated string which the caller has to free(s, M_TCPLOG) after use. All memory allocation is done with M_NOWAIT and the return value may be NULL in memory shortage situations. Either struct in_conninfo || (struct tcphdr && (struct ip || struct ip6_hdr) have to be supplied. Due to ip[6].h header inclusion limitations and ordering issues the struct ip and struct ip6_hdr parameters have to be casted and passed as void * pointers. tcp_log_addrs(struct in_conninfo *inc, struct tcphdr *th, void *ip4hdr, void *ip6hdr) Usage example: struct ip *ip; char *tcplog; if (tcplog = tcp_log_addrs(NULL, th, (void *)ip, NULL)) { log(LOG_DEBUG, "%s; %s: Connection attempt to closed port\n", tcplog, __func__); free(s, M_TCPLOG); }
* Fix statistical accounting for bytes and packets during sack retransmits.jhb2007-05-181-1/+1
| | | | | MFC after: 1 week Submitted by: mohans
* In nfs_down(), if rep can be NULL, which we test for, then we shouldrwatson2007-05-181-3/+4
| | | | | | | | | lock and unlock conditionally, not just set the flag on it conditionally. In practice, this bug couldn't manifest, as in the current revision of the code, no callers pass a NULL rep. CID: 1416 Found with: Coverity Prevent(tm)
* Fix build with NETGRAPH_MPPC_COMPRESSION but without NETGRAPH_MPPC_ENCRYPTION.mav2007-05-181-0/+4
| | | | Approved by: glebius (mentor)
* Help ng_fec deal with multicast addresses.dwmalone2007-05-181-2/+77
| | | | | | | | | | | | | | | | | | | While ng_fec called the ioctl to let interfaces in the bundle know the list of multicast addresses had changed, it never actually updated that list on the interfaces in the bundle. Consequently, the multicast filters could be programmed incorrectly. if_lagg does this correctly, by maintaining a list of addresses that it has added to interfaces in the bundle. This commit basically takes the if_lagg code and adds it to ng_fec. A version of this patch for RELENG_6 has fixed some problems with IPv6 ND over ng_fec. This is probably the problem in PR 107523. PR: 107523 Tested by: Rob Gallagher <robert.gallagher@heanet.ie> Obtained from: if_lagg MFC after: 3 weeks
* Fix a comment.jhb2007-05-181-2/+2
|
* Move lock_profile_object_{init,destroy}() into lock_{init,destroy}().jhb2007-05-185-8/+3
|
* Since renaming of vop_lock to _vop_lock, pre- and post-conditionkib2007-05-1813-31/+31
| | | | | | function calls are no more generated for vop_lock. Rename _vop_lock to vop_lock1 to satisfy tools/vnode_if.awk assumption about vop naming conventions. This restores pre/post-condition calls.
* - define and use VMCNT_{GET,SET,ADD,SUB,PTR} macros for manipulatingjeff2007-05-1846-263/+288
| | | | | | | | vmcnts. This can be used to abstract away pcpu details but also changes to use atomics for all counters now. This means sched lock is no longer responsible for protecting counts in the switch routines. Contributed by: Attilio Rao <attilio@FreeBSD.org>
* - Convert turnstiles and sleepqueus to use UMA. This provides a modestjeff2007-05-182-38/+106
| | | | | | | | | | speedup and will be more useful after each gains a spinlock in the impending thread_lock() commit. - Move initialization and asserts into init/fini routines. fini routines are only needed in the INVARIANTS case for now. Submitted by: Attilio Rao <attilio@FreeBSD.org> Tested by: kris, jeff
* - Disabled responding to NI queries from a global address by default asjinmei2007-05-173-7/+35
| | | | | | | | | | | specified in RFC4620. A new flag for icmp6_nodeinfo was added to enable the feature. - Also cleaned up the code so that the semantics of the icmp6_nodeinfo flags is clearer (i.e., defined specific macro names instead of using hard-coded values). Approved by: gnn (mentor) MFC after: 1 week
* Correct typo in commentcsjp2007-05-171-1/+1
|
* Eliminate a micro-optimization that hasn't had any effect for 15+ years.peter2007-05-171-5/+0
|
* Fix small copy/paste mistake.mav2007-05-171-1/+1
|
* - Fixed 1-2-1 model to not worry about associd in sockoptsrrs2007-05-1714-103/+175
| | | | | | | | | | | | | | | | | | | | - Fixed RTOinfo for bounding. - Fixed connect() to return ECONNREFUSED when an ABORT is received. - Added comments to direct Static Analysis not to look at some things it does not understand (comments are /* sa_ignore XXXXX */) - Bind when colliding was broken, missing not_found = 1 before checking to see if the port was in use caused endless bind loop. - Cookie life needs to be in milliseconds to conform to socket api. - Cookie life is not supposed to change if its 0, On the assoc level set we changed it to 0 opps. - Two more static analysis issues identified by the cisco tool. Null checks needed. - An issue for sendfile(). Need to validate the correct input argument. - When sending failed due to a no route to host, we leaked the mbuf chain failing to call m_freem(). - Fix #ifdef issue for getting hash block len when HAVE_SHA2 is NOT defined Reviewed by: gnn
* Don't export a kern.conftxt sysctl, except when INCLUDE_CONF_FILE isimp2007-05-171-3/+1
| | | | | | | | | | | | | | defined. This restores the old behavior, and eliminates the dependency on the kernconf.tmpl when INCLUDE_CONFIG_FILE isn't included in the kernel config. There were many people in the terminal room that had almost, but not quite, up-to-date config files that this helps. I don't know if this is the result of skew among the cvsup servers, or some other more subtle problem. However, this fix should work for any config of recent vintage (I tested with the latest, and one before the recent changes, and eye-balled the intermediate versions). Reviewed by: the terminal room crew
* The HP Diva RMP3 uses BAR 0x14.marcel2007-05-171-1/+1
|
* Make the serdev I/F non-optional. At least 3 drivers depend on itmarcel2007-05-171-1/+1
| | | | | | and they can be loaded as a module. PR: kern/112706
* Couple of changes, back down on last TSO change, instead make oldjfv2007-05-172-8/+31
| | | | | | | | | | | adapter list still capable, but only PCI-E adapters are now enabled. The user can enable older PCI-X or PCI adapters using ifconfig. Secondly, Arthur Hartwig pointed out my MSI change was not working correctly, changed to something that now does. Thanks Arthur. There was also a fundamental bug in the 82575 MSIX code, the MSIX registers had to be mapped, opps :) Rubber-stamped by: Pdeuskar
* Unbreak IPv4 kernel build.oleg2007-05-171-0/+2
|
* Don't completely skip pci_cfg_save() in the PCI nomatch routine ifjhb2007-05-161-3/+1
| | | | | | | | the power_nodriver tunable is off. pci_cfg_save() already checks the tunable internally, and no other callers of pci_cfg_save() check the tunable. Reviewed by: imp
* Fix interrupt routing for some cards after the previous fix to clear BARsjhb2007-05-161-6/+7
| | | | | | | in cardbus cards: update the saved copy of the PCIR_INTLINE register in the PCI ivars in addition to the actual register. Reviewed by: imp
* - Added TSO supportdavidch2007-05-163-3485/+6212
| | | | | | | | | | | | - Updated firmware to latest release (v3.4.8) to fix TSO + jumbo frame lockup - Added MSI (hw.bce.msi_enable) and TSO (hw.bce.tso_enable) sysctls - Fixed kernel panic when MSI is used and module is unloaded - Added several new debug routines - Removed slack space for RX/TX chains since it only covers sloppy coding - Fixed a potential problem when programming jumbo MTU size in hardware - Various other comment changes MFC after: 4 weeks
* Remove leading spaces before tabs spotted thanks to silby usingrwatson2007-05-161-3/+3
| | | | kwrite to read ip_input.c.
* Generally migrate to ANSI function headers, and remove 'register' use.rwatson2007-05-165-181/+106
|
* Write 0 to all the bars in cardbus_cardbus_setup_regs. This is neededimp2007-05-161-19/+18
| | | | | | | | because on at least my dc based cards there's garbage in there. The recent changes in the resource code appears to have unmasked this problem... At least dc now probes/attaches better than it did before. Also, we no longer need to write to the cfg for the other registers.
* Update the comments on if_alloc(), if_free(), if_free_type(), andbrooks2007-05-161-12/+26
| | | | | | | | if_attach. Remove a comment about pre-3.0 network drivers from if_attach(). Be a bit more consistant about whitespace near comments.
* o Don't hold lock over bus_teardown_intr when we're waiting for theimp2007-05-161-5/+3
| | | | | | thread to die, since that can cause deadlock with the ISR (in theory). o Minor cleanup o comment nit
* Better message on cbb resource alloc failureimp2007-05-161-1/+1
|
* Change PCIM_CIS_ASI_TUPLE to _CONFIG.imp2007-05-162-4/+6
| | | | | | Add PCI_MAX_BAR_0 minor style nit. Add PCIM_CIS_CONFIG_MASK
* Add some doxygen docs for pci_cfg_{save,restore}.imp2007-05-161-0/+10
|
* The struct if_data members ifi_recvquota and ifi_xmitquota have beenbrooks2007-05-162-4/+2
| | | | | unused for ages. Rename them to ifi_spare_char1 and ifi_spare_char2 respectively to indicate this face.
OpenPOWER on IntegriCloud