diff 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
line wrap: on
line diff
--- a/rathaxes_samples_e1000_use_the_dma_abstraction_in_socket.patch	Fri Jul 26 21:06:45 2013 -0700
+++ b/rathaxes_samples_e1000_use_the_dma_abstraction_in_socket.patch	Sat Jul 27 16:08:40 2013 -0700
@@ -1,5 +1,5 @@
 # HG changeset patch
-# Parent 8f0f99a85db3d5b034644962b33352a04c4eda59
+# Parent 4b0b03bb17b3c70e333fb3c637e199669a792b30
 rathaxes: abstract away netdev_alloc_skb() from e1000::set_up_device
 
 By adding a new method to Ethernet::Device.
@@ -206,14 +206,32 @@
 +++ b/rathaxes/samples/e1000/socket.rti
 @@ -1,4 +1,4 @@
 -interface Socket : LKM, Device
-+interface Socket : LKM, Device, DMA
++interface Socket : LKM, Device, DMA, Builtin
  {
      /* The SKBuff type from the kernel */
      provided type   AbstractSKBuff
-@@ -19,5 +19,8 @@
-         method      map_from(Device::AbstractDevice);
-         method      unmap_to_and_free(Device::AbstractDevice);
-         method      unmap_from_and_free(Device::AbstractDevice);
+@@ -10,14 +10,17 @@
+ 
+     provided type   SKBuff
+     {
+-        chunk       LKM::prototypes();
+-        chunk       LKM::code();
+-        decl        data_types();
+-        method      init(Socket::AbstractSKBuff);
+-        method      dump_infos();
+-        method      map_to(Device::AbstractDevice);
+-        method      map_from(Device::AbstractDevice);
+-        method      unmap_to_and_free(Device::AbstractDevice);
+-        method      unmap_from_and_free(Device::AbstractDevice);
++        chunk   LKM::prototypes();
++        chunk   LKM::code();
++        decl    data_types();
++        method  init(Socket::AbstractSKBuff);
++        method  dump_infos();
++        method  map_to(Device::AbstractDevice);
++        method  map_from(Device::AbstractDevice);
++        method  unmap_to_and_free(Device::AbstractDevice);
++        method  unmap_from_and_free(Device::AbstractDevice);
 +
 +        attribute   Socket::AbstractSKBuff.ref      sk_buff;
 +        attribute   DMA::AbstractDMAHandle.scalar   dma_handle;