Re: [dpdk-dev] vmxnet3 TX TCP/UDP checksum not getting computed with L2_len > 14

2018-06-17 Thread Padam Jeet Singh
> On 17-Jun-2018, at 10:16 PM, Stephen Hemminger > wrote: > > On Sun, 17 Jun 2018 14:55:06 +0530 > Padam Jeet Singh wrote: > >> Hello, >> >> Issue observed when using vmxnet3 based interface on packet with following >> structure is sent: >&

[dpdk-dev] vmxnet3 TX TCP/UDP checksum not getting computed with L2_len > 14

2018-06-17 Thread Padam Jeet Singh
Hello, Issue observed when using vmxnet3 based interface on packet with following structure is sent: Ethernet + PPPoE + PPP (22 bytes) as the Layer 2 header, IPv4 (20) UDP DNS Payload The tx offload value in this case is 0x0f0 (PKT_TX_IPV4 | PKT_TX_IP_CKSUM | PKT_TX_UDP_CKSUM)

Re: [dpdk-dev] vmxnet3 RX VLAN Strip offload incorrect behaviour

2018-04-19 Thread Padam Jeet Singh
Hi, Does anyone have a work-around for this? Should we debug the vmxnet3 driver since for sure this issue is even coming in standard l2fwd example. Thanks, Padam > On 12-Apr-2018, at 11:52 AM, Padam Jeet Singh > wrote: > > > >> On 10-Apr-2018, at 11:43 AM, Yong Wan

Re: [dpdk-dev] vmxnet3 RX VLAN Strip offload incorrect behaviour

2018-04-11 Thread Padam Jeet Singh
0 vlan_tci_outer=0 ethertype=81 mbuff->vlan_tci=0 vlan_tci_outer=0 ethertype=81 mbuff->vlan_tci=0 vlan_tci_outer=0 ethertype=81 mbuff->vlan_tci=0 vlan_tci_outer=0 ethertype=81 the ether type values are not printed byte-swapped … so it’s 8100 (VLAN) and 0800 (IPv4). > > On 4/8/18

Re: [dpdk-dev] vmxnet3 RX VLAN Strip offload incorrect behaviour

2018-04-08 Thread Padam Jeet Singh
If I redo the test with the same physical and vmware setup but instead of vmxnet3 I use e1000e emulation driver, all of this works fine. Packets come properly stripped of VLAN with vlan_tci fields set correctly. > Yong > > On 4/6/18, 6:51 AM, "dev on behalf of Padam Jee

Re: [dpdk-dev] vmxnet3 RX VLAN Strip offload incorrect behaviour

2018-04-06 Thread Padam Jeet Singh
+ Yong Wang - new maintainer for vmxnet3 pod > On 06-Apr-2018, at 7:21 PM, Padam Jeet Singh wrote: > > Hi, > > When configuring the vmxnet3 based ethernet device, the RX VLAN Strip offload > does not work as it usually does with other real NICs which support this >

[dpdk-dev] vmxnet3 RX VLAN Strip offload incorrect behaviour

2018-04-06 Thread Padam Jeet Singh
Hi, When configuring the vmxnet3 based ethernet device, the RX VLAN Strip offload does not work as it usually does with other real NICs which support this function. When configuring with rxmode.hw_vlan_strip = 1, the ipackets statistic does not increase when a VLAN ether type frame is received

[dpdk-dev] vmxnet3 RX VLAN Strip offload incorrect behaviour

2018-03-25 Thread Padam Jeet Singh
When configuring the vmxnet3 based ethernet device, the VLAN Strip RX offload does not work as it usually does with other real NICs. When configuring with rxmode.hw_vlan_strip = 1, the ipackets statistic does not increase when a VLAN ether type frame is received on the port and it is also not r

[dpdk-dev] Missing Null check in ip_frag_find?

2017-05-09 Thread Padam Jeet Singh
Hi, I have been trying to trace a segfault in ip_frag_find which I am seeing in production for some time now. In the following code in function ip_frag_find from ip_frag_internal.c, the lru is not being validated for being not null. At this point the table is guaranteed to have an entry in the

[dpdk-dev] Unable to change source MAC address of packet

2016-10-27 Thread Padam Jeet Singh
> On 27-Oct-2016, at 7:37 pm, Wiles, Keith wrote: > > >> On Oct 27, 2016, at 6:33 AM, Padam Jeet Singh >> wrote: >> >> Hi, >> >> I am crafting a packet in which the source MAC address as set in the >> Ethernet header is different than th

[dpdk-dev] Unable to change source MAC address of packet

