Skip to contentSkip to conversation

rte_mbuf's packet_type field

DISCUSSION Zoltan Kiss 3 participants 4 messages Mar 1, 2016 – Mar 4, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I have a quick question about this field: how do I know if the underlying PMD supports a particular protocol parsing. Let's say I want to check for SCTP packets, looking at this field tells me EITHER the packet is SCTP (or not), OR that the hardware has no idea about SCTP. Is there a way to figure that support out?

Zoli

#1 lore raw

Hi Zoltan,

Quoted 5 lines · Zoltan Kiss

I have a quick question about this field: how do I know if the underlying PMD supports a particular protocol parsing. Let's say I want to check for SCTP packets, looking at this field tells me EITHER the packet is SCTP (or not), OR that the hardware has no idea about SCTP. Is there a way to figure that support out?

I'm not aware of such a feature. I guess you want to avoid to re-check all protocols in software if the hardware supports some of them and did not recognize them? In that case it may be interesting, but it would result in a lot of feature flags.

Regards,
Olivier

#2 lore raw

Hi,

Quoted 15 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Olivier MATZ
Sent: Friday, March 04, 2016 9:29 AM
To: Zoltan Kiss; [email protected]
Subject: Re: [dpdk-dev] rte_mbuf's packet_type field

Hi Zoltan,

Quoted 5 lines · Zoltan Kiss

I have a quick question about this field: how do I know if the underlying PMD supports a particular protocol parsing. Let's say I want to check for SCTP packets, looking at this field tells me EITHER the packet is SCTP (or not), OR that the hardware has no idea about SCTP. Is there a way to figure that support out?

Quoted 4 lines

I'm not aware of such a feature. I guess you want to avoid to re-check all protocols in software if the hardware supports some of them and did not recognize them? In that case it may be interesting, but it would result in a lot of feature flags.

Nothing in the mainline, but there is a patches in-flight:
http://dpdk.org/dev/patchwork/patch/10921/

Konstantin

Quoted 3 lines

Regards,
Olivier

#3 lore raw
Quoted 17 lines · Konstantin

Hi,

Quoted 15 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Olivier MATZ
Sent: Friday, March 04, 2016 9:29 AM
To: Zoltan Kiss; [email protected]
Subject: Re: [dpdk-dev] rte_mbuf's packet_type field

Hi Zoltan,

Quoted 5 lines · Zoltan Kiss

I have a quick question about this field: how do I know if the underlying PMD supports a particular protocol parsing. Let's say I want to check for SCTP packets, looking at this field tells me EITHER the packet is SCTP (or not), OR that the hardware has no idea about SCTP. Is there a way to figure that support out?

Quoted 7 lines
Quoted 4 lines

I'm not aware of such a feature. I guess you want to avoid to re-check all protocols in software if the hardware supports some of them and did not recognize them? In that case it may be interesting, but it would result in a lot of feature flags.

Nothing in the mainline, but there is a patches in-flight:
http://dpdk.org/dev/patchwork/patch/10921/

Thanks, this would do it!

Regards,

Zoltan

Quoted 7 lines

Konstantin

Quoted 3 lines

Regards,
Olivier