Commit Graph

18 Commits

Author SHA1 Message Date
skrll
5e3c24dab5 Whitespace 2014-07-23 06:10:40 +00:00
mlelstv
f51b23f2cb Align buffer pointer to longwords. Otherwise arbitrary data will be
interpreted as length field of the receive header which can
cause mbuf overruns and memory corruption. Also add sanity checks.
2014-06-13 18:49:41 +00:00
skrll
00990288cc Comment KNF 2014-06-09 15:50:55 +00:00
skrll
0249319b98 spaces to tab. 2014-06-09 15:50:16 +00:00
skrll
7596beafa9 burst_cap is always set now - remove the conditional. 2014-06-09 15:48:36 +00:00
mlelstv
a20ef52463 Fix receive loop, enable turbo mode, checksum offloading still needs
correct handling of pseudo headers.

The Raspberry PI now copies at 2MByte/s with scp and 4MByte/s with NFS.

Based on work from nick@.
2014-06-09 14:18:28 +00:00
skrll
7091ca2edf Clean up (mostly remove unneeded) #includes 2013-11-01 14:24:03 +00:00
skrll
ab3caea167 PR/48251: usmsc cannot change link address
Use CLLADDR appropriately.
2013-09-29 07:25:53 +00:00
christos
667a5572fe remove trailing whitespace 2013-03-30 14:30:24 +00:00
christos
0a70dc877e remove trailing whitespace 2013-03-30 03:15:52 +00:00
skrll
c885a8d72b Comments corrections. 2013-03-11 09:35:38 +00:00
skrll
c763fabfc5 Simplify the code by only checking for total_len < pktlen once. The second
check was actually wrong - found by matt@ and clang.
2013-01-26 07:52:16 +00:00
jmcneill
7c64a30e85 - Add a USBD_MPSAFE flag to usbd_open_pipe. If not set, acquire KERNEL_LOCK
before invoking xfer callbacks on this pipe.
- Add an extra flags parameter to usb_init_task. If USBD_TASKQ_MPSAFE is not
  present, acquire KERNEL_LOCK before invoking the task callback.
2013-01-22 12:40:42 +00:00
skrll
fab9d8686e Fix another locking issue for an error case.
Return a EIO not -EIO (KNF)

From rmind
2013-01-13 15:34:03 +00:00
skrll
85f6998299 Remove IFF_OACTIVE in txeof always, i.e. for the usb error case as well.
Set an if_timer.
2013-01-13 08:38:04 +00:00
skrll
9d7a8a630c Fix locking botch 2013-01-13 08:05:30 +00:00
jakllsch
28256562db Regen usbdevs and catch up to VENDOR_SMC2 to VENDOR_SMSC change. 2013-01-12 20:06:47 +00:00
skrll
f9005c4809 Add usmsc(4) - a driver for the SMSC95XX USB ethernet devices.
This is a port of the OpenBSD driver which itself was a port of the
FreeBSD driver.

sorry mrg. jared made me do it.
2013-01-09 23:02:59 +00:00