Thread (14 messages) flat view 14 messages, 3 authors, 2018-01-18

Re: [PATCHv2 net-next 8/8] net: sched: cls_u32: add extack support

From: Alexander Aring <hidden>
Date: 2018-01-18 15:38:41

Hi,

On Wed, Jan 17, 2018 at 8:27 PM, Jakub Kicinski [off-list ref] wrote:
On Wed, 17 Jan 2018 17:40:27 -0500, Alexander Aring wrote:
quoted
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c
index 8840baa1b9b4..daeac7282387 100644
--- a/net/sched/cls_u32.c
+++ b/net/sched/cls_u32.c
@@ -524,8 +524,10 @@ static int u32_replace_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h,
              offloaded = true;
      }

-     if (skip_sw && !offloaded)
+     if (skip_sw && !offloaded) {
+             NL_SET_ERR_MSG(extack, "Failed to offload filter requested with skip sw");
              return -EINVAL;
+     }

      return 0;
 }
Why did you ignore my comment about using NL_SET_ERR_MSG_MOD?  Do you
disagree with it?
Sorry, I missed it I will add this. Thanks.

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