Re: [PATCH] net: sched: split tc_ctl_tfilter into three handlers

2018-05-28 Thread Jamal Hadi Salim
. Refactor this code to standalone tcf_block_find function that is used by all three new handlers. Signed-off-by: Vlad Buslov <vla...@mellanox.com> FWIW, I like this separation - makes things more maintainable and readable (we should do it in act_api as well). cheers, jamal

Re: [PATCH v2 net-next] net:sched: add action inheritdsfield to skbedit

2018-05-28 Thread Jamal Hadi Salim
dea by Jamal Hadi Salim <j...@mojatatu.com> Signed-off-by: Qiaobin Fu <qiaob...@bu.edu> Reviewed-by: Michel Machado <mic...@digirati.com.br> --- Note that the motivation for this patch is found in the following discussion: https://www.spinics.net/lists/netdev/msg501061.html --- diff

Re: [PATCH net-next] net:sched: add action inheritdsfield to skbmod

2018-05-24 Thread Jamal Hadi Salim
t some point when I get the chance on pedit for implementing the concept of "copy data to metadata" and "copy metadata to data" for pedit it made a lot of sense to add the feature there. In this case skbedit makes more sense. cheers, jamal

Re: [PATCH net-next v2] net: sched: don't disable bh when accessing action idr

2018-05-22 Thread Jamal Hadi Salim
all action idr spinlock usage with regular calls that do not disable bh. Signed-off-by: Vlad Buslov <vla...@mellanox.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

netdev 0x12 conference update

2018-05-22 Thread Jamal Hadi Salim
cheers, jamal

Re: [PATCH net-next] net:sched: add action inheritdsfield to skbmod

2018-05-21 Thread Jamal Hadi Salim
On 21/05/18 10:42 AM, Fu, Qiaobin wrote: Hi Jamal, I've tested my patch before publishing it here, and Nishanth is going to test it further with version 2 of the GKprio. I'm going to push a patch to the repository iproute2 to add support for "inheritdsfield”. Thanks. I already

Re: [PATCH net-next] net:sched: add action inheritdsfield to skbmod

2018-05-18 Thread Jamal Hadi Salim
On 17/05/18 03:33 PM, Fu, Qiaobin wrote: net/sched: add action inheritdsfield to skbmod The new action inheritdsfield copies the field DS of IPv4 and IPv6 packets into skb->prioriry. This enables later classification of packets based on the DS field. Original idea by Jamal Hadi Salim

Re: [PATCH 00/14] Modify action API for implementing lockless actions

2018-05-18 Thread Jamal Hadi Salim
cular version of net-next, I will now rebase my changes on top of it and run them again. Thank you Vlad! cheers, jamal

Re: [PATCH 00/14] Modify action API for implementing lockless actions

2018-05-16 Thread Jamal Hadi Salim
information (instead of the classical "We have an error talking to the kernel"). cheers, jamal

Re: [PATCH net-next] net:sched: add gkprio scheduler

2018-05-16 Thread Jamal Hadi Salim
selected to put the packet onto. The map of this array can be configured from user space. I was saying earlier that it may be tempting to make a size 64 array to map the possible dsfields - in practise that has never been pragmatic (so 16 was sufficient). cheers, jamal

Re: [PATCH net] net/sched: fix refcnt leak in the error path of tcf_vlan_init()

2018-05-16 Thread Jamal Hadi Salim
if (exists) + tcf_idr_release(*a, bind); return -EPROTONOSUPPORT; LGTM. Note: 5026c9b1bafc fixed the bug that existed. It missed a few spots like the one here. If there was an "Updates" tag, it would be mor

Re: [PATCH 00/14] Modify action API for implementing lockless actions

2018-05-15 Thread Jamal Hadi Salim
On 15/05/18 05:21 PM, Vlad Buslov wrote: On Tue 15 May 2018 at 18:25, Jamal Hadi Salim <j...@mojatatu.com> wrote: On 14/05/18 04:46 PM, Vlad Buslov wrote: On Mon 14 May 2018 at 18:03, Jamal Hadi Salim <j...@mojatatu.com> wrote: On 14/05/18 10:27 AM, Vlad Buslov wrote: Hello

Re: [PATCH 00/14] Modify action API for implementing lockless actions

