Mercurial > archived > louis > epitech > mq > rathaxes
comparison rathaxes_samples_e1000_split_set_up_device.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 | |
children | 52402232483f |
comparison
equal
deleted
inserted
replaced
120:cbd9b9a49b63 | 121:6f600f83a763 |
---|---|
1 # HG changeset patch | |
2 # Parent 069883bfa2ec71faaf7ab957bc35db087eacc3cc | |
3 rathaxes: split and refactor e1000::set_up_device in {Rx,Tx}Ring methods | |
4 | |
5 | |
6 diff --git a/rathaxes/samples/e1000/e1000.blt b/rathaxes/samples/e1000/e1000.blt | |
7 --- a/rathaxes/samples/e1000/e1000.blt | |
8 +++ b/rathaxes/samples/e1000/e1000.blt | |
9 @@ -752,8 +752,10 @@ | |
10 */ | |
11 for (i = 0; i != ${config.rx_ring_size}; ++i) | |
12 { | |
13 + /* XXX #46: */ | |
14 + // hw_ctx->rx_ring.skbuffs[i].skbuff = ${rtx_ether_ctx.net_device.alloc_rx_skb(${config.rx_buffer_len})}; | |
15 hw_ctx->rx_ring.skbuffs[i].skbuff = (${Socket::AbstractSKBuff}*)netdev_alloc_skb( | |
16 - ${rtx_ether_ctx.net_device.k_net_dev}, /* XXX: .k_net_dev isn't expanded here */ | |
17 + ${rtx_ether_ctx.net_device.k_net_dev}, | |
18 ${config.rx_buffer_len}); | |
19 if (!hw_ctx->rx_ring.skbuffs[i].skbuff) | |
20 { |