2016-10-27 Thread Padam Jeet Singh
Hi, I am crafting a packet in which the source MAC address as set in the Ethernet header is different than the transmit port?s default MAC address. A packet capture of the packets coming out of this port however comes with source MAC address of the port?s default MAC address. Altering the dest

[dpdk-dev] I211, Double VLAN tags and VLAN Stripping not working

2016-07-11 Thread Padam Jeet Singh
Hello, I am using the development branch of DPDK and am trying out double tagging using the DPDK PMD E1000 driver.

[dpdk-dev] Segmentation fault in ip_frag_find

2016-04-22 Thread Padam Jeet Singh
Hello, We are using the DPDK framework and testing the IP reassembly code. While reassembly is working fine, the application segfaults with the following (partially shown) stack trace. The segfault is not entirely reproducible - it happens quite randomly. Program terminated with signal 11, Seg

[dpdk-dev] DPDK on Xeon Phi Processors

2016-01-08 Thread Padam Jeet Singh
Hi, I was reading up on the Xeon Phi processors - up to 61 cores?.. looks very interesting. Has anyone tried offloading packet processing to such a co-processor utilising the existing code base? Thanks, Padam

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
>> > Yes, you are correct, I just noticed you declare it is static, If possible, > send more codes to me, I can help you with this. >>> Thanks, Padam > I have the following code: mbuf->ol_flags = (uint16_t) (mbuf->ol_flags & (~PKT_TX_OFFLOAD_MASK)); mbuf->

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
> On 28-Oct-2015, at 1:46 pm, Liu, Jijiang wrote: > > > >> -Original Message----- >> From: Padam Jeet Singh [mailto:padam.singh at inventum.net] >> Sent: Wednesday, October 28, 2015 4:12 PM >> To: Liu, Jijiang >> Cc: dev at dpdk.org; Matthew

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
> On 28-Oct-2015, at 1:31 pm, Liu, Jijiang wrote: > > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Padam Jeet Singh >> Sent: Wednesday, October 28, 2015 3:20 PM >> To: Matthew Hall >> Cc: dev at dpdk.org >&

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
On 28-Oct-2015, at 12:27 pm, Matthew Hall wrote: > > On Wed, Oct 28, 2015 at 12:20:22PM +0530, Padam Jeet Singh wrote: >> Any hint what could I be doing wrong here? > > When this kind of stuff doesn't work it often will depend on the exact > version > of card

[dpdk-dev] Wrong TCP Checkum computed by hardware

2015-10-28 Thread Padam Jeet Singh
Hi, While implementing a sample packet generation code, I am setting up the offload flags so that the hardware (82599ES in my case) computes the IP and TCP Checksums. However, it seems that only the IP checksum is computed whereas the TCP Checksum is computed, but computed wrong. Here is a snip

[dpdk-dev] Debugging memory leak of mbufs

2015-09-11 Thread Padam Jeet Singh
Hello, I have an application which in which the rte_mempool for packets associated with the network interfaces using IXGBE and IGB drivers is depleting slowly. Each time I do a throughput test, the number of free_count keeps reducing by 10-15 entries, and finally completely exhausts. Any input

[dpdk-dev] Packet Cloning

2015-05-29 Thread Padam Jeet Singh
Thanks Marc, Matt, Kyle, and Stephen for your inputs! I have a possibly good solution of splitting the mbuf into parts to correctly mirror to multiple interfaces, else a fallback of copying the full payload into a new mbuf. Though the library doesn?t offer a standard method to copy, I can submi

[dpdk-dev] Packet Cloning

2015-05-28 Thread Padam Jeet Singh
Hello, Is there a function in DPDK to completely clone a pkt_mbuf including the segments? I am trying to build a packet mirroring application which sends packet out through two separate interfaces, but the packet payload needs to be altered before send. Thanks, Padam

[dpdk-dev] VLAN header insertion and removal

2014-12-21 Thread Padam Jeet Singh
Hello, I have done a simple mbuf adjust and prepend to achieve the removal and insertion of the vlan header and it works fine. The use case is something similar to the l3fwd example where one port has traffic coming in on multiple vlans and the other port has no vlans. The packet processing pa

[dpdk-dev] [PATCH] kni: allow setting KNI device MAC address

2014-07-01 Thread Padam Jeet Singh
Added relevant callback function to change a KNI device's MAC address Signed-off-by: Padam Jeet Singh --- lib/librte_eal/linuxapp/kni/kni_net.c | 16 1 file changed, 16 insertions(+) diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_