Re: [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-07 Thread Flavio Leitner
On Wed, 6 Nov 2019 01:59:41 +0530 Ramana Reddy wrote: > Hi Flavio, > As per your inputs, I modified the gso_size, and now > skb_gso_validate_mtu(skb, mtu) is returning true, and > ip_finish_output2(sk, skb) and dst_neigh_output(dst, neigh, skb); are > getting called. But still, I am seeing the

Re: [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-05 Thread Ramana Reddy
Hi Flavio, As per your inputs, I modified the gso_size, and now skb_gso_validate_mtu(skb, mtu) is returning true, and ip_finish_output2(sk, skb) and dst_neigh_output(dst, neigh, skb); are getting called. But still, I am seeing the large packets getting dropped somewhere in the kernel down the

Re: [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-04 Thread Ramana Reddy
Thanks, Flavio. I will check it out tomorrow and let you know how it goes. Regards, Ramana On Mon, Nov 4, 2019 at 10:15 PM Flavio Leitner wrote: > On Mon, 4 Nov 2019 21:32:28 +0530 > Ramana Reddy wrote: > > > Hi Favio Leitner, > > Thank you very much for your reply. Here is the code snippet.

Re: [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-04 Thread Flavio Leitner
On Mon, 4 Nov 2019 21:32:28 +0530 Ramana Reddy wrote: > Hi Favio Leitner, > Thank you very much for your reply. Here is the code snippet. But the > same code is working if I send the packet without ovs. Could you provide more details on the OvS environment and the test? The linux kernel

Re: [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-04 Thread Ramana Reddy
Hi Favio Leitner, Thank you very much for your reply. Here is the code snippet. But the same code is working if I send the packet without ovs. bool csum = true; bool gso = true' struct virtio_net_hdr *vnet = buf; if (csum) { vnet->flags =

Re: [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-04 Thread Flavio Leitner
Hi, What's the value you're passing on gso_size in struct virtio_net_hdr? You need to leave room for the encapsulation header, e.g.: gso_size = iface_mtu - virtio_net_hdr->hdr_len fbl On Mon, 4 Nov 2019 01:11:36 +0530 Ramana Reddy wrote: > Hi, > I am wondering if anyone can help me with

[ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-03 Thread Ramana Reddy
Hi, I am wondering if anyone can help me with this. I am having trouble to send tso/gso packet with af_packet socket with packet_vnet_hdr (through virtio_net_hdr) over vxlan tunnel in OVS. What I observed that, the following function eventually hitting and is returning false (net/core/skbuff.c),