Re: vxlan: Possible regression in vxlan_rcv()

From: Jiri Benc
Date: Wed Nov 24 2021 - 12:14:32 EST


On Tue, 23 Nov 2021 18:13:26 +0100 (CET), Fabian Frédérick wrote:
> Can someone tell me if the update is really ok or how I could check
> that code ?
> if VXLAN_F_REMCSUM_RX involves metadata checking I can ask to remove the
> patch.

I don't think it matters.

I doubt anyone is using remote checksum offloading (RCO). It was based
on a half thought-through idea. Local checksum offloading is superior,
it gives you the same performance for free, with full compatibility with
the base VXLAN standard. And even trying hard, I can't imagine anyone
could be using RCO with metadata dst.

I wouldn't object against removing RCO completely from VXLAN (and
moving the "generic" RCO pieces to net/ipv4/fou.c, which would become
its only user). It would simplify the code and I doubt anyone would
notice. I'm serious. Try googling for remcsumtx or remcsumrx and see
for yourself.

And, in case you still wonder, your patch seems fine to me. It's somehow
pointless, since it optimizes drops for an extension that nobody uses,
but it should not affect the code correctness. Probably. Whatever.

Jiri