Hi Sastry, Inline.
> On Jun 3, 2021, at 5:21 AM, Sastry Sista <[email protected]> wrote: > > Hi Florin, > Thank you so much and its really great and timely inputs > you provided and no dictionary words can really express my sincere > appreciation. Emotionally can be expressed. Truly amazing. Wish you the good > luck. Happy to be of help. > > I have reached final stage to take the decision on the solution. Now that I > am done with almost 90% PoC like Async TCP session with 20.05 fdio version. > Source ip/port is support but vrf is missing at API level but, leaf level we > have vrf support. > > We have currently 20.05 version supported at vpp and I can not change to > 21.06 for any gaps. > > So, I did analysed 20.05 and found only vrf support is missing and not > missing much is what I can guess. But, you can help me if anything seriously > missing. > > I have gone through 20.05 fdio version and verified vrf low level. We have > same struct being used at both vpp and vcl i.e session_connect_msg_t . This > has vrf support at 20.05 version. So, shall I go ahead and develop few extra > lines over 20.05 and continue? You may want to start here https://gerrit.fd.io/r/c/vpp/+/30999 <https://gerrit.fd.io/r/c/vpp/+/30999> and hopefully nothing else will be needed since, as you’ve noted, vpp already supported vrfs for some time. Regards, Florin > > VCL side, session: > ============== > static void > vcl_send_session_connect (vcl_worker_t * wrk, vcl_session_t * s) > { > app_session_evt_t _app_evt, *app_evt = &_app_evt; > session_connect_msg_t *mp; > svm_msg_q_t *mq; > > > VPP side: Supported the VRF. > ======= > static void > session_mq_connect_handler (void *data) > { > session_connect_msg_t *mp = (session_connect_msg_t *) data; > vnet_connect_args_t _a, *a = &_a; > app_worker_t *app_wrk; > application_t *app; > int rv; > > app_check_thread_and_barrier (session_mq_connect_handler, mp); > > app = application_lookup (mp->client_index); > if (!app) > return; > > clib_memset (a, 0, sizeof (*a)); > a->sep.is_ip4 = mp->is_ip4; > clib_memcpy_fast (&a->sep.ip, &mp->ip, sizeof (mp->ip)); > a->sep.port = mp->port; > a->sep.transport_proto = mp->proto; > a->sep.peer.fib_index = mp->vrf; > > With Regards > Sastry > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19528): https://lists.fd.io/g/vpp-dev/message/19528 Mute This Topic: https://lists.fd.io/mt/83043661/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
