mbox series

[net-next,mlxsw,v3,0/4] mlxsw: Add extack messages for tc flower

Message ID 20180723105430.1155-1-nird@mellanox.com (mailing list archive)
Headers show
Series mlxsw: Add extack messages for tc flower | expand

Message

Nir Dotan July 23, 2018, 10:54 a.m. UTC
This patch set adds extack messages support to tc flower part of mlxsw.
The messages provide clear reasoning to failures, as some of the available
actions and keys are not supported in driver or HW and resources may get
exhausted.

The first patch deals with propagation of the extack pointer among the functions
dealing with key parsing and action sets handling.

Following patches 2-4 add appropriate messages across the different layers of
mlxsw tc flower implementation.

v3:
* Change subject of cover letter 
* Add changelog

v2:
* Rephrase parts of the cover letter
* See individual patches for changes

Nir Dotan (4):
  mlxsw: spectrum_acl: Propagate extack pointer
  mlxsw: core_acl_flex_actions: Add extack messages
  mlxsw: spectrum_acl: Add extack messages
  mlxsw: spectrum_flower: Add extack messages

 .../mellanox/mlxsw/core_acl_flex_actions.c         | 50 +++++++++++++++-------
 .../mellanox/mlxsw/core_acl_flex_actions.h         | 15 ++++---
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     | 17 +++++---
 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 44 ++++++++++++-------
 .../net/ethernet/mellanox/mlxsw/spectrum_flower.c  | 41 ++++++++++++------
 5 files changed, 114 insertions(+), 53 deletions(-)