2018-05-15 Thread Jamal Hadi Salim
On 14/05/18 04:46 PM, Vlad Buslov wrote: On Mon 14 May 2018 at 18:03, Jamal Hadi Salim <j...@mojatatu.com> wrote: On 14/05/18 10:27 AM, Vlad Buslov wrote: Hello Jamal, I'm trying to run tdc, but keep getting following error even on clean branch without my patches: Vlad, not sure

Re: [PATCH 00/14] Modify action API for implementing lockless actions

2018-05-14 Thread Jamal Hadi Salim
the tdc tests with these changes. This area has almost good test coverage at this point. If you need help just ping me. cheers, jamal

Re: [PATCH net-next] net:sched: add gkprio scheduler

2018-05-12 Thread Jamal Hadi Salim
Sorry for the latency.. On 09/05/18 01:37 PM, Michel Machado wrote: On 05/09/2018 10:43 AM, Jamal Hadi Salim wrote: On 08/05/18 10:27 PM, Cong Wang wrote: On Tue, May 8, 2018 at 6:29 AM, Jamal Hadi Salim <j...@mojatatu.com> wrote: I like the suggestion of extending skbmod to mark s

Re: [PATCH net-next] net:sched: add gkprio scheduler

2018-05-09 Thread Jamal Hadi Salim
On 08/05/18 10:27 PM, Cong Wang wrote: On Tue, May 8, 2018 at 6:29 AM, Jamal Hadi Salim <j...@mojatatu.com> wrote: Have you considered using skb->prio instead of peeking into the packet header. Also have you looked at the dsmark qdisc? dsmark modifies ds fields, while this one jus

Re: [PATCH net-next] net:sched: add gkprio scheduler

2018-05-08 Thread Jamal Hadi Salim
using skb->prio instead of peeking into the packet header. Also have you looked at the dsmark qdisc? cheers, jamal

Re: [PATCH net-next 1/1] inet_diag: fetch cong algo info when socket is destroyed

2018-04-30 Thread Jamal Hadi Salim
s. cheers, jamal

[PATCH net-next 1/1] inet_diag: fetch cong algo info when socket is destroyed

2018-04-26 Thread Jamal Hadi Salim
From: Jamal Hadi Salim <h...@mojatatu.com> When a user dumps an existing established tcp socket state via inet diag, it is possible to retrieve the congestion control details. When an the sock is destroyed, the generated event has all the details available in the dump sans congestion contro

Re: [PATCH net 3/3] net: sched: ife: check on metadata length

2018-04-19 Thread Jamal Hadi Salim
l from outside. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Reviewed-by: Yotam Gigi <yotam...@gmail.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net 2/3] net: sched: ife: handle malformed tlv length

2018-04-19 Thread Jamal Hadi Salim
ortant. Thanks for that! Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net 1/3] net: sched: ife: signal not finding metaid

2018-04-19 Thread Jamal Hadi Salim
xander Aring <ar...@mojatatu.com> Reviewed-by: Yotam Gigi <yotam...@gmail.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com>

Re: [PATCH net 1/1] net sched actions: fix dumping which requires several messages to user space

2018-03-27 Thread Jamal Hadi Salim
Note that the action with index 27 is omitted from the report. Fixes: 4b3550ef530c ("[NET_SCHED]: Use nla_nest_start/nla_nest_end")" Signed-off-by: Craig Dillabaugh <cdill...@mojatatu.com> Good catch. Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net 0/7] fix idr leak in actions

2018-03-19 Thread Jamal Hadi Salim
On 18-03-18 08:06 PM, Davide Caratti wrote: This series fixes situations where a temporary failure to install a TC action results in the permanent impossibility to reuse the configured 'index'. Thanks to Cong Wang for the initial review. Yikes ;-> These patches look good. Acked-by: Ja

Re: WARNING: CPU: 3 PID: 0 at net/sched/sch_hfsc.c:1388 hfsc_dequeue+0x319/0x350 [sch_hfsc]

2018-03-19 Thread Jamal Hadi Salim
rg/show_bug.cgi?id=109581 And there is a workaround from Konstantin: https://patchwork.ozlabs.org/patch/803885/ Unfortunately I don't think that is a real fix, we probably need to fix HFSC itself rather than just workaround the qlen==0. It is not trivial since HFSC implementation is not easy to under

