netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] netlink: extended error reporting
@ 2017-04-07 18:26 Johannes Berg
  2017-04-07 18:26 ` [RFC 1/3] " Johannes Berg
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Johannes Berg @ 2017-04-07 18:26 UTC (permalink / raw)
  To: linux-wireless, netdev; +Cc: pablo

So this is my first draft of what we'd talked about at netconf.
I'm not super happy with the way we have to pass the extended
error struct, but I don't see a way to implement reporting any
dynamic information (like error offsets) in any other way.

Alexander Shishkin had a nice way of reporting static extended
error data, but that isn't really suitable for reporting the
offset or even reporting the broken attribute from nla_parse().

Speaking of nla_parse(), that'll be somewhat complicated to do
since we'll have to track the offsets of where we're parsing,
but it might be possible since the nlattrs are just pointers
into the message, so (optionally?) passing the skb as well can
allow us to fill the offset information.

johannes

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

end of thread, other threads:[~2017-04-07 20:27 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-07 18:26 [RFC 0/3] netlink: extended error reporting Johannes Berg
2017-04-07 18:26 ` [RFC 1/3] " Johannes Berg
2017-04-07 19:41   ` Johannes Berg
2017-04-07 18:26 ` [RFC 2/3] genetlink: pass extended error report down Johannes Berg
2017-04-07 18:37   ` Ben Greear
     [not found]     ` <25e1fb8c-22e0-d7a2-13a7-d0def5432c9e-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2017-04-07 19:12       ` Johannes Berg
2017-04-07 19:27         ` Ben Greear
     [not found] ` <20170407182620.6438-1-johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2017-04-07 18:26   ` [RFC 3/3] nl80211: add a few extended error strings Johannes Berg
2017-04-07 18:53   ` [RFC 0/3] netlink: extended error reporting David Miller
     [not found]     ` <20170407.115315.23470877439489670.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2017-04-07 18:59       ` Johannes Berg
     [not found]         ` <1491591552.5800.1.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2017-04-07 19:06           ` Pablo Neira Ayuso
2017-04-07 19:09             ` Johannes Berg
2017-04-07 19:21               ` Pablo Neira Ayuso
2017-04-07 19:29                 ` Johannes Berg
     [not found]                   ` <1491593357.5800.13.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2017-04-07 19:45                     ` Pablo Neira Ayuso
2017-04-07 19:47                       ` Johannes Berg
2017-04-07 19:34                 ` David Miller
2017-04-07 19:22               ` David Miller
     [not found]                 ` <20170407.122223.385211483743191711.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2017-04-07 19:27                   ` Pablo Neira Ayuso
2017-04-07 19:29                     ` Johannes Berg
2017-04-07 19:34                     ` David Miller
2017-04-07 19:20         ` David Miller
2017-04-07 19:26           ` Johannes Berg
2017-04-07 19:35           ` Pablo Neira Ayuso
2017-04-07 19:43             ` David Miller
     [not found]               ` <20170407.124327.626442219286333933.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2017-04-07 19:46                 ` Johannes Berg
     [not found]                   ` <1491594406.5800.18.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2017-04-07 19:55                     ` David Miller
     [not found]                       ` <20170407.125511.1233528940652477012.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2017-04-07 20:27                         ` Johannes Berg
2017-04-07 19:02     ` Pablo Neira Ayuso
2017-04-07 19:06       ` Johannes Berg

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