netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/3] net: Allow non-fatal messages to be passed in extack
@ 2017-10-28  0:37 David Ahern
  2017-10-28  0:37 ` [PATCH v2 net-next 1/3] netlink: Allow ext_ack to carry non-error messages David Ahern
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: David Ahern @ 2017-10-28  0:37 UTC (permalink / raw)
  To: netdev; +Cc: jiri, idosch, johannes.berg, David Ahern

There are many cases where networking subsystems throw non-fatal warning
messages that end up in dmesg / kernel log to which a user making the
change is completely oblivious. This set makes the extack facility
usable for returning such messages.

The case in point here is spectrum and adding FIB rules which causes an
offload abort. Make the use case more user friendly by letting the user
know that offload is no longer happening because of the rule change.

v2
- kept the offload abort in a work queue entry per Ido's comment

David Ahern (3):
  netlink: Allow ext_ack to carry non-error messages
  net: Add extack to fib_notifier_info
  mlxsw: spectrum_router: Return extack message on abort due to fib
    rules

 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  | 108 +++++++++++++--------
 include/net/fib_notifier.h                         |   1 +
 net/core/fib_rules.c                               |   9 +-
 net/ipv4/fib_trie.c                                |  13 ++-
 net/ipv6/ip6_fib.c                                 |  15 +--
 net/netlink/af_netlink.c                           |  18 ++--
 6 files changed, 99 insertions(+), 65 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2017-11-01  2:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-28  0:37 [PATCH v2 net-next 0/3] net: Allow non-fatal messages to be passed in extack David Ahern
2017-10-28  0:37 ` [PATCH v2 net-next 1/3] netlink: Allow ext_ack to carry non-error messages David Ahern
2017-10-28  0:37 ` [PATCH v2 net-next 2/3] net: Add extack to fib_notifier_info David Ahern
2017-10-28 13:54   ` Ido Schimmel
2017-10-28  0:37 ` [PATCH v2 net-next 3/3] mlxsw: spectrum_router: Return extack message on abort due to fib rules David Ahern
2017-10-28 14:03   ` Ido Schimmel
2017-11-01  2:51 ` [PATCH v2 net-next 0/3] net: Allow non-fatal messages to be passed in extack David Miller

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