netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GRO: can't force packet up stack immediately?
@ 2020-12-03 19:03 John Ousterhout
  2020-12-03 19:35 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: John Ousterhout @ 2020-12-03 19:03 UTC (permalink / raw)
  To: netdev

I recently upgraded my kernel module implementing the Homa transport
protocol from 4.15.18 to 5.4.80, and a GRO feature available in the
older version seems to have gone away in the newer version. In
particular, it used to be possible for a protocol's xxx_gro_receive
function to force a packet up the stack immediately by returning that
skb as the result of xxx_gro_receive. However, in the newer kernel
version, these packets simply get queued on napi->rx_list; the queue
doesn't get flushed up-stack until napi_complete_done is called or
gro_normal_batch packets accumulate. For Homa, this extra level of
queuing gets in the way.

Is there any way for a xxx_gro_receive function to force a packet (in
particular, one of those in the list passed as first argument to
xxx_gro_receive) up the protocol stack immediately? I suppose I could
set gro_normal_batch to 1, but that might interfere with other
protocols that really want the batching.

-John-

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-07  5:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-03 19:03 GRO: can't force packet up stack immediately? John Ousterhout
2020-12-03 19:35 ` Eric Dumazet
2020-12-03 19:52   ` John Ousterhout
2020-12-04 11:20     ` Edward Cree
2020-12-07  5:51       ` John Ousterhout

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).