DPDK usage discussions
 help / color / Atom feed
* [dpdk-users] How to configure an Ethernet Driver to ignore the Ethertype
@ 2020-02-21 19:19 Jim Murphy
  2020-02-26 21:58 ` David Christensen
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Murphy @ 2020-02-21 19:19 UTC (permalink / raw)
  To: users

Hi,

I was wondering if there is a way to get the Ethernet driver to ignore the
Ethertype. The problem I am having is that I am dealing with a switch chip
that is redirecting packets to the processor via an offload ethernet
device. Before offload the switch chip adds a header that pushes the DA
into the spot where the EtherType is normally. As a result, the ethertype
is essentially a random value so some packets will look like that have a
snap header and the driver will conclude that the packet is corrupted I
presume. I am working with the IXGBE driver.

Any ideas?

Thanks,

Jim

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

* Re: [dpdk-users] How to configure an Ethernet Driver to ignore the Ethertype
  2020-02-21 19:19 [dpdk-users] How to configure an Ethernet Driver to ignore the Ethertype Jim Murphy
@ 2020-02-26 21:58 ` David Christensen
  2020-02-26 23:53   ` Jim Murphy
  0 siblings, 1 reply; 3+ messages in thread
From: David Christensen @ 2020-02-26 21:58 UTC (permalink / raw)
  To: users

> I was wondering if there is a way to get the Ethernet driver to ignore the
> Ethertype. The problem I am having is that I am dealing with a switch chip
> that is redirecting packets to the processor via an offload ethernet
> device. Before offload the switch chip adds a header that pushes the DA
> into the spot where the EtherType is normally. As a result, the ethertype
> is essentially a random value so some packets will look like that have a
> snap header and the driver will conclude that the packet is corrupted I
> presume. I am working with the IXGBE driver.

Are you talking about HiGig/HiGig2 headers? I think your support in the 
DPDK will be limited to octeontx2 (look for switch_header="higig2" in
https://fast.dpdk.org/doc/pdf-guides/nics-master.pdf).

Dave

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

* Re: [dpdk-users] How to configure an Ethernet Driver to ignore the Ethertype
  2020-02-26 21:58 ` David Christensen
@ 2020-02-26 23:53   ` Jim Murphy
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Murphy @ 2020-02-26 23:53 UTC (permalink / raw)
  To: David Christensen; +Cc: users

Hi,

Thanks for the pointers on higig I will look into it. However in this case
these headers are defined arbitrarily using p4.

Thanks,

Jim

On Wed, Feb 26, 2020, 1:58 PM David Christensen <drc@linux.vnet.ibm.com>
wrote:

> > I was wondering if there is a way to get the Ethernet driver to ignore
> the
> > Ethertype. The problem I am having is that I am dealing with a switch
> chip
> > that is redirecting packets to the processor via an offload ethernet
> > device. Before offload the switch chip adds a header that pushes the DA
> > into the spot where the EtherType is normally. As a result, the ethertype
> > is essentially a random value so some packets will look like that have a
> > snap header and the driver will conclude that the packet is corrupted I
> > presume. I am working with the IXGBE driver.
>
> Are you talking about HiGig/HiGig2 headers? I think your support in the
> DPDK will be limited to octeontx2 (look for switch_header="higig2" in
> https://fast.dpdk.org/doc/pdf-guides/nics-master.pdf).
>
> Dave
>

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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 19:19 [dpdk-users] How to configure an Ethernet Driver to ignore the Ethertype Jim Murphy
2020-02-26 21:58 ` David Christensen
2020-02-26 23:53   ` Jim Murphy

DPDK usage discussions

Archives are clonable:
	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


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


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