Announce: Netdev 0x12 Conference

2018-03-15 Thread Jamal Hadi Salim
/listinfo/people) If twitter is your thing then follow us: @netdev01 and use hashtag #netdevconf cheers, jamal(on behalf of NetDev Society)

Re: [PATCH net] net: sched: fix unbalance in the error path of tca_action_flush()

2018-02-15 Thread Jamal Hadi Salim
of pushing the boundaries saying this targets net tree - there is no bug you are fixing (as you say the sk is freed). Maybe it makes the code prettier ... cheers, jamal

Re: [PATCHv3 net-next 0/8] net: sched: act: add extack support

2018-02-15 Thread Jamal Hadi Salim
On 18-02-15 10:54 AM, Alexander Aring wrote: Hi, this patch series adds extack support for the TC action subsystem. As example I for the extack support in a TC action I choosed mirred action. For the patch series: Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

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

2018-01-18 Thread Jamal Hadi Salim
support now. I know there are patches around which makes changes to these files. I will rebase my stuff on Jiri's patches if they get in before mine. Given you rebased on top of Jiri's patches already - last two sentences are unneeded? cheers, jamal

Re: [RFC v2 net-next 06/10] net/sched: Introduce the TBS Qdisc

2018-01-18 Thread Jamal Hadi Salim
One more comment: Probably try to run a test with a very small delta with no offload (probably using something like prio as the root qdisc) and dump the stats. My gut feeling is your accounting of the backlog in particular is off. cheers, jamal On 18-01-18 08:35 AM, Jamal Hadi Salim wrote

Re: [RFC v2 net-next 06/10] net/sched: Introduce the TBS Qdisc

2018-01-18 Thread Jamal Hadi Salim
3)It would be helpful for debugging to increment some stats other than drop counters on enqueu/dequeue obsolete packet drop. Maybe use overlimits for the dequeu drops (in addition)? 4) I may be misreading things - but did you need to reset the watchdog on dequeue? It is already being kicked for every incoming packet. cheers, jamal

Re: [PATCH net-next 2/8] net: sched: cls_api: handle generic cls errors

2018-01-17 Thread Jamal Hadi Salim
can avoid collission when we start sending such patches by having the discussion now. cheers, jamal

Re: [PATCH net-next 2/8] net: sched: cls_api: handle generic cls errors

2018-01-16 Thread Jamal Hadi Salim
e and it doesnt make mistakes in this case i.e we will never see this error with tc because a create will always have those two set correctly; OTOH, a developer writing some new app is more likely to make this mistake (in which case this message is very helpful). cheers, jamal

Re: [patch net-next v10 00/13] net: sched: allow qdiscs to share filter block instances

2018-01-16 Thread Jamal Hadi Salim
On 18-01-16 10:33 AM, Jiri Pirko wrote: From: Jiri Pirko <j...@mellanox.com> For patches 1-9: Reviewed-by: Jamal Hadi Salim <j...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next 0/8] net: sched: cls: add extack support

2018-01-16 Thread Jamal Hadi Salim
On 18-01-16 05:41 PM, Jakub Kicinski wrote: On Tue, 16 Jan 2018 17:12:57 -0500, Jamal Hadi Salim wrote: On 18-01-16 04:46 PM, Jakub Kicinski wrote: On Tue, 16 Jan 2018 12:20:19 -0500, Alexander Aring wrote: [..] I would say precedence should be Jiri's patches, Alex's patches

Re: [PATCH net-next 0/8] net: sched: cls: add extack support

2018-01-16 Thread Jamal Hadi Salim
and then yours: Alex's patches fix the core (cls_api.c) area with proper extack for the core and then he has one patch to cover a specific use case of the u32 classifier extack. Yours is only concerned with one use case - bpf which depend on the core (that is in Alex's patches) cheers, jamal

Re: [patch net-next 0/5] mlxsw: Offload PRIO qdisc

