hai,
Is the usage of the function skb_shinfo is valid in rtnet programming.In  my
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;
.....
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...


anju.
------------------------------------------------------------------------------
Download Intel&#174; 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
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to