From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: [PATCH net-next v2 0/2] mlxsw: Reject unsupported FIB configurations Date: Wed, 2 May 2018 10:17:33 +0300 Message-ID: <20180502071735.32352-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: davem@davemloft.net, jiri@mellanox.com, dsahern@gmail.com, mlxsw@mellanox.com, Ido Schimmel To: netdev@vger.kernel.org Return-path: Received: from mail-db5eur01on0058.outbound.protection.outlook.com ([104.47.2.58]:50544 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750822AbeEBHSb (ORCPT ); Wed, 2 May 2018 03:18:31 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Recently it became possible for listeners of the FIB notification chain to veto operations such as addition of routes and rules. Adjust the mlxsw driver to take advantage of it and return an error for unsupported FIB rules and for routes configured after the abort mechanism was triggered (due to exceeded resources for example). v2: * Change error code in first patch to -EOPNOTSUPP (David Ahern). Ido Schimmel (2): mlxsw: spectrum_router: Return an error for non-default FIB rules mlxsw: spectrum_router: Return an error for routes added after abort .../net/ethernet/mellanox/mlxsw/spectrum_router.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) -- 2.14.3