2018-01-12 Thread Jamal Hadi Salim
apping of DSCP to skb prio and by 1:1 PCP values mapping) and up to 8 bands. Patches 1-2 offload DSCP to priority mapping in the mlxsw_sp driver. Patch 3 adds offload support for PRIO qdisc. Patches 4-5 Add PRIO offload support in the mlxsw_sp driver. Strictly DSCP or 802.1p as well? cheers, jamal

Re: [patch net-next v7 09/13] net: sched: allow ingress and clsact qdiscs to share filter blocks

2018-01-11 Thread Jamal Hadi Salim
...@mojatatu.com wrote: I only looked at the kernel code. Good you can stop it at tc but the API does not stop it (unless you expect the rest of the world to only use tc). Jamal, apparently, you did not looked at the kernel code either :) Look at the changes done in net/sched/sch_ingress.c

Re: [patch net-next v7 09/13] net: sched: allow ingress and clsact qdiscs to share filter blocks

2018-01-11 Thread Jamal Hadi Salim
it (unless you expect the rest of the world to only use tc). Jamal, apparently, you did not looked at the kernel code either :) Look at the changes done in net/sched/sch_ingress.c - there is where the parsing of block attr takes place. reason i raised it is from looking at tc_ctl_tfilter

Re: [patch net-next v7 09/13] net: sched: allow ingress and clsact qdiscs to share filter blocks

2018-01-11 Thread Jamal Hadi Salim
didnt. Jamal, again, other qdiscs does not support block sharing. This patchset only adds support for sharing of block for ingress and clsact qdiscs. Later on, other qdiscs could also support block sharing. Can you stop a config which says: tc qdisc add dev ens9 root block 22 handle 1:0 prio ?

Re: [patch net-next v7 09/13] net: sched: allow ingress and clsact qdiscs to share filter blocks

2018-01-11 Thread Jamal Hadi Salim
qdisc instances to share filter blocks. The block index is coming from userspace as qdisc option. Didnt quiet follow why ingress is special and needs attributes to set the block but other qdiscs didnt. Jamal, again, other qdiscs does not support block sharing. This patchset only adds support for s

Re: [patch net-next v7 09/13] net: sched: allow ingress and clsact qdiscs to share filter blocks

2018-01-11 Thread Jamal Hadi Salim
quiet follow why ingress is special and needs attributes to set the block but other qdiscs didnt. Will check again later after some coffee.. cheers, jamal

Re: [patch net-next v7 08/13] net: sched: add rt netlink message type for block get

2018-01-11 Thread Jamal Hadi Salim
On 18-01-09 09:07 AM, Jiri Pirko wrote: From: Jiri Pirko <j...@mellanox.com> Add simple block get operation which primary purpose is to check the block existence by block index. block_dump missing? cheers, jamal

Re: [patch net-next v7 07/13] net: sched: use block index as a handle instead of qdisc when block is shared

2018-01-11 Thread Jamal Hadi Salim
x of 0 instead of TCM_IFINDEX_MAGIC_BLOCK cheers, jamal

Re: [patch net-next v7 00/13] net: sched: allow qdiscs to share filter block instances

2018-01-11 Thread Jamal Hadi Salim
re about queues (so it may never be "fixed") cheers, jamal

Re: [patch net-next v6 06/11] net: sched: use block index as a handle instead of qdisc when block is shared

