DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] dpdk packet validation
       [not found] <735250132.1304895.1606493637100.ref@mail.yahoo.com>
@ 2020-11-27 16:13 ` amit sehas
  2020-11-28  1:09   ` Michael Barker
  0 siblings, 1 reply; 2+ messages in thread
From: amit sehas @ 2020-11-27 16:13 UTC (permalink / raw)
  To: users

Is there some functionality that can validate packets in the same way that NIC validates packets such as ip header checksum
validation etc?

We are looking at some kind of bug in our code where we are exchanging packets at a very low rate between two devices and
we can see that the packets are being sent from the port and are being received by the destination port but they never make it
to the product ... which suggests that the NIC has dropped the packet ... this could happen due to checksum failure or something
else ...

earlier we had a bug which had a checksum failure and we had to fix it ... is there some kind of API in linux which will allow
us to perform the same validation in s/w which is performed by the NIC in h/w.

any help is appreciated ...

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] dpdk packet validation
  2020-11-27 16:13 ` [dpdk-users] dpdk packet validation amit sehas
@ 2020-11-28  1:09   ` Michael Barker
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Barker @ 2020-11-28  1:09 UTC (permalink / raw)
  To: amit sehas; +Cc: users

If you can get a packet capture (e.g. from your switch), Wireshark can do
checksum validation.  It's normally disabled by default, but if you have a
look through the Wireshark docs, there should be info on how to enable it.

Regards,
Michael Barker.

On Sat, 28 Nov 2020 at 05:14, amit sehas <cun23@yahoo.com> wrote:

> Is there some functionality that can validate packets in the same way that
> NIC validates packets such as ip header checksum
> validation etc?
>
> We are looking at some kind of bug in our code where we are exchanging
> packets at a very low rate between two devices and
> we can see that the packets are being sent from the port and are being
> received by the destination port but they never make it
> to the product ... which suggests that the NIC has dropped the packet ...
> this could happen due to checksum failure or something
> else ...
>
> earlier we had a bug which had a checksum failure and we had to fix it ...
> is there some kind of API in linux which will allow
> us to perform the same validation in s/w which is performed by the NIC in
> h/w.
>
> any help is appreciated ...
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-28  1:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <735250132.1304895.1606493637100.ref@mail.yahoo.com>
2020-11-27 16:13 ` [dpdk-users] dpdk packet validation amit sehas
2020-11-28  1:09   ` Michael Barker

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git