Thread (19 messages) 19 messages, 5 authors, 2022-10-03

Re: [PATCH v2 net-next 3/6] sfc: optional logging of TC offload errors

From: Edward Cree <ecree.xilinx@gmail.com>
Date: 2022-09-28 18:19:29

On 28/09/2022 18:44, Jakub Kicinski wrote:
On Mon, 26 Sep 2022 19:57:33 +0100 ecree@xilinx.com wrote:
quoted
TC offload support will involve complex limitations on what matches and
 actions a rule can do, in some cases potentially depending on rules
 already offloaded.  So add an ethtool private flag "log-tc-errors" which
 controls reporting the reasons for un-offloadable TC rules at NETIF_INFO.
Because extack does not work somehow?
Last I checked, flow rules coming from an indirect binding to a tunnel
 netdev did not report the hw driver's extack (or even rc) back to the
 user.
Also, extack can only contain fixed strings (netlink.h: "/* Currently
 string formatting is not supported (due to the lack of an output
 buffer.) */") which was a real problem for us.
Somehow you limitations are harder to debug that everyone else's so you
need a private flag? :/
It's not about debugging the driver, it's about communicating the
 limitations to the end user.  Having TC rules mysteriously fail to be
 offloaded with no indication of why is not a great UX :(
I couldn't see a way to handle this without vendor-specific ugliness,
 but if you have a proposal I don't mind putting in some work to
 implement it.

-ed
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help