2018-01-07 Thread Jamal Hadi Salim
On 18-01-07 09:28 AM, Jamal Hadi Salim wrote: On 18-01-07 08:46 AM, Jiri Pirko wrote: Sun, Jan 07, 2018 at 02:11:19PM CET, j...@mojatatu.com wrote: On 18-01-06 03:43 PM, Jiri Pirko wrote: @@ -886,8 +887,13 @@ static int tcf_fill_node(struct net *net, struct sk_buff *skb, tcm

[iproute2 1/1] tc: Fix filter protocol output

2018-01-07 Thread Jamal Hadi Salim
From: Jamal Hadi Salim <j...@mojatatu.com> Fixes: 249284ff5a44 ("tc: jsonify filter core") Signed-off-by: Jamal Hadi Salim <j...@mojatatu.com> --- tc/tc_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/tc_filter.c b/tc/tc_filter.c index 5

Re: [patch net-next v6 06/11] net: sched: use block index as a handle instead of qdisc when block is shared

2018-01-07 Thread Jamal Hadi Salim
it? I cant point to any such code, it is just the ifindex is an int. And the negative space looks like less likely someone would think of using for signalling (0x as an example). tcpdump -i any probably assumes soem weird ifindex (havent looked at the code). In any case, 0 is fine too. cheers, jamal

Re: [patch net-next v6 06/11] net: sched: use block index as a handle instead of qdisc when block is shared

2018-01-07 Thread Jamal Hadi Salim
tive ifindex (not sure if zero means something speacial to someone). cheers, jamal

Re: [patch net-next v6 00/11] net: sched: allow qdiscs to share filter block instances

2018-01-06 Thread Jamal Hadi Salim
On 18-01-06 01:02 PM, Jamal Hadi Salim wrote: On 18-01-06 04:48 AM, Jiri Pirko wrote: BTW: From your output, DavidA, i noticed something strange: two flower filters with the same handle id 0x1 (different prios) At least on the kernel i am using this is the exhibited default behavior. I can

Re: [patch net-next v6 00/11] net: sched: allow qdiscs to share filter block instances

2018-01-06 Thread Jamal Hadi Salim
ssible to bind that block to many parent locations eg clsact ingress of dev x and clsact egress of dev y. what am i missing? cheers, jamal

Re: [patch net-next v6 00/11] net: sched: allow qdiscs to share filter block instances

2018-01-06 Thread Jamal Hadi Salim
f same kind on the same chain should be distinguished by priority. There are filters like u32 (which hide hash tables under the same priority) which may allow the same prio for multiple handles - just dont see that fit with flower, but maybe missing something. cheers, jamal

Re: [patch net-next v4 00/10] net: sched: allow qdiscs to share filter block instances

2018-01-04 Thread Jamal Hadi Salim
. clsact egress does not deal with tcf_result - what code do you want me to check? cheers, jamal

Re: [patch net-next v4 00/10] net: sched: allow qdiscs to share filter block instances

2018-01-04 Thread Jamal Hadi Salim
, jamal

Re: [patch net-next v4 00/10] net: sched: allow qdiscs to share filter block instances

2018-01-04 Thread Jamal Hadi Salim
f the block. cheers, jamal

Re: [patch net-next v4 00/10] net: sched: allow qdiscs to share filter block instances

2018-01-04 Thread Jamal Hadi Salim
than the current set you posted Jiri. A simple solution is to say sharing only works for ingress (but that sounds very lame). cheers, jamal

Re: [patch net-next v4 00/10] net: sched: allow qdiscs to share filter block instances

2018-01-04 Thread Jamal Hadi Salim
If this knob was set then you reject addition of filters via a port/qdisc which is sharing. I agree with Jiri - if you consciously choose to share there should be no suprises with what filters get applied. I think this email is too long and my egress concern will be lost if i typed it here; so i will

Re: [PATCHv3 net-next 00/14] net: sched: sch: introduce extack support

2017-12-19 Thread Jamal Hadi Salim
Saw some tiny typos in the commit log but lets please not hold back the submission so we can have the rest of the (many) outstanding patches coming in. So for this patch set: Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal On 17-12-18 05:44 PM, Alexander Aring wrot

Re: [PATCH net-next 6/6] net: sched: sch: add extack for graft callback

2017-12-06 Thread Jamal Hadi Salim
On 17-12-06 11:08 AM, Alexander Aring wrote: This patch adds extack support for graft callback to prepare per-qdisc specific changes for extack. Cc: David Ahern<dsah...@gmail.com> Signed-off-by: Alexander Aring<ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next 5/6] net: sched: sch: add extack for block callback

2017-12-06 Thread Jamal Hadi Salim
On 17-12-06 11:08 AM, Alexander Aring wrote: This patch adds extack support for block callback to prepare per-qdisc specific changes for extack. Cc: David Ahern<dsah...@gmail.com> Signed-off-by: Alexander Aring<ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next 4/6] net: sched: sch: add extack to change class

2017-12-06 Thread Jamal Hadi Salim
On 17-12-06 11:08 AM, Alexander Aring wrote: This patch adds extack support for class change callback api. This prepares to handle extack support inside each specific class implementation. Cc: David Ahern<dsah...@gmail.com> Signed-off-by: Alexander Aring<ar...@mojatatu.com> Ack

