Hi Vijay,

It is called from ipX-midchain.

/neale

From: Vijay Kumar <vjkumar2...@gmail.com>
Date: Tuesday, 25 May 2021 at 17:08
To: Neale Ranns <ne...@graphiant.com>
Cc: vpp-dev <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] Regarding vnet/gre
Hi Neale,

Thanks for the useful input. I will implement a new fixup function similar to 
the one mentioned.
I believe the gre44_fixup function callback is registered via 
adj_nbr_midchain_update_rewrite()

I saw the code of adj-midchain-tx graph node but could not find the fixup 
function being called. Could you confirm which is the exact graph node that 
calls this fixup callback to process GRE headers?


Regards,
Vijay

On Tue, May 25, 2021 at 6:32 PM Neale Ranns 
<ne...@graphiant.com<mailto:ne...@graphiant.com>> wrote:

Hi Vijay,

I’d advise you to create a new fixup function (c.f. gre44_fixup) that deals 
with the extra headers you want.

/neale


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> on behalf of Vijay Kumar via 
lists.fd.io<http://lists.fd.io> 
<vjkumar2003=gmail....@lists.fd.io<mailto:gmail....@lists.fd.io>>
Date: Tuesday, 25 May 2021 at 14:07
To: vpp-dev <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>
Subject: [vpp-dev] Regarding vnet/gre
Hi,

I have a requirement to add extension fields (like QFI, RQI) into the GRE 
packet header leaving the VPP.
Upon analyzing the packet trace, I found that gre4_input graph node is called 
whenever GRE packets enter VPP but for outgoing packets, the GRE header is  
added by the tunnel's mid-chain adjacencies. There is no GRE graph node 
specifically for adding outgoing GRE header.

Is it a good idea to add code changes in the adj-midchain-tx node for adding 
new fields related to outgoing GRE packets?


Pls advise.


Thanks.
Vijay.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19469): https://lists.fd.io/g/vpp-dev/message/19469
Mute This Topic: https://lists.fd.io/mt/83074159/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to