netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: Checksum offload and XDP
@ 2017-04-10 18:26 Tom Herbert
  2017-04-11 15:55 ` Edward Cree
  0 siblings, 1 reply; 9+ messages in thread
From: Tom Herbert @ 2017-04-10 18:26 UTC (permalink / raw)
  To: Linux Kernel Network Developers

Not having checksum offload in XDP is going to get more painful once
we start seeing a lot programs doing packet modifications. One nice
thing we do for ILA router is pre-compute the checksum delta necessary
to maintain checksum neutral property in the packet. So that after
doing ILA routing in XDP the checksum complete value is still valid as
is the transport layer checksum.

It's conceivable we could generalize this by having a u16 checksum
delta returned from XDP program. If the checksum diff can be
pre-computed in a structure for doing the translation, then there
should be little cost other than making API a little more complex. On
return the checksum_complete value is updated jusy by adding in the
diff value.

Tom

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

end of thread, other threads:[~2017-04-11 19:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-10 18:26 RFC: Checksum offload and XDP Tom Herbert
2017-04-11 15:55 ` Edward Cree
2017-04-11 16:43   ` Daniel Borkmann
2017-04-11 18:34     ` Jakub Kicinski
2017-04-11 19:00       ` David Miller
2017-04-11 16:46   ` Tom Herbert
2017-04-11 17:13     ` Edward Cree
2017-04-11 17:26       ` Tom Herbert
2017-04-11 18:43       ` Jakub Kicinski

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).