summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-11syncTheo de Raadt
2012-11-11align ifaliasreq.ifra_addr similar to the way that ifreq is fixed --Theo de Raadt
a gruesome union, to block the compiler from placing the struct incorrectly aligned on stack frames ok guenther
2012-11-10use boolean_t not bool for a local boolean type so this won'tJonathan Gray
clash with a c99 style bool type. ok millert@ deraadt@
2012-11-10Simplify error handling, add IFCAP_VLAN_MTUStefan Fritsch
Patch by Dinar Talypov t.dinar.m AT gmail.com OK claudio@, mikeb@
2012-11-10consistently use [ -n "${var}" ] instead of [ "${var}" ]Robert Peichaer
no functional change discussed and ok ajacoutot
2012-11-10Rewrite the receive filter handling code and cleanup the ioctl bits.Brad Smith
ok jsg@
2012-11-10Rewrite the receive filter handling code and cleanup the ioctl bits.Brad Smith
ok jsg@
2012-11-10turn single-command if-then-fi blocks into "[ expr ] && command"Robert Peichaer
style lines. no change of functionality. discussed with and ok ajacoutot
2012-11-10add a flag indicating whether shared code was initialized so that weMike Belopuhov
can prevent calling athn_detach if it wasn't; suggestion and ok stsp
2012-11-10sync some 82599 bits with freebsd driver; ok jsgMike Belopuhov
2012-11-10Number of swap pages in use must be smaller than tha total number of swapMark Kettenis
pages, so fix non-sensical comparison introduced in rev 1.77. ok miod@, krw@, beck@
2012-11-10enhance error_rm_wrkdir() to print an error message if one is passedRobert Peichaer
as argument to replace some error "message" error_rm_workdir lines by a single error_rm_workdir "message" line. ok ajacoutot
2012-11-10Recent x86 CPUs come with a constant time stamp counter. If this isMarcus Glocker
the case we verify if the CPU supports a specific version of the architectural performance monitoring feature and read out the current frequency from the fixed-function performance counter of the unhalted core. My initial motivation to implement this was the Soekris net6501-70 which comes with an Intel Atom E6xx 1.60GHz CPU. It has a constant time stamp counter plus speed step support and boots on the lowest frequency of 600MHz. This caused hw.cpuspeed and hw.setperf to reflect the wrong values. The diff is a cooperation work with jsg@. The fixed-function performance counter read code comes from a former diff of him. OK jsg@
2012-11-10raise() is now correctly defined in libcPhilip Guenthe
2012-11-10raise() sends the signal to the current thread and only one error can occur.Philip Guenthe
ok jmc@
2012-11-10Per POSIX, fix raise() and abort() to send the signal to the current thread.Philip Guenthe
Should make coredumps from abort() easier to debug too. ok kurt@
2012-11-09Remove now unused files.Kenneth R Westerback
2012-11-09Doh, in gcc3 the various *_ASM_OP need to output explicit whitespace beforeMiod Vallat
and after the keyword.
2012-11-09don't sync dma memory for the whole ring when updating a singleMike Belopuhov
entry but rather sync the whole ring once done with individual entries; use proper dma sync flags as well
2012-11-09Move the actual operand contraints in define_split constructs from the lispMiod Vallat
expression attributes to the conditional C statement chunk, for this is the only way to have them honored with gcc 3 (thanks for genrecog to warn about this). Note that most of the affected operands were ``register_operand'', hence the "r" constraint is implied. There are a few `register + ccmode' constructs which could have caused wrong code generation before this change, though.
2012-11-09Put prologue and epilogue instructions into their own sequences, bounded byMiod Vallat
``insn deleted'' notes. This prevents the optimizer from chewing too far.
2012-11-09(subreg) in gcc 3 takes the subreg position in bytes, not in BYTES_PER_WORDMiod Vallat
units.
2012-11-09Port the gcc 2.95 m88k fixes to the gcc 3 codebase, except for the functionMiod Vallat
frame setup and varargs handling, which need some more work at the moment.
2012-11-09merge if_ocevar.h and if_oce.c; do some minor cleanup while hereMike Belopuhov
2012-11-09Allow OBSD_HAS_CORRECT_ASM_OPS to prevent <openbsd.h> from redefining theMiod Vallat
.type, .size, .set and .globl stanzas, similar to openbsd.h r1.9 in gcc 2.95
2012-11-09cleanup oce_encapMike Belopuhov
2012-11-09stop passing if_id aroundMike Belopuhov
2012-11-09improve flow control codeMike Belopuhov
2012-11-09Oops. Special dhclient also needs to forget about inet.c.Kenneth R Westerback
Spotted by naddy@
2012-11-09To be able to receive ethernet packets with VLAN tags oce_set_promiscMike Belopuhov
should not disable VLAN promiscuous mode set up by oce_config_vlan. Move VLAN and Flow Control configuration to oce_init so that it would be rerun every time we plumb the interface.
2003-11-29Import gcc-3.3.2. Only the compiler. ada frontend removed for space Marc Espie
considerations.
2012-11-09cleanup register definitionsMike Belopuhov
2012-11-09*really* filter symbols on elf systems: introduce a new "export_symbols"Marc Espie
method that does all the work to produce the right options (one option, so that the *.ver file contains all useful information). Have to cater to regexp: in particular, make sure to nm on every object and static library we might need, so we don't lose anything. Allow for the result to be empty (since some projects use -export-symbols-regex everywhere, *including on binaries with empty symbol lists*) should now be clean portswise. As usual, a non working option means lots of weird fuck-ups to fix first... thx to millert@ for the hint, aja,jasper,landry for comments and testing.
2012-11-09fix get_symbollist: output completely empty file if no symbol.Marc Espie
output slightly more debug info
2012-11-08Remove confusing extra address abstraction 'struct iaddr'. Just useKenneth R Westerback
'in_addr'. Remove many double conversions and other perversions. piaddr() replaced with inet_ntoa(). dhclient is extremely unlikely to support anything but ipv4/dhcp without a complete rewrite. Joint work with chris@. Positive feedback from deraadt@ zinke@ phessler@.
2012-11-08Remove lie about dhclient configuring all interfaces. MentionKenneth R Westerback
'egress' as a special interface name.
2012-11-08make link state update code more comprehensible by using some ideas from myx(4)Mike Belopuhov
2012-11-08hardware supports mtu values from 256 up to 9000;Mike Belopuhov
figured out the hard way, linux driver agrees
2012-11-08When halting the rx engine wait 1ms after destroying the queue inMike Belopuhov
firmware then drain the completion queue and only afterwards deal with posted buffers so that the firmware wouldn't decide to DMA something into the freed cluster. Logic from the Linux driver.
2012-11-08wrap bpfilter portion with #if NBPFILTER > 0.Gleydson Soares
fix kernel builds without bpfilter. OK sthen@ mikeb@ deraadt@ henning@
2012-11-08minor style cleanup, improve the mailbox timeout printfMike Belopuhov
2012-11-08Hide stats calculation ugliness inside oce_update_stats andMike Belopuhov
don't schedule another update if the one at hand fails. s/oce_local_timer/oce_tick/ while here (:
2012-11-08Close routing socket fd leak when deleting old address.Kenneth R Westerback
Spotted by zinke@.
2012-11-08now that our make is more strict, fix ws issue; ok espie@Otto Moerbeek
2012-11-08When running route -Tx exec arp -an, arp would always use the defaultPeter Hessler
routing domain. Fix it so we use the process rdomain, but still allow command line overrides. noticed by, and OK, mikeb@
2012-11-08sync up device ids with freebsdMike Belopuhov
2012-11-08Do not depend on IFCAP_CSUM flags when configuring rx checksummingMike Belopuhov
and correct an incorrect usage of IXGBE_RXCSUM_PCSD. ok henning
2012-11-08mark some more variables as localRobert Peichaer
ok ajacoutot
2012-11-07minor tweaks to the ioctl codeMike Belopuhov
2012-11-07Make the ieee80211_node_incref() macro a static inline function, as itsStefan Sperling
siblings already are. And fix return value of ieee80211_node_decref() which should be unsigned but was signed. diff originally from dhill; ok kettenis reyk