anju Mary wrote: > hai, > Is the usage of the function skb_shinfo is valid in rtnet programming.In my
Nope, it isn't. RTnet's rtskbs have some different concepts do to strict
resource accounting, see rtnet/stack/include/rtskb.h for a short
introduction.
> ethernet driver
> static int tsi109_send_packet(struct rtskb *skb, rtnet_device *dev)
> {
> tsi109_prv_data *data = dev->priv;// tsi109_prv_data *data =
> (struct tsi109_prv_data *)(dev);
> int i;
> int frags = skb_shinfo(skb)->nr_frags + 1;
There is no fragmentation of outgoing packets in RTnet, just for
incoming, but that's nothing a driver need to worry about.
> .....
> if (i == 0) {
> data->txring[tx].buf0 = virt_to_phys(skb->data);
> //Naishab data->txring[tx].len = skb->len - skb->data_len;
> if(skb->len < 1500)
> data->txring[tx].len = skb->len;
> else
> data->txring[tx].len = 1500;
>
> misc |= TSI109_TX_SOF;
> } else {
> skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1];
>
> data->txring[tx].buf0 = page_to_phys(frag->page) +
> frag->page_offset;
> data->txring[tx].len = frag->size;
> }
>
> getting a Jung value for the variable frags,
> Is it the problem with skb_shinfo?What is solution for this problem ?
> Is any alternate method for the function skb_shinfo?
> Please can anyone help me?????????
> Thanks in advance
> please reply to my mail id...
>
To get some review of your work, I can only recommend posting the
changes in form of a patch against rtnet.git. Once we've resolved
remaining issues and the driver works for you (I don't think I've some
to test around), I would happily merge your work upstream.
Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ RTnet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-users