Re: [PATCH net-next 3/6] net: sched: sch: add extack for change qdisc ops

2017-12-06 Thread Jamal Hadi Salim
On 17-12-06 11:08 AM, Alexander Aring wrote: This patch adds extack support for change callback for qdisc ops structtur to prepare per-qdisc specific changes for extack. Cc: David Ahern<dsah...@gmail.com> Signed-off-by: Alexander Aring<ar...@mojatatu.com> Acked-by: Jamal H

Re: [PATCH net-next 2/6] net: sched: sch: add extack for init callback

2017-12-06 Thread Jamal Hadi Salim
On 17-12-06 11:08 AM, Alexander Aring wrote: This patch adds extack support for init callback to prepare per-qdisc specific changes for extack. Cc: David Ahern<dsah...@gmail.com> Signed-off-by: Alexander Aring<ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next 1/6] net: sched: sch_api: handle generic qdisc errors

2017-12-06 Thread Jamal Hadi Salim
Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next 2/2] net: sched: sch_api: rearrange init handling

2017-12-05 Thread Jamal Hadi Salim
if init callback is set or not. This patch has the same behaviour as before, just without assign err variable in if condition. It also makes the code easier to read. Reviewed-by: Jamal Hadi Salim <j...@mojatatu.com> Cc: David Ahern <dsah...@gmail.com> Signed-off-by: Alexander Aring <ar.

Re: [PATCH net-next 1/2] net: sched: sch_api: fix code style issues

2017-12-05 Thread Jamal Hadi Salim
com> Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH iproute2 1/1] actions: Add support for user cookies

2017-11-23 Thread Jamal Hadi Salim
On 17-11-23 11:36 AM, Jiri Pirko wrote: Sat, Apr 22, 2017 at 02:36:23PM CEST, j...@mojatatu.com wrote: [...] [..] Jamal, is there any particular reason that you print cookie only in case you show stats? What is the relation between cookie and stats? -s has been thus far used to imply

preliminary reports from the conference

2017-11-14 Thread Jamal Hadi Salim
While we are still gathering slides/papers/videos, folks can take a look at the reports on the conference on lwn. Netdev 2.2 day 2 and 3 should appear in the next day or so. https://lwn.net/Articles/738912/ Thanks to lwn for hosting these reports. Enjoy! cheers, jamal

Re: [PATCH net-next v9 1/3] act_vlan: Change stats update to use per-core stats

2017-11-07 Thread Jamal Hadi Salim
Will leave it up to Dave - but even this + patch 3 should start with "net_sched actions: act_vlan" as the prefix. Sorry, shouldve said that in the last comment I sent. cheers, jamal

Re: [PATCH net-next v8 0/3] nfp act_vlan: Rewrite of the TC vlan action to use the RCU, and incorporated review comments

2017-11-07 Thread Jamal Hadi Salim
Manish, A better subject would be: "[PATCH net-next v8 0/3] net_sched actions: act_vlan use the RCU I would suggest a v9 with this change. cheers, jamal

Re: [Patch net 00/16] net_sched: fix races with RCU callbacks

2017-10-31 Thread Jamal Hadi Salim
e container at the end of the test. cheers, jamal

Fwd: bug report: iproute2 policer parsing broken

2017-10-22 Thread Jamal Hadi Salim
forgot to cc netdev... cheers, jamal Forwarded Message Subject: bug report: iproute2 policer parsing broken Date: Sun, 22 Oct 2017 10:59:07 -0400 From: Jamal Hadi Salim <j...@mojatatu.com> To: Phil Sutter <p...@nwl.cc>, Stephen Hemminger <step...@networkplu

[PATCH iproute2 1/1] tc/actions: introduce support for jump action

2017-10-22 Thread Jamal Hadi Salim
From: Jamal Hadi Salim <j...@mojatatu.com> Seems like my old patches didnt make it into the tree - so here goes Sample use case: ... add ingress qdisc sudo $TC qdisc add dev $ETH ingress ... if we exceed rate of 1kbps (burst of 90K), do an absolute jump of 2 actions sudo $TC actio

Re: [patch net v2 1/4] net/sched: Change tc_action refcnt and bindcnt to atomic

