Dear all,

 

The following is the problem found in using PF_Ring and TNAPI.

Can you give some suggestion to solve the problem?

Thanks in advance.

 

Best regards,

Associate Professor

Yuh-Horng Shiau

 

Department of Electronic Engineering

National United University

MiaoLi, Taiwan, R.O.C.

 

 

igb_tnapi Testing Problem   09/08/2009

 

           from Professor Shiau (yh_shiau)

 

Problem : igb_tnapi can not respond ping request

 

 

Description:

 

1.Install pf_ring (rev. 3844) and igb_tnapi (1.3.19.3) on Linux (2.6.28),
using IPC with Intel 82575. 

2.Ping the IPC, and find no response.

3.Using tcpdump, tracing igb send out ARP response, but ARP did not receive
the packet.

4.net/core/dev.c in Linux, line 2299, protocol=0, but ARP EtherType should
be 0x0806

5.Modify igb-tnapi.c, insert a new code as follows,

copied_skb -> protocol = skb -> protocol;

 

***** Comment :This is the code where the new code is inserted *****

****************************************************************************
**

           

      /* Normal Linux path */

 

             struct sk_buff *copied_skb = skb_copy(skb, GFP_ATOMIC);

             /* skb_put(copied_skb, skb->len - ETHERNET_FCS_SIZE); */

 

             igb_rx_checksum_adv(adapter, staterr, copied_skb);

             skb->protocol = eth_type_trans(copied_skb, adapter->netdev);

             copied_skb->protocol =skb->protocol;  /* need assign
copied_skb's protocol after skb'protocol has been assigned */

             printk("In pkt_poll_thread: skb->protocol =
%08x\n",skb->protocol);

             igb_receive_skb(rx_ring, staterr, rx_desc, copied_skb);

             adapter->netdev->last_rx = jiffies;

****************************************************************************
***

6.After the modification, ping is working.

7.But system is running for a while, ping will not work again. Checking
net/core/dev.c in Linux, line 2299, protocol= 0x0008, but ARP EtherType
should be 0x0806

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to