comparison rathaxes_samples_e1000_use_the_dma_abstraction_in_socket.patch @ 121:6f600f83a763

WIP, fix Ethernet::Device::alloc_rx_skbuff
author Louis Opter <louis@lse.epita.fr>
date Sat, 27 Jul 2013 16:08:40 -0700
parents cbd9b9a49b63
children
comparison
equal deleted inserted replaced
120:cbd9b9a49b63 121:6f600f83a763
1 # HG changeset patch 1 # HG changeset patch
2 # Parent 8f0f99a85db3d5b034644962b33352a04c4eda59 2 # Parent 4b0b03bb17b3c70e333fb3c637e199669a792b30
3 rathaxes: abstract away netdev_alloc_skb() from e1000::set_up_device 3 rathaxes: abstract away netdev_alloc_skb() from e1000::set_up_device
4 4
5 By adding a new method to Ethernet::Device. 5 By adding a new method to Ethernet::Device.
6 6
7 diff --git a/rathaxes/samples/e1000/socket.blt b/rathaxes/samples/e1000/socket.blt 7 diff --git a/rathaxes/samples/e1000/socket.blt b/rathaxes/samples/e1000/socket.blt
204 diff --git a/rathaxes/samples/e1000/socket.rti b/rathaxes/samples/e1000/socket.rti 204 diff --git a/rathaxes/samples/e1000/socket.rti b/rathaxes/samples/e1000/socket.rti
205 --- a/rathaxes/samples/e1000/socket.rti 205 --- a/rathaxes/samples/e1000/socket.rti
206 +++ b/rathaxes/samples/e1000/socket.rti 206 +++ b/rathaxes/samples/e1000/socket.rti
207 @@ -1,4 +1,4 @@ 207 @@ -1,4 +1,4 @@
208 -interface Socket : LKM, Device 208 -interface Socket : LKM, Device
209 +interface Socket : LKM, Device, DMA 209 +interface Socket : LKM, Device, DMA, Builtin
210 { 210 {
211 /* The SKBuff type from the kernel */ 211 /* The SKBuff type from the kernel */
212 provided type AbstractSKBuff 212 provided type AbstractSKBuff
213 @@ -19,5 +19,8 @@ 213 @@ -10,14 +10,17 @@
214 method map_from(Device::AbstractDevice); 214
215 method unmap_to_and_free(Device::AbstractDevice); 215 provided type SKBuff
216 method unmap_from_and_free(Device::AbstractDevice); 216 {
217 - chunk LKM::prototypes();
218 - chunk LKM::code();
219 - decl data_types();
220 - method init(Socket::AbstractSKBuff);
221 - method dump_infos();
222 - method map_to(Device::AbstractDevice);
223 - method map_from(Device::AbstractDevice);
224 - method unmap_to_and_free(Device::AbstractDevice);
225 - method unmap_from_and_free(Device::AbstractDevice);
226 + chunk LKM::prototypes();
227 + chunk LKM::code();
228 + decl data_types();
229 + method init(Socket::AbstractSKBuff);
230 + method dump_infos();
231 + method map_to(Device::AbstractDevice);
232 + method map_from(Device::AbstractDevice);
233 + method unmap_to_and_free(Device::AbstractDevice);
234 + method unmap_from_and_free(Device::AbstractDevice);
217 + 235 +
218 + attribute Socket::AbstractSKBuff.ref sk_buff; 236 + attribute Socket::AbstractSKBuff.ref sk_buff;
219 + attribute DMA::AbstractDMAHandle.scalar dma_handle; 237 + attribute DMA::AbstractDMAHandle.scalar dma_handle;
220 } 238 }
221 } 239 }