2017-10-19 Thread Jamal Hadi Salim
proach and discussion outcome goes into net-next? cheers, jamal

Re: [patch net 0/4] net/sched: Fix a system panic when deleting filters

2017-10-16 Thread Jamal Hadi Salim
. To test if the issue was fixed, apply patches 1 and 2 and then repeat the tests. -- Other than that all look good to me and: Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next v2 1/1] bridge: return error code when deleting Vlan

2017-10-12 Thread Jamal Hadi Salim
an _event_ that the vlan has been deleted (when it never existed in the first place). This has been the behaviour forever and some script might depend on it. Also IMO, and as David also mentioned, doing a partial delete is not good. I think this is a bug (especially the event part). cheers, jamal

Re: [PATCH net-next 3/3] sched: act: ife: update parameters via rcu handling

2017-10-12 Thread Jamal Hadi Salim
On 17-10-11 05:16 PM, Alexander Aring wrote: This patch changes the parameter updating via RCU and not protected by a spinlock anymore. This reduce the time that the spinlock is being held. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@moj

Re: [PATCH net-next 2/3] sched: act: ife: migrate to use per-cpu counters

2017-10-12 Thread Jamal Hadi Salim
On 17-10-11 05:16 PM, Alexander Aring wrote: This patch migrates the current counter handling which is protected by a spinlock to a per-cpu counter handling. This reduce the time where the spinlock is being held. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi

Re: [PATCH net-next 1/3] sched: act: ife: move encode/decode check to init

2017-10-12 Thread Jamal Hadi Salim
option than this. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [jkirsher/next-queue PATCH v4 0/6] tc-flower based cloud filters in i40e

2017-10-11 Thread Jamal Hadi Salim
classid :2 eth_type ipv4 ip_proto udp dst_ip 192.168.1.1 dst_port 22 skip_sw in_hw Much much better semantic. Thank you. Have you tested many filter mapping to the same classid? cheers, jamal

Re: [PATCH net-next 2/2] net sched act_vlan: VLAN action rewrite to use RCU lock/unlock and update

2017-10-11 Thread Jamal Hadi Salim
Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-11 Thread Jamal Hadi Salim
f_idr_create(tn, parm->index, est, a, -_vlan_ops, bind, false); + _vlan_ops, bind, true); Indentation mismatch here? Otherwise looks good to me. Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH iproute2 3/3] bridge: request vlans along with link information

2017-09-09 Thread Jamal Hadi Salim
showing up on the bridge link even though it is not enslaved there.. cheers, jamal Can you please paste a sample default detailed output with your patch with a few hundred vlans ?

Re: [RFC net-next] net: sch_clsact: add support for global per-netns classifier mode

2017-09-05 Thread Jamal Hadi Salim
_H_INGRESS(0xFFF1U) #define TC_H_CLSACT TC_H_INGRESS #define TC_H_MIN_INGRESS0xFFF2U #define TC_H_MIN_EGRESS 0xFFF3U - You should be able to say add a location which maps to a pre-routing or post-routing etc; and this would work as well... cheers, jamal

Re: [PATCH net 0/9] net/sched: init failure fixes

2017-08-30 Thread Jamal Hadi Salim
f9f, I've tried to include proper fixes tags in each patch. I haven't included individual patch acks in the set, I'd appreciate it if you take another look and resend them. Hi Nik, For all patches: Acked-by: Jamal Hadi Salim <j...@mojatatu.com> Would you please consider adding all the the

Re: [patch net-next v2 3/3] net/sched: Change act_api and act_xxx modules to use IDR

2017-08-30 Thread Jamal Hadi Salim
> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> Also already acked this before but you left it out in this version. If you make changes to the patch then you will need a new ACK. Dont forget to update selftests please. cheers, jamal

Re: [patch net-next v2 2/3] net/sched: Change cls_flower to use IDR

2017-08-30 Thread Jamal Hadi Salim
a unique action, that is another bottleneck. Follow-up patch in this patchset addresses that. Signed-off-by: Chris Mi <chr...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> BTW: I'd already acked this before b

Re: [PATCH iproute2 2/4] tc: m_ife: print IEEE ethertype format

2017-08-28 Thread Jamal Hadi Salim
if (matches(*argv, "dst") == 0) { NEXT_ARG(); For iproute commands the show output is supposed to match the corresponding set inputs. These were being printed at parse time ... cheers, jamal

Re: [PATCH iproute2 4/4] man: tc-ife: add default type note

2017-08-28 Thread Jamal Hadi Salim
On 17-08-28 03:07 PM, Alexander Aring wrote: This patch updates the tc-ife man page that the default IFE ethertype will be used if it's not specified. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH iproute2 3/4] tc: m_ife: report about kernels default type

2017-08-28 Thread Jamal Hadi Salim
Same comment as previous patch. cheers, jamal On 17-08-28 03:07 PM, Alexander Aring wrote: This patch will report about if the ethertype for IFE is not specified that the default IFE type is used. Signed-off-by: Alexander Aring <ar...@mojatatu.com> --- tc/m_ife.c | 2 ++ 1 file chan

Re: [PATCH iproute2 2/4] tc: m_ife: print IEEE ethertype format

2017-08-28 Thread Jamal Hadi Salim
Alex, I think we should get rid of these fprintfs instead of fixing them. They were originally intended to be debug outputs. cheers, jamal On 17-08-28 03:07 PM, Alexander Aring wrote: This patch uses the usually IEEE format to display an ethertype which is 4-digits and every digit in upper

Re: [PATCH iproute2 1/4] tc: m_ife: allow ife type to zero

2017-08-28 Thread Jamal Hadi Salim
On 17-08-28 03:07 PM, Alexander Aring wrote: This patch allows to set an ethertype for IFE which is zero. There is no kernel side validation which forbids a type to zero. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [PATCH net-next 3/3] tc-testing: add test for testing ife type

2017-08-28 Thread Jamal Hadi Salim
Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> We should add the tests which do filter binding as well (both auto-binding and late binding) cheers, jamal

Re: [PATCH net-next 2/3] act_ife: use registered ife_type as fallback

2017-08-28 Thread Jamal Hadi Salim
On 17-08-28 03:03 PM, Alexander Aring wrote: This patch handles a default IFE type if it's not given by user space netlink api. The default IFE type will be the registered ethertype by IEEE for IFE ForCES. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Sa

Re: [PATCH net-next 1/3] if_ether: add forces ife lfb type

2017-08-28 Thread Jamal Hadi Salim
"ForCES" instead of "FoRCES" which is a spelling error inside the IEEE ethertype specification. Signed-off-by: Alexander Aring <ar...@mojatatu.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [patch net-next 3/3] net/sched: Change act_api and act_xxx modules to use IDR

2017-08-28 Thread Jamal Hadi Salim
> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> cheers, jamal

Re: [patch net-next 2/3] net/sched: Change cls_flower to use IDR

2017-08-28 Thread Jamal Hadi Salim
a unique action, that is another bottleneck. Follow-up patch in this patchset addresses that. Signed-off-by: Chris Mi <chr...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> Acked-by: Jamal Hadi Salim <j...@mojatatu.com> As Cong asked last time - any plans to add to

Re: [Patch net-next v2 4/4] net_sched: kill u32_node pointer in Qdisc

2017-08-25 Thread Jamal Hadi Salim
can just compare the pointers when collision. And this only affects slow paths, has no impact to fast path, thanks to the pointer ->tp_c. Cc: Jamal Hadi Salim <j...@mojatatu.com> Cc: Jiri Pirko <j...@resnulli.us> Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> Nice work.

Re: [Patch net-next v2 3/4] net_sched: remove tc class reference counting

2017-08-25 Thread Jamal Hadi Salim
the last refcnt into ->delete(), right after releasing tree lock. This is fine because the class is already removed from hash when holding the lock. For those who also use ->put() as ->unbind(), just rename them to reflect this change. Cc: Jamal Hadi Salim <j...@mojatatu.com> Signe

Re: [Patch net-next v2 2/4] net_sched: introduce tclass_del_notify()

2017-08-25 Thread Jamal Hadi Salim
On 17-08-24 07:51 PM, Cong Wang wrote: Like for TC actions, ->delete() is a special case, we have to prepare and fill the notification before delete otherwise would get use-after-free after we remove the reference count. Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> Acked-by: J

<    1   2   3   4   5   6   7   8   9   10   >