summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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
2016-11-16Intel X550 specific module; not hooked up to the build yetMike Belopuhov
Obtained from the Intel ixgbe driver in FreeBSD.
2016-11-16Add new structures and new fields; no functional changeMike Belopuhov
2016-11-16Add new register definitions from the upstream; no binary changeMike Belopuhov
2016-11-16Always attempt to restart the transmission when OACTIVE is setMike Belopuhov
There's not much point in adding an additional condition to the ifq_restart call so just get rid of those bits. Also while here, remove a debugging message and make sure to cleanup the whole RNDIS packet before sending it out to the hypervisor.
2016-11-16Convert gre_send_keepalive() to timeout_set_proc(9) as it calls ip_output().Martin Pieuchot
2016-11-16if_link_state_change() doesn't need to be called under splsoftnet(),Martin Pieuchot
it just schedule a task.
2016-11-16Kill outdated comment talking about sofnet.Martin Pieuchot
2016-11-16Use goto in bpf{read,write}() to ease review of locked sections.Martin Pieuchot
While here properly account for used reference in bpfwrite(). ok bluhm@
2016-11-16Be consistent and do not use braces for single line statements.Martin Pieuchot
Prodded by and ok bluhm@
2016-11-16Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),Reyk Floeter
eg. tcpdump -y openflow -i switch0 Includes a minor bump for libpcap. Feedback and OK rzalamena@
2016-11-16Bring icmp6_mtudisc_clone() in line with icmp_mtudisc_clone(). TheAlexander Bluhm
IPv4 dynamic route inherits the priority. Only clone from a valid IPv6 route. Do not use splsoftnet() in IPv6. Some stylistic changes to make the functions similar. OK mpi@
2016-11-16Inherit route label when creating dynamic routes for path MTU.Alexander Bluhm
From Rivo Nurges; OK claudio@ mpi@ phessler@
2016-11-16Allow bpf_allocbufs() to fail when allocating memory.Martin Pieuchot
This will help trading the KERNEL_LOCK for a mutex. ok bluhm@
2016-11-16Kill recursive splsoftnet()s.Martin Pieuchot
While here keep local definitions local. ok bluhm@
2016-11-16Kill recursive splsoftnet()s.Martin Pieuchot
ok bluhm@
2016-11-16regenGerhard Roth
2016-11-16Add Sierra Wireless EM7455 LTE module.Gerhard Roth
from Bryan Vyhmeister, ok sthen@
2016-11-16Use memcpy() to copy structures into freshly malloc'ated buffers,Alexandre Ratchov
as source and destination never overlap in this case. From Michael W. Bombardieri <mb at ii.net>.
2016-11-16rework re_start and re_txeof to be more like other drivers.David Gwynne
the important change is to no longer account for packets and descriptors separately, instead we just deal with available descriptors on the ring. this allows us to guarantee that oactive will only be set after re_start has queued at least one packet, which in turn guarantees that the chip will interrupt in the future and run re_txeof to clear oactive. without this change it was possible for a call of re_start to almost fill the descriptor ring, followed by a second call that could fail to post a packet because it had run out of descriptors and would then set oactive. if re_txeof ran concurrently it could complete all the previously posted packets without noticing that oactive had been set and therefore needed to be cleared. in that situation oactive would be set, but nothing would be set up to clear it in the immediate future. this fixes a lockup reported by haesbaert.
2016-11-16allocate dmamaps for every descriptor in the tx ring.David Gwynne
previously there was a limit of 64 packets on the tx ring. soon we will use as many descriptors as we want to fill the ring.
2016-11-16dont restrict the number of tx descriptors to what can fit on a cpu page.David Gwynne