Unfortunately, we don’t support any of those options at this time. In 
particular, the stack won’t delay segments and tcp doesn’t do keepalives. Do 
you really need those?

If you need to constrain tcp mss, you can indirectly do it by configuring the 
tcp mtu as a vpp startup parameter. You can’t do it per connection at this 
time.  

Florin

> On Jun 12, 2019, at 12:01 PM, Nataraj Batchu <nataraj.bat...@gmail.com> wrote:
> 
> Hi Florin,
> 
> Thanks for reply. My question is setsockopt() for not yet established 
> sessions i.e before connect(). I was trying to clearing TCP_NODELAY, setting 
> TCP_MAXSEG(to much lower than interface MTU) and TCP_KEEPINTVL. These options 
> need to be communicating to the vnet right?  I was looking for that.
> 
> Thanks,
> -Nataraj
> 
> On Wed, Jun 12, 2019 at 11:14 AM Florin Coras <fcoras.li...@gmail.com 
> <mailto:fcoras.li...@gmail.com>> wrote:
> Hi Nataraj, 
> 
> TCP defaults to TCP_NODELAY behavior, unless you need Nagle’s algorithm on, 
> you should be fine. 
> 
> As for the socket options, no. At this time, ldp cannot change properties for 
> established tcp connections. What sort of things are you missing?
> 
> Thanks,
> Florin 
> 
> > On Jun 12, 2019, at 11:04 AM, Nataraj Batchu <nataraj.bat...@gmail.com 
> > <mailto:nataraj.bat...@gmail.com>> wrote:
> > 
> > Hi,
> > 
> > I was trying to use TCP_NODELAY socket option in my application. But I see 
> > that relevant code is "VPP-TBD" in vppcom.c. I see same comment for most of 
> > socket options.  Is there any other branch where code is available? If not, 
> > are there any plans to support setsockopt that involve communicating VPP 
> > TCP core.  
> > 
> >     case VPPCOM_ATTR_SET_TCP_NODELAY:
> >       if (buffer && buflen && (*buflen == sizeof (int)))
> >  {
> >    /* VPP-TBD */
> >    if (*(int *) buffer)
> >      VCL_SESS_ATTR_SET (session->attr, VCL_SESS_ATTR_TCP_NODELAY);
> >    else
> >      VCL_SESS_ATTR_CLR (session->attr, VCL_SESS_ATTR_TCP_NODELAY);
> >  
> >    VDBG (2, "VPPCOM_ATTR_SET_TCP_NODELAY: %d, buflen %d, #VPP-TBD#",
> >  VCL_SESS_ATTR_TEST (session->attr, VCL_SESS_ATTR_TCP_NODELAY),
> >  *buflen);
> >  }
> >  
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > 
> > View/Reply Online (#13268): https://lists.fd.io/g/vpp-dev/message/13268 
> > <https://lists.fd.io/g/vpp-dev/message/13268>
> > Mute This Topic: https://lists.fd.io/mt/32043473/675152 
> > <https://lists.fd.io/mt/32043473/675152>
> > Group Owner: vpp-dev+ow...@lists.fd.io <mailto:vpp-dev%2bow...@lists.fd.io>
> > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
> > <https://lists.fd.io/g/vpp-dev/unsub>  [fcoras.li...@gmail.com 
> > <mailto:fcoras.li...@gmail.com>]
> > -=-=-=-=-=-=-=-=-=-=-=-
> 
> 
> 
> -- 
> Thanks,
> -Nataraj

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13271): https://lists.fd.io/g/vpp-dev/message/13271
Mute This Topic: https://lists.fd.io/mt/32043473/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