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 <[email protected]> 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: *[email protected] <[email protected]> on behalf of Vijay > Kumar via lists.fd.io <[email protected]> > *Date: *Tuesday, 25 May 2021 at 14:07 > *To: *vpp-dev <[email protected]> > *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 (#19465): https://lists.fd.io/g/vpp-dev/message/19465 Mute This Topic: https://lists.fd.io/mt/83074159/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
