Commit Graph

17 Commits

Author SHA1 Message Date
dfr
e6c2c9e655 Don't call ether_ioctl() with locks held. Loop in xn_rxeof() until the backend
stops adding stuff to the ring otherwise we miss RX interrupts which kills
performance.
2008-11-30 12:21:46 +00:00
ed
db4c3eb350 Remove unused consdev structure fields.
The cn_unit and cn_tp fields don't seem to be used anywhere. Some
drivers set them, while others don't. Just remove them, in an attempt to
make our consdev code a little easier to understand.
2008-10-27 11:45:31 +00:00
ed
4efdef565f Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
2008-09-27 08:51:18 +00:00
kmacy
3d2b6bb54b Update xen/interface includes to the latest in mercurial
MFC after:	1 month
2008-09-26 05:29:39 +00:00
kmacy
7db949181a reflect header change in netfront
MFC after:	1 month
2008-09-25 07:02:00 +00:00
attilio
dbf35e279f Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread
was always curthread and totally unuseful.

Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
2008-08-28 15:23:18 +00:00
kmacy
09865bc91a Evidently the block device starts at 767.
MFC after:	1 month
2008-08-24 04:42:41 +00:00
kmacy
6cd00a892a make block devices start at 0 2008-08-23 21:30:08 +00:00
kmacy
ebff248b66 For reasons that I have not delved in to Xen 3.2 netback now does header splitting
so packets > 128 bytes are now split in to multiple buffer. This fixes netfront
to handle multiple buffers per rx packet.

MFC after:	1 month
2008-08-21 02:40:26 +00:00
kmacy
e647d11859 change netfront to match xen31_6
fix console locking
2008-08-20 09:47:49 +00:00
kmacy
15e36b57cb mark blkfront_info as ready
MFC after:	1 month
2008-08-20 09:22:37 +00:00
kmacy
a6ed34cafa include vmparam.h for KERNBASE and fix typo 2008-08-20 09:11:58 +00:00
kmacy
35e29e10bb register netfront before xenbus does its probing
MFC after: 	1 month
2008-08-20 09:03:23 +00:00
ed
0fa96a5411 Integrate the Xen console driver.
I initially didn't want to integrate the Xen console driver, because it
did not receive any testing. Kip Macy suggested that I'd better check it
in right now, because this is the easiest way for him to test it while
he is working on the Xen import.

Requested by:	kmacy
2008-08-20 09:03:03 +00:00
kmacy
3bbb5703ff Make sure that machine addresses are vm_paddr_t
MFC after:	1 month
2008-08-17 23:33:33 +00:00
kmacy
b65933479a Compile fixes for xen build.
MFC after:	1 month.
2008-08-15 04:00:44 +00:00
kmacy
510c672e13 Import Xen paravirtual drivers.
MFC after:	2 weeks
2008-08-12 20:01:57 +00:00