Re: [RFC PATCH v2] bridge: make it possible for packets to traverse the bridge without hitting netfilter

From: David Miller
Date: Fri Mar 09 2018 - 10:57:34 EST


From: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Date: Fri, 09 Mar 2018 15:31:15 +0000

> Eschewing a 15% speedup on the basis that "well, even though we've had
> three of these already for a decade, we're worried that adding a fourth
> might open the floodgates to further patches" does seem a little odd to
> me, FWIW.

The cost we are dealing with is a fundamental one which is a result of
the hook design.

Indirect calls are killer.

Indirect calls are even more killer now in the age of Spectre and
retpolines.

I definitely would rather see the fundamental issue addressed rather
than poking at it randomly with knobs for this case and that.

Thank you.