On 12/24/18 12:53 PM, Trond Myklebust wrote: > On Mon, 2018-12-24 at 11:59 +0300, Vasily Averin wrote: >> Can I just check rqstp->rq_prot ? It is inherited from incoming >> svc_req, >> and it seems it enough to check its propo, it isn't? >> >> svc_process_common() >> ... >> /* Setup reply header */ >> if (rqstp->rq_prot == IPPROTO_TCP) >> svc_tcp_prep_reply_hdr(rqstp); > > Yes. In these days with retpoline slowing down all indirect function > calls, then the above is probably the better solution. I've submitted v4 patch version with these changes.