summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-11-21Assert that defrtrlist_update() is always called at IPL_SOFTNET.Martin Pieuchot
2016-11-21Assert that prelist_update() is always called at IPL_SOFTNET.Martin Pieuchot
While here use __func__ in debug strings to reduce noise when grepping.
2016-11-21Assert that in6_ifadd() is always called at IPL_SOFTNET.Martin Pieuchot
While here us __func__ in debug strings to reduce noise when grepping.
2016-11-21Kill rtioctl() stub, returning EOPNOTSUPP since tree import.Martin Pieuchot
ok jsg@
2016-11-21Make sure bpf_wakeup() is called at most once when matching conditionsMartin Pieuchot
are fulfilled in bpf_catchpacket().
2016-11-21Rename bpf_reset_d() to match bpf_{attach,reset}d().Martin Pieuchot
2016-11-21Enforce that pr_usrreq functions are called at IPL_SOFTNET.Martin Pieuchot
This will allow us to keep locking simple as soon as we trade splsoftnet() for a rwlock. ok bluhm@, claudio@
2016-11-21Include the OFP header of the message that caused the error on errorRafael Zalamena
messages. ok reyk@
2016-11-21bridge(4) does not distinguish between routing/forwarding ports, soReyk Floeter
make "addlocal" an alias to "add" on bridge. addlocal is handled differently on switch(4). OK yasuoka@
2016-11-21Some MBIM devices need a FCC Authentication before they're willing toGerhard Roth
turn on the radio. This is done by encapsulating QMI requests inside a MBIM message. Based on prio work by sthen@, tested by Bryan Vyhmeister. ok sthen@
2016-11-21let pool page allocators advertise what sizes they can provide.David Gwynne
to keep things concise i let the multi page allocators provide multiple sizes of pages, but this feature was implicit inside pool_init and only usable if the caller of pool_init did not specify a page allocator. callers of pool_init can now suplly a page allocator that provides multiple page sizes. pool_init will try to fit 8 items onto a page still, but will scale its page size down until it fits into what the allocator provides. supported page sizes are specified as a bit field in the pa_pagesz member of a pool_allocator. setting the low bit in that word indicates that the pages can be aligned to their size.
2016-11-20Drop pointless type casts.Visa Hankala
2016-11-20Extend the DLT_OPENFLOW header to include the switch datapath id.Reyk Floeter
OK rzalamena@
2016-11-20Make rtable_iterate(9) mpsafe by using the new SRPL_NEXT(9).Martin Pieuchot
ok dlg@, jmatthew@
2016-11-20Rename SRPL_ENTER() to SRPL_FIRST() and SRPL_NEXT() to SRPL_FOLLOW().Martin Pieuchot
This allows us to introduce SRPL_NEXT() that can be used to start iterating on an arbitrary member of an srp list, hence without calling SRPL_ENTER(). ok dlg@, jmatthew@
2016-11-19While setting up the basic rate bitmask for iwm's firmware, if the AP doesStefan Sperling
not specify basic rates for either the CCK or OFDM set, add just the most basic rate to that set (1 Mbit/s in case of CCK, 6 Mbit/s in case of OFDM). This behaviour matches what code comments seem to imply. The previous code would add all possible basic rates in such cases. So if all basic rates were CCK only, the code would add all possible OFDM basic rates on top. Then the firmware would send some frames at too high rates, e.g. RTS frames would be sent at 24Mbit/s which is a bit risky on noisy channels. ok tb@
2016-11-19Set iwm's RTS retry limit to a more reasonable value. Prevents small framesStefan Sperling
from getting stuck in the firmware's Tx queue for a long time behind other frames large enough to trigger RTS but not making it out (e.g. due to bad channel conditions). ok tb@
2016-11-18Sync some changes for ixgbe_initialize_receive_unitsMike Belopuhov
Call a chip specific method to disable RX unit; DPF (Drop [Unicast] Pause Frames) and PMCF (Pass MAC Control Frames) bits should only be enabled on 82598 since others don't document them.
2016-11-18Recognize active SPF+ DA modules as IFM_10G_SFP_CUMike Belopuhov
Reported and tested by Hrvoje Popovski, thanks!
2016-11-18Fix end of interrupt routine to make pciide(4) work.Visa Hankala
Clue stick from miod@
2016-11-18Define a group_id map and rename the defines accordingly.Reyk Floeter
Requested by rzalamena@
2016-11-18Fix a panic introduced with the memory leak correction. Use the savedRafael Zalamena
length instead of the packet instruction length to free the old instruction. ok reyk@
2016-11-18Use the ErrorEPC register for curcpu().Visa Hankala
2016-11-18Add more maps to print. As discussed with rzalamena@Reyk Floeter
2016-11-18Support for new GPI signals, including X550 external PHY interruptMike Belopuhov
This factors out the code configuring General Purpose Interrupts into a separate function and provides LASI (Link Alarm Status Interrupt) handler used by controllers in the X550 family lacking integrated PHY.
2016-11-18Reduce difference in ixgbe_initialize_receive_units to FreeBSD;Mike Belopuhov
no binary change.
2016-11-18Minor code restructuringMike Belopuhov
- separate functions for delay value calculation and figuring out whether or not we're doing SFP. - MAC type detection is now done by ixgbe_set_mac_type; - call {enable,disable}_tx_laser conditionally; - unused TSO code bites the dust; - default to "IFM_ETHER | IFM_AUTO" when we can't select any other media type.
2016-11-18Revert previous, I confused the columnsReyk Floeter
2016-11-18remove 'OpenFlow' prefix from version commentsReyk Floeter
2016-11-18Add more documentation to header definitions that were missing.Rafael Zalamena
2016-11-18Remaining PHY bits; call SFP module detection code for X550 as wellMike Belopuhov
2016-11-18OpenFlow has a very simple finite state machine that is onlyReyk Floeter
indirectly documented in the specification. Add the states to the header as it is important for all implementations. Both switch(4) and switchd(8) have to be updated to follow the fsm instead of answering any requests at any time. OK rzalamena@
2016-11-18Fix some style issues in header file:Rafael Zalamena
- Use the right amount of zeros to match the header bit length; - Use hex instead of bit shifting;
2016-11-18Remove virtualization-related bitsMike Belopuhov
2009-07-31By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2016-11-18turn ipstat into a set of percpu counters.David Gwynne
each counter is identified by an enum value which correspond to the original members of the udpstat struct. udpstat_inc(udps_foo) replaces udpstat.udps_foo++ for the actual updates. udpstat_inc is a thin wrapper around counters_inc. counters are still returned to userland via the udpstat struct for now. ok mpi@ mikeb@ deraadt@
2016-11-17A firmware block check missed in previous commitsMike Belopuhov
2016-11-17Support for I2C combined messages as required by X550Mike Belopuhov
2016-11-17Autoconfiguration and firmware semaphore refactoringMike Belopuhov
2016-11-17EEPROM code refactoring for X540Mike Belopuhov
2016-11-17Bring in new PHY bits, some of the 82599 specific stuff becomes sharedMike Belopuhov
2016-11-17Add DLT_USER1..15 with the same values as the upstream libpcap repository.Stuart Henderson
Suggested by reyk@ as a quick fix to unbreak ports/net/wireshark.
2016-11-17Turn Loongson 3A bits on.Visa Hankala
The work on the platform was made possible by a hardware donation from Loongson Technology.
2016-11-17Add drivers for PCI host bridge and built-in UARTs on Loongson 3A,Visa Hankala
and put the pieces together by platform glue. Feedback from miod@
2016-11-17Make iwm(4) pass Tx/Rx MCS rates to bpf so they can be examined with tcpdump.Stefan Sperling
ok mpi@
2016-11-17Remove splsoftnet()s in the ioctl(2) path.Martin Pieuchot
Since soft-interrupt for network processing are no more, the KERNEL_LOCK() is what protect two concurrent threads from accessing data structures. ok goda@
2016-11-17The pf fragment reassembly code accepted IPv6 hop-by-hop headersAlexander Bluhm
after fragment headers. Add an extra check that the hop-by-hop header is always the first extension header after the IPv6 header. Found by Antonios Atlasis; OK sthen@ mpi@
2016-11-17Update 82598 specific moduleMike Belopuhov
A custom method to enable RX DMA is introduced because of the upcoming API change in the common code. Otherwise it's just a copy of the ixgbe_enable_rx_dma_generic.
2016-11-17Style and typo fixes; no binary changeMike Belopuhov
2016-11-16Remove unused bits; no functional changeMike Belopuhov