Re: [PATCH net] net/sched: act_sample: don't push mac header on ip6gre ingress

2019-09-17 Thread yotam gigi
RD_IP6GRE devices. > > Fixes: 5c5670fae430 ("net/sched: Introduce sample tc action") Reviewed-by: Yotam Gigi > Signed-off-by: Davide Caratti > --- > net/sched/act_sample.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/sched/act_sample.c b/net/sch

Re: [PATCH net] net/sched: act_sample: fix divide by zero in the traffic path

2019-04-04 Thread yotam gigi
errupt > > Add a TDC selftest to document that 'rate' is now being validated. > > Reported-by: Matteo Croce > Fixes: 5c5670fae430 ("net/sched: Introduce sample tc action") > Signed-off-by: Davide Caratti Acked-by: Yotam Gigi Thanks! > --- >

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

2018-04-18 Thread yotam gigi
g Reviewed-by: Yotam Gigi > --- > net/ife/ife.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/net/ife/ife.c b/net/ife/ife.c > index 8632d2685efb..7c100034fbee 100644 > --- a/net/ife/ife.c > +++ b/net/ife/ife.c > @@ -70,6 +70,9 @@ void *ife_decode(struct

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

2018-04-18 Thread yotam gigi
de returns "metalen" - maybe it is better to change it too to return ifehdr_end? If not, the caller has to calculate it himself for no particular reason. Having both metalen and ifehdr_end is redundant, so we should stick to only one of these. Other than that, Reviewed-by: Yotam

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

2018-04-18 Thread yotam gigi
On Thu, Apr 19, 2018 at 12:35 AM, Alexander Aring wrote: > We need to record stats for received metadata that we dont know how > to process. Have find_decode_metaid() return -ENOENT to capture this. Agree. > > Signed-off-by: Alexander Aring Reviewed-by: Yotam Gigi > -

Re: [PATCH iproute2 1/1] tc: use get_u32() in psample action to match types

2018-03-13 Thread yotam gigi
On Tue, Mar 13, 2018 at 11:16 PM, Roman Mashak wrote: Makes sense :) Acked-by: Yotam Gigi > Signed-off-by: Roman Mashak > --- > tc/m_sample.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tc/m_sample.c b/tc/m_sample.c > index ff5ee

[PATCH iproute2 net-next] ip: mroute: Print offload indication

2017-10-08 Thread Yotam Gigi
ot;ip route show" command. Example output: $ ip mroute (0.0.0.0, 239.255.0.1) Iif: sw1p7 Oifs: t_br0 State: resolved offload (192.168.1.1, 239.255.0.1) Iif: sw1p7 Oifs: sw1p4 State: resolved offload Signed-off-by: Yotam Gigi --- ip/ipmroute.c | 2 ++ 1 file changed, 2 insertions(+) d

Re: [patch net-next 1/6] net: bridge: Use the MDB_RTR_TYPE_TEMP on bridge device too

2017-10-08 Thread Yotam Gigi
On 10/08/2017 12:42 PM, Nikolay Aleksandrov wrote: > On 08/10/17 12:39, Nikolay Aleksandrov wrote: >> On 08/10/17 08:23, Yotam Gigi wrote: >>> On 10/05/2017 03:09 PM, Nikolay Aleksandrov wrote: >>>> On 05/10/17 13:36, Jiri Pirko wrote: >>>>> From: Yo

Re: [patch net-next 1/6] net: bridge: Use the MDB_RTR_TYPE_TEMP on bridge device too

2017-10-07 Thread Yotam Gigi
On 10/05/2017 03:09 PM, Nikolay Aleksandrov wrote: > On 05/10/17 13:36, Jiri Pirko wrote: >> From: Yotam Gigi >> >> Every bridge port is in one of four mcast router port states: >> - MDB_RTR_TYPE_PERM - the port is set by the user to be an mrouter port >&

Re: [PATCH 1/2 net-next] mlxsw: spectrum: Fix check for IS_ERR() instead of NULL

2017-10-03 Thread Yotam Gigi
On 10/03/2017 01:53 PM, Dan Carpenter wrote: > mlxsw_afa_block_create() doesn't return error pointers, it returns NULL > on error. > > Fixes: 0e14cacb ("mlxsw: spectrum: Add the multicast routing hardware > logic") > Signed-off-by: Dan Carpenter Acked-b

Re: [PATCH 2/2 net-next] mlxsw: spectrum: Add missing error code on allocation failure

2017-10-03 Thread Yotam Gigi
On 10/03/2017 01:53 PM, Dan Carpenter wrote: > We accidentally return success if the kmalloc_array() call fails. > > Fixes: 0e14cacb ("mlxsw: spectrum: Add the multicast routing hardware > logic") > Signed-off-by: Dan Carpenter Acked-by: Yotam Gigi > > di

Re: [PATCH][next] mlxsw: spectrum: fix uninitialized value in err

2017-10-01 Thread Yotam Gigi
ot;Unitialized scalar value") Thanks for that! Reviewed-by: Yotam Gigi > > Fixes: c011ec1bbfd6 ("mlxsw: spectrum: Add the multicast routing offloading > logic") > Signed-off-by: Colin Ian King > --- > drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c | 4 +---

Re: [patch net-next 3/7] ipv4: ipmr: Don't forward packets already forwarded by hardware

2017-10-01 Thread Yotam Gigi
On 09/28/2017 08:56 PM, Florian Fainelli wrote: > On 09/28/2017 10:34 AM, Jiri Pirko wrote: >> From: Yotam Gigi >> >> Change the ipmr module to not forward packets if: >> - The packet is marked with the offload_mr_fwd_mark, and >> - Both input interface an

Re: [patch net-next 2/7] ipv4: ipmr: Add the parent ID field to VIF struct

2017-09-30 Thread Yotam Gigi
On 09/29/2017 12:50 PM, Nikolay Aleksandrov wrote: > On 28/09/17 20:34, Jiri Pirko wrote: >> From: Yotam Gigi >> >> In order to allow the ipmr module to do partial multicast forwarding >> according to the device parent ID, add the device parent ID field to the &

Re: [patch net-next 2/7] ipv4: ipmr: Add the parent ID field to VIF struct

2017-09-30 Thread Yotam Gigi
On 09/29/2017 12:45 PM, Nikolay Aleksandrov wrote: > On 29/09/17 12:29, Nikolay Aleksandrov wrote: >> On 28/09/17 20:34, Jiri Pirko wrote: >>> From: Yotam Gigi >>> >>> In order to allow the ipmr module to do partial multicast forwarding >>> according t

Re: [patch net-next v2 06/12] net: mroute: Check if rule is a default rule

2017-09-25 Thread Yotam Gigi
On 09/25/2017 01:02 PM, Nikolay Aleksandrov wrote: > On 25/09/17 12:45, Jiri Pirko wrote: >> Mon, Sep 25, 2017 at 03:28:21AM CEST, linyunsh...@huawei.com wrote: >>> Hi, Jiri >>> >>> On 2017/9/25 1:22, Jiri Pirko wrote: >>>> From: Yotam Gigi >>

Re: [patch net-next v2 05/12] net: ipmr: Add MFC offload indication

2017-09-25 Thread Yotam Gigi
On 09/25/2017 12:36 PM, Nikolay Aleksandrov wrote: > On 24/09/17 20:22, Jiri Pirko wrote: >> From: Yotam Gigi >> >> Allow drivers, registered to the fib notification chain indicate whether a >> multicast MFC route is offloaded or not, similarly to unicast routes. The

Re: [patch net-next v2 07/12] mlxsw: spectrum: Add the multicast routing offloading logic

2017-09-25 Thread Yotam Gigi
On 09/25/2017 01:40 PM, Nikolay Aleksandrov wrote: > On 24/09/17 20:22, Jiri Pirko wrote: >> From: Yotam Gigi >> >> Add the multicast router offloading logic, which is in charge of handling >> the VIF and MFC notifications and translating it to the hardware logic API.

Re: [patch net-next v2 07/12] mlxsw: spectrum: Add the multicast routing offloading logic

2017-09-24 Thread Yotam Gigi
On 09/25/2017 04:48 AM, Yunsheng Lin wrote: > Hi, Jiri > > On 2017/9/25 1:22, Jiri Pirko wrote: >> From: Yotam Gigi >> >> Add the multicast router offloading logic, which is in charge of handling >> the VIF and MFC notifications and translating it to the hardwar

Re: [patch net-next v2 06/12] net: mroute: Check if rule is a default rule

2017-09-24 Thread Yotam Gigi
On 09/25/2017 04:28 AM, Yunsheng Lin wrote: > Hi, Jiri > > On 2017/9/25 1:22, Jiri Pirko wrote: >> From: Yotam Gigi >> >> When the ipmr starts, it adds one default FIB rule that matches all packets >> and sends them to the DEFAULT (multicast) FIB table. A more com

Re: [patch net-next v2 03/12] ipmr: Add FIB notification access functions

2017-09-24 Thread Yotam Gigi
On 09/25/2017 04:19 AM, Yunsheng Lin wrote: > Hi, Jiri > > On 2017/9/25 1:22, Jiri Pirko wrote: >> From: Yotam Gigi >> >> Make the ipmr module register as a FIB notifier. To do that, implement both >> the ipmr_seq_read and ipmr_dump ops. >> >> The ipm

Re: [patch net-next 07/12] mlxsw: spectrum: Add the multicast routing offloading logic

2017-09-23 Thread Yotam Gigi
On 09/22/2017 04:21 PM, Andrew Lunn wrote: > On Fri, Sep 22, 2017 at 11:36:59AM +0300, Yotam Gigi wrote: >> On 09/21/2017 06:26 PM, Andrew Lunn wrote: >>>> +static void mlxsw_sp_mr_route_stats_update(struct mlxsw_sp *mlxsw_sp, >>>> +

Re: [patch net-next 07/12] mlxsw: spectrum: Add the multicast routing offloading logic

2017-09-22 Thread Yotam Gigi
On 09/21/2017 06:26 PM, Andrew Lunn wrote: >> +static void mlxsw_sp_mr_route_stats_update(struct mlxsw_sp *mlxsw_sp, >> + struct mlxsw_sp_mr_route *mr_route) >> +{ >> +struct mlxsw_sp_mr *mr = mlxsw_sp->mr; >> +u64 packets, bytes; >> + >> +if (mr_ro

Re: [patch net-next 03/12] ipmr: Add FIB notification access functions

2017-09-21 Thread Yotam Gigi
On 09/21/2017 02:19 PM, Nikolay Aleksandrov wrote: > On 21/09/17 09:43, Jiri Pirko wrote: >> From: Yotam Gigi >> >> Make the ipmr module register as a FIB notifier. To do that, implement both >> the ipmr_seq_read and ipmr_dump ops. >> >> The ipmr_seq_rea

Re: [PATCH net] net/sched: cls_matchall: fix crash when used with classful qdisc

2017-09-17 Thread Yotam Gigi
t; +++ b/net/sched/cls_matchall.c > @@ -32,6 +32,7 @@ static int mall_classify(struct sk_buff *skb, const struct > tcf_proto *tp, > if (tc_skip_sw(head->flags)) > return -1; > > + *res = head->res; > return tcf_exts_exec(skb, &head->exts, res); > } > Acked-by: Yotam Gigi

Re: IGMP snooping, switchdev and local multicast receiver on br interface

2017-07-16 Thread Yotam Gigi
On 07/14/2017 06:30 PM, Vivien Didelot wrote: > Hi All, > > Andrew Lunn writes: > >> I've been testing IGMP snooping support with DSA, putting MDB entries >> into the switch so that traffic only goes out ports where there has >> been an interest indicated via IGMP. It mostly works, but i've come >

Re: [PATCH net-next] net/mlxfw: fix a NULL dereference

2017-06-14 Thread Yotam Gigi
err = -EINVAL; > goto err_out; > } > Acked-by: Yotam Gigi

ipmr: MFC routes when VIF deleted

2017-06-11 Thread Yotam Gigi
I have been looking into some weird behavior, and I am not sure whether it is a bug or a feature. When a VIF with index v gets deleted, the MFC routes does not get updated, which means that there can be routes pointing to that VIF. On datapath, when packet hits that route, the VIF validity will be

Re: [PATCH net v3] net: ipmr: Fix some mroute forwarding issues in vrf's

2017-06-10 Thread Yotam Gigi
t; - ip_mr_forward(net, mrt, skb, cache, local); > + ip_mr_forward(net, mrt, dev, skb, cache, local); > read_unlock(&mrt_lock); > > if (local) > @@ -2238,7 +2236,7 @@ int ipmr_get_route(struct net *net, struct sk_buff *skb, > iph->saddr = saddr; > iph->daddr = daddr; > iph->version = 0; > - err = ipmr_cache_unresolved(mrt, vif, skb2); > + err = ipmr_cache_unresolved(mrt, vif, skb2, dev); > read_unlock(&mrt_lock); > rcu_read_unlock(); > return err; Thanks Donald! Reviewed-by: Yotam Gigi

Re: [PATCH][net-next] net/mlxfw: remove redundant goto on error check

2017-06-06 Thread Yotam Gigi
*mfa2_file, > dec_buf.out_pos = 0; > dec_buf.out_size = size; > err = mlxfw_mfa2_xz_dec_run(xz_dec, &dec_buf, &finished); > - if (err) > - goto out; > out: > xz_dec_end(xz_dec); > return err; Thanks! Acked-by: Yotam Gigi

[PATCH net-next] mlxsw: spectrum: Implement the ethtool flash_device callback

2017-06-01 Thread Yotam Gigi
process and take it again before leaving the callback. This way, the rtnl is not held during the process. To make sure the device does not get deleted during the flash process, take a reference to it before releasing the rtnl lock. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel --- drivers

Re: [PATCH linux-firmware] Mellanox: Add firmware for mlxsw_spectrum

2017-05-31 Thread Yotam Gigi
On 05/30/2017 10:22 PM, Kyle McMartin wrote: > On Mon, May 29, 2017 at 01:42:28PM +0300, Yotam Gigi wrote: >> Add first firmware for the Mellanox Spectrum switch, as a followup to the >> recently added commit: >> 6b7421992b8d ("mlxsw: spectrum: Validate firmware re

Re: [PATCH net-next] net/mlxfw: select CONFIG_XZ_DEC

2017-05-30 Thread Yotam Gigi
ig > +++ b/drivers/net/ethernet/mellanox/mlxfw/Kconfig > @@ -4,3 +4,4 @@ > > config MLXFW > tristate "mlxfw" if COMPILE_TEST > + select XZ_DEC Thanks! Acked-by: Yotam Gigi

Re: [patch net-next 0/9] mlxsw: Support firmware flash

2017-05-29 Thread Yotam Gigi
On 05/29/2017 03:17 AM, Jakub Kicinski wrote: > On Sun, 28 May 2017 10:26:49 +0300, Yotam Gigi wrote: >> On 05/23/2017 06:38 PM, David Miller wrote: >>> From: Yotam Gigi >>> Date: Tue, 23 May 2017 18:14:15 +0300 >>> >>>> Sorry, I am not sure

Re: [patch net-next 0/9] mlxsw: Support firmware flash

2017-05-28 Thread Yotam Gigi
On 05/23/2017 06:38 PM, David Miller wrote: > From: Yotam Gigi > Date: Tue, 23 May 2017 18:14:15 +0300 > >> Sorry, I am not sure I understand. You think that drivers should not >> implement >> ethtool's flash_device callback anymore? do you have an alternative

Re: [patch net-next 0/9] mlxsw: Support firmware flash

2017-05-23 Thread Yotam Gigi
On 05/23/2017 06:04 PM, Mintz, Yuval wrote: Patches 6-8 add the "ethtool -f" and the boot-time firmware upgrade on >> the mlxsw spectrum driver. >>> When we tried using `ethtool -E' for qed we got burned for trying to use >> the magic >>> value [1]. When we suggested extending it to allow

Re: [patch net-next 0/9] mlxsw: Support firmware flash

2017-05-23 Thread Yotam Gigi
vice. Our code can only be used to transfer firmware to the device, and cannot be used to configure the device. > > [1] http://marc.info/?l=linux-netdev&m=146093513926921&w=4 > [2] http://marc.info/?l=linux-netdev&m=146514461214421&w=2 > >> Patch 9 adds a fix needed

Re: [PATCH net] rtnetlink: Fix the IFLA_PHYS_PORT_NAME TLV to include terminating NULL

2017-05-09 Thread Yotam Gigi
On 05/09/2017 03:31 PM, Tobias Klauser wrote: > On 2017-05-09 at 14:12:02 +0200, Yotam Gigi wrote: >> The IFLA_PHYS_PORT_NAME rtnetlink TLV length does not include the >> terminating NULL character, which is different from other string typed >> TLVs. Due to the fact that

[PATCH net] rtnetlink: Fix the IFLA_PHYS_PORT_NAME TLV to include terminating NULL

2017-05-09 Thread Yotam Gigi
implement ndo_get_phys_port_name. Make the fill_phys_port_name function include the terminating NULL in the TLV size by using the nla_put_string helper function. Fixes: db24a9044ee1 ("net: add support for phys_port_name") Signed-off-by: Yotam Gigi Cc: David Ahern Reviewed-by: Ido Schimmel

[PATCH net] bridge: Fix error path in nbp_vlan_init

2017-03-01 Thread Yotam Gigi
Fix error path order in nbp_vlan_init, so if switchdev_port_attr_set call failes, the vlan_hash wouldn't be destroyed before inited. Fixes: efa5356b0d97 ("bridge: per vlan dst_metadata netlink support") CC: Roopa Prabhu Signed-off-by: Yotam Gigi --- net/bridge/br_vlan.c | 2 +-

[PATCH net-next/iproute v2 1/5] tc: bash-completion: Add the _from variant to _tc_one* funcs

2017-02-07 Thread Yotam Gigi
a" existed in the command line in args 0. Add the _from variant to those functions, which allows having the command line option once from a specified index. In the previous example, calling _tc_once_attr with 4 and "a f g" will suggest "a f g". Signe

[PATCH net-next/iproute v2 5/5] tc: bash-completion: Add support for matchall

2017-02-07 Thread Yotam Gigi
Add support for the matchall classifier and its parameters. Signed-off-by: Yotam Gigi --- bash-completion/tc | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bash-completion/tc b/bash-completion/tc index e4c6804..80d1297 100644 --- a/bash-completion/tc +++ b/bash

[PATCH net-next/iproute v2 2/5] tc: bash-completion: Prepare action autocomplete to support several actions

2017-02-07 Thread Yotam Gigi
t from the beginning of the command line. Signed-off-by: Yotam Gigi --- bash-completion/tc | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/bash-completion/tc b/bash-completion/tc index 04f969e..c854dc0 100644 --- a/bash-completion/tc +++ b/bash-com

[PATCH net-next/iproute v2 4/5] tc: bash-completion: Add support for filter actions

2017-02-07 Thread Yotam Gigi
for this kind of completion by adding the _tc_filter_action_options routine and invoking it from inside _tc_filter_options. Signed-off-by: Yotam Gigi --- bash-completion/tc | 38 +++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/bash-completion

[PATCH net-next/iproute v2 3/5] tc: bash-completion: Make the *_KIND variables global

2017-02-07 Thread Yotam Gigi
The QDISC_KIND, FILTER_KIND, ACTION_KIND variables may be used by other routines, thus make them global variables. Signed-off-by: Yotam Gigi --- bash-completion/tc | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/bash-completion/tc b/bash-completion/tc

[PATCH net-next/iproute v2 0/5] tc: bash-completion: Add features

2017-02-07 Thread Yotam Gigi
[...] \ action sample group 10 rate 10 action mirred actiondev egressindex ingress mirrorredirect Finally, the last patch adds support in matchall autocompletion. v1->v2: - Rebased on top of net-next tree Yotam Gigi (5): tc: bash-completion: Add the _f

RE: [PATCH net-next/iproute 2/5] tc: bash-completion: Prepare action autocomplete to support several actions

2017-02-06 Thread Yotam Gigi
>-Original Message- >From: Stephen Hemminger [mailto:step...@networkplumber.org] >Sent: Tuesday, February 07, 2017 12:11 AM >To: Yotam Gigi >Cc: netdev@vger.kernel.org; Elad Raz ; Ido Schimmel >; Jiri Pirko ; j...@mojatatu.com; >m...@mojatatu.com >Subject: Re: [PA

RE: [PATCH] [net-next] mlxsw: add psample dependency for spectrum

2017-02-06 Thread Yotam Gigi
x27;: >spectrum.c:(.text+0xe357e): undefined reference to `psample_sample_packet' > >This adds a Kconfig dependency to enforce usable configurations. > >Fixes: 98d0f7b9acda ("mlxsw: spectrum: Add packet sample offloading support") >Signed-off-by: Arnd Bergmann Acked-

[PATCH net-next/iproute 3/5] tc: bash-completion: Make the *_KIND variables global

2017-02-06 Thread Yotam Gigi
The QDISC_KIND, FILTER_KIND, ACTION_KIND variables may be used by other routines, thus make them global variables. Signed-off-by: Yotam Gigi --- bash-completion/tc | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/bash-completion/tc b/bash-completion/tc

[PATCH net-next/iproute 5/5] tc: bash-completion: Add support for matchall

2017-02-06 Thread Yotam Gigi
Add support for the matchall classifier and its parameters. Signed-off-by: Yotam Gigi --- bash-completion/tc | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bash-completion/tc b/bash-completion/tc index e4c6804..80d1297 100644 --- a/bash-completion/tc +++ b/bash

[PATCH net-next/iproute 4/5] tc: bash-completion: Add support for filter actions

2017-02-06 Thread Yotam Gigi
for this kind of completion by adding the _tc_filter_action_options routine and invoking it from inside _tc_filter_options. Signed-off-by: Yotam Gigi --- bash-completion/tc | 38 +++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/bash-completion

[PATCH net-next/iproute 1/5] tc: bash-completion: Add the _from variant to _tc_one* funcs

2017-02-06 Thread Yotam Gigi
a" existed in the command line in args 0. Add the _from variant to those functions, which allows having the command line option once from a specified index. In the previous example, calling _tc_once_attr with 4 and "a f g" will suggest "a f g". Signe

[PATCH net-next/iproute 2/5] tc: bash-completion: Prepare action autocomplete to support several actions

2017-02-06 Thread Yotam Gigi
t from the beginning of the command line. Signed-off-by: Yotam Gigi --- bash-completion/tc | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/bash-completion/tc b/bash-completion/tc index 04f969e..c854dc0 100644 --- a/bash-completion/tc +++ b/bash-com

[PATCH net-next/iproute 0/5] tc: bash-completion: Add features

2017-02-06 Thread Yotam Gigi
[...] \ action sample group 10 rate 10 action mirred actiondev egressindex ingress mirrorredirect Finally, the last patch adds support in matchall autocompletion. Yotam Gigi (5): tc: bash-completion: Add the _from variant to _tc_one* funcs tc: bash-completion

RE: [PATCH iproute2/net-next 1/3] tc: Add support for the sample tc action

2017-02-05 Thread Yotam Gigi
>-Original Message- >From: Florian Fainelli [mailto:f.faine...@gmail.com] >Sent: Sunday, February 05, 2017 10:55 PM >To: Yotam Gigi ; step...@networkplumber.org; >netdev@vger.kernel.org; Jiri Pirko ; Elad Raz > >Subject: Re: [PATCH iproute2/net-next 1/3] tc: Add supp

RE: [PATCH iproute2/net-next 1/3] tc: Add support for the sample tc action

2017-02-05 Thread Yotam Gigi
>-Original Message- >From: Florian Fainelli [mailto:f.faine...@gmail.com] >Sent: Sunday, February 05, 2017 8:37 PM >To: Yotam Gigi ; step...@networkplumber.org; >netdev@vger.kernel.org; Jiri Pirko ; Elad Raz > >Subject: Re: [PATCH iproute2/net-next 1/3] tc: Add supp

[PATCH iproute2/net-next 0/3] Add the tc-sample action

2017-02-04 Thread Yotam Gigi
This patchset adds the tc-sample action support and the corresponding man page. More information about the action and its usage can be found in the commit message. Yotam Gigi (3): tc: Add support for the sample tc action tc: man: Add man entry for the tc-sample action tc: man: matchall

[PATCH iproute2/net-next 3/3] tc: man: matchall: Update examples to include sample

2017-02-04 Thread Yotam Gigi
Add an example of packet sampling to the tc-matchall man page examples section. The example uses the matchall classifier and the sample action to create packet sampling on a port. Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- man/man8/tc-matchall.8 | 10 ++ 1 file changed, 10

[PATCH iproute2/net-next 1/3] tc: Add support for the sample tc action

2017-02-04 Thread Yotam Gigi
: Yotam Gigi --- bash-completion/tc | 8 +- include/linux/tc_act/tc_sample.h | 26 ++ tc/Makefile | 1 + tc/m_sample.c| 186 +++ 4 files changed, 220 insertions(+), 1 deletion(-) create mode 100644

[PATCH iproute2/net-next 2/3] tc: man: Add man entry for the tc-sample action

2017-02-04 Thread Yotam Gigi
In addition to general information about the tc action, the man entry contains common usage examples and information about the tlv fields packed within each sampled packet. Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- man/man8/Makefile| 2 +- man/man8/tc-sample.8 | 125

RE: [PATCH net-next 0/2] Extract IFE logic to module

2017-02-02 Thread Yotam Gigi
>-Original Message- >From: Simon Horman [mailto:simon.hor...@netronome.com] >Sent: Thursday, February 02, 2017 12:17 PM >To: Yotam Gigi >Cc: j...@mojatatu.com; da...@davemloft.net; netdev@vger.kernel.org; Jiri Pirko >; Elad Raz ; Ido Schimmel > >Subject: Re: [PAT

RE: linux-next: manual merge of the net-next tree with Linus' tree

2017-02-02 Thread Yotam Gigi
>-Original Message- >From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On >Behalf Of Stephen Rothwell >Sent: Thursday, February 02, 2017 3:50 AM >To: David Miller ; Networking >Cc: linux-n...@vger.kernel.org; linux-ker...@vger.kernel.org; Yot

[PATCH 2/3] net: Introduce ife encapsulation module

2017-02-01 Thread Yotam Gigi
header space. - ife_tlv_meta_decode - decodes one tlv entry from the packet - ife_tlv_meta_next - advance to the next tlv Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- MAINTAINERS | 7 +++ include/net/ife.h | 51 + include/uapi/linux/Kbuild

[PATCH 1/3] net/sched: act_ife: Unexport ife_tlv_meta_encode

2017-02-01 Thread Yotam Gigi
As the function ife_tlv_meta_encode is not used by any other module, unexport it and make it static for the act_ife module. Signed-off-by: Yotam Gigi --- include/net/tc_act/tc_ife.h | 2 -- net/sched/act_ife.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a

[PATCH v2 net-next 0/3] Extract IFE logic to module

2017-02-01 Thread Yotam Gigi
hus the symbol does not collide. Yotam Gigi (3): net/sched: act_ife: Unexport ife_tlv_meta_encode net: Introduce ife encapsulation module net/sched: act_ife: Change to use ife module MAINTAINERS| 7 ++ include/net/ife.h | 51 + include/

[PATCH 3/3] net/sched: act_ife: Change to use ife module

2017-02-01 Thread Yotam Gigi
Use the encode/decode functionality from the ife module instead of using implementation inside the act_ife. Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- include/net/tc_act/tc_ife.h| 1 - include/uapi/linux/tc_act/tc_ife.h | 10 +--- net/sched/Kconfig | 1

RE: [PATCH net-next 1/2] net: Introduce ife encapsulation module

2017-01-31 Thread Yotam Gigi
>-Original Message- >From: kbuild test robot [mailto:l...@intel.com] >Sent: Wednesday, February 01, 2017 1:58 AM >To: Yotam Gigi >Cc: kbuild-...@01.org; j...@mojatatu.com; da...@davemloft.net; >netdev@vger.kernel.org; Jiri Pirko ; Elad Raz >; Ido Schimmel ; Yota

[PATCH net-next 0/2] Extract IFE logic to module

2017-01-31 Thread Yotam Gigi
Extract ife logic from the tc_ife action into an independent module, and make the tc_ife action use it. This way, the ife encapsulation can be used by other modules other than tc_ife action. Yotam Gigi (2): net: Introduce ife encapsulation module net/sched: act_ife: Change to use ife module

[PATCH net-next 2/2] net/sched: act_ife: Change to use ife module

2017-01-31 Thread Yotam Gigi
Use the encode/decode functionality from the ife module instead of using implementation inside the act_ife. Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- include/net/tc_act/tc_ife.h| 3 - include/uapi/linux/tc_act/tc_ife.h | 10 +--- net/sched/Kconfig | 1

[PATCH net-next 1/2] net: Introduce ife encapsulation module

2017-01-31 Thread Yotam Gigi
header space. - ife_tlv_meta_decode - decodes one tlv entry from the packet - ife_tlv_meta_next - advance to the next tlv Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- MAINTAINERS | 7 +++ include/net/ife.h | 51 + include/uapi/linux/Kbuild

[PATCH net v2] net/sched: matchall: Fix configuration race

2017-01-31 Thread Yotam Gigi
cls_cgroup. Fixes: bf3994d2ed31 ("net/sched: introduce Match-all classifier") Reported-by: Daniel Borkmann Signed-off-by: Yotam Gigi Acked-by: Jiri Pirko --- v1->v2: - Rebased on net When net is merged with net-next, this patch will probably conflict with ec2507d2a306 ("net/s

[PATCH iproute] tc: man: matchall: Fix example indentation

2017-01-31 Thread Yotam Gigi
The man page contains two examples, which have different indentation. Fix the indentation of the two examples to match. Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- man/man8/tc-matchall.8 | 1 + 1 file changed, 1 insertion(+) diff --git a/man/man8/tc-matchall.8 b/man/man8/tc-matchall

[PATCH net-next 1/2] net/sched: act_sample: Fix error path in init

2017-01-31 Thread Yotam Gigi
Fix error path of in sample init, by releasing the tc hash in case of failure in psample_group creation. Fixes: 5c5670fae430 ("net/sched: Introduce sample tc action") Reported-by: Cong Wang Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- net/sched/act_sample.c | 5 - 1 fi

[PATCH net-next 0/2] net/sched: act_sample: Little fixes

2017-01-31 Thread Yotam Gigi
Little fixes in sample tc action. Yotam Gigi (2): net/sched: act_sample: Fix error path in init net/sched: act_psample: Remove unnecessary ASSERT_RTNL net/sched/act_sample.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.4.11

[PATCH net-next 2/2] net/sched: act_psample: Remove unnecessary ASSERT_RTNL

2017-01-31 Thread Yotam Gigi
The ASSERT_RTNL is not necessary in the init function, as it does not touch any rtnl protected structures, as opposed to the mirred action which does have to hold a net device. Reported-by: Cong Wang Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi --- net/sched/act_sample.c | 1 - 1 file

RE: [patch net-next v2 2/4] net/sched: Introduce sample tc action

2017-01-30 Thread Yotam Gigi
>-Original Message- >From: Yotam Gigi >Sent: Friday, January 27, 2017 8:09 AM >To: 'Cong Wang' ; Jiri Pirko >Cc: Linux Kernel Network Developers ; David Miller >; Ido Schimmel ; Elad Raz >; Nogah Frankel ; Or Gerlitz >; Jamal Hadi Salim ; >geert

RE: [patch net-next v2 2/4] net/sched: Introduce sample tc action

2017-01-26 Thread Yotam Gigi
>-Original Message- >From: Cong Wang [mailto:xiyou.wangc...@gmail.com] >Sent: Thursday, January 26, 2017 1:30 AM >To: Jiri Pirko >Cc: Linux Kernel Network Developers ; David Miller >; Yotam Gigi ; Ido Schimmel >; Elad Raz ; Nogah Frankel >; Or Gerlitz ; Jamal

RE: [patch net-next v2 2/4] net/sched: Introduce sample tc action

2017-01-24 Thread Yotam Gigi
>-Original Message- >From: Simon Horman [mailto:simon.hor...@netronome.com] >Sent: Tuesday, January 24, 2017 10:33 AM >To: Jiri Pirko >Cc: netdev@vger.kernel.org; da...@davemloft.net; Yotam Gigi >; Ido Schimmel ; Elad Raz >; Nogah Frankel ; Or Gerlitz >; j...@

[PATCH net] net/sched: matchall: Fix configuration race

2017-01-23 Thread Yotam Gigi
cls_cgroup. Fixes: bf3994d2ed31 ("net/sched: introduce Match-all classifier") Signed-off-by: Yotam Gigi Acked-by: Jiri Pirko --- net/sched/cls_matchall.c | 129 +-- 1 file changed, 46 insertions(+), 83 deletions(-) diff --git a/net/sched/cls_

RE: [patch net-next 2/4] net/sched: Introduce sample tc action

2017-01-22 Thread Yotam Gigi
>-Original Message- >From: Jamal Hadi Salim [mailto:j...@mojatatu.com] >Sent: Sunday, January 22, 2017 3:17 PM >To: Jiri Pirko ; netdev@vger.kernel.org >Cc: da...@davemloft.net; Yotam Gigi ; Ido Schimmel >; Elad Raz ; Nogah Frankel >; Or Gerlitz ; >geert

RE: [patch net-next v2 5/8] Introduce sample tc action

2017-01-04 Thread Yotam Gigi
>-Original Message- >From: Simon Horman [mailto:simon.hor...@netronome.com] >Sent: Wednesday, January 04, 2017 12:43 PM >To: Yotam Gigi >Cc: Roopa Prabhu ; Jiri Pirko ; >netdev@vger.kernel.org; da...@davemloft.net; Ido Schimmel >; Elad Raz ; Nogah Frank

[PATCH net-next v2] net/sched: cls_matchall: Fix error path

2017-01-03 Thread Yotam Gigi
Fix several error paths in matchall: - Release reference to actions in case the hardware fails offloading (relevant to skip_sw only) - Fix error path in case tcf_exts initialization/validation fail Fixes: bf3994d2ed31 ("net/sched: introduce Match-all classifier") Signed-off-by:

RE: [PATCH net-next] net/sched: cls_matchall: Fix error path

2017-01-03 Thread Yotam Gigi
>-Original Message- >From: David Miller [mailto:da...@davemloft.net] >Sent: Tuesday, January 03, 2017 6:08 PM >To: Yotam Gigi >Cc: j...@mojatatu.com; Elad Raz ; Jiri Pirko >; netdev@vger.kernel.org >Subject: Re: [PATCH net-next] net/sched: cls_matchall: Fix error pat

[PATCH net-next] net/sched: cls_matchall: Fix error path

2017-01-03 Thread Yotam Gigi
Fix several error paths in matchall: - Release reference to actions in case the hardware fails offloading (relevant to skip_sw only) - Fix error path in case tcf_exts initialization fails Fixes: bf3994d2ed31 ("net/sched: introduce Match-all classifier") Signed-off-by: Yotam Gigi

RE: [patch net-next v2 5/8] Introduce sample tc action

2016-11-16 Thread Yotam Gigi
>-Original Message- >From: Roopa Prabhu [mailto:ro...@cumulusnetworks.com] >Sent: Wednesday, November 16, 2016 6:15 PM >To: Jiri Pirko >Cc: netdev@vger.kernel.org; da...@davemloft.net; Yotam Gigi >; Ido Schimmel ; Elad Raz >; Nogah Frankel ; Or Gerlitz >; j...@

RE: [patch net-next 5/8] Introduce sample tc action

2016-11-11 Thread Yotam Gigi
>-Original Message- >From: Simon Horman [mailto:simon.hor...@netronome.com] >Sent: Friday, November 11, 2016 2:44 PM >To: Yotam Gigi >Cc: John Fastabend ; Jiri Pirko ; >netdev@vger.kernel.org; da...@davemloft.net; Ido Schimmel >; Elad Raz ; Nogah Frankel >; Or Gerl

RE: [patch net-next 5/8] Introduce sample tc action

2016-11-11 Thread Yotam Gigi
>-Original Message- >From: Yotam Gigi >Sent: Thursday, November 10, 2016 9:59 PM >To: 'John Fastabend' ; Jiri Pirko ; >netdev@vger.kernel.org >Cc: da...@davemloft.net; Ido Schimmel ; Elad Raz >; Nogah Frankel ; Or Gerlitz >; j...@mojatatu.c

RE: [patch net-next 5/8] Introduce sample tc action

2016-11-10 Thread Yotam Gigi
>-Original Message- >From: John Fastabend [mailto:john.fastab...@gmail.com] >Sent: Thursday, November 10, 2016 9:38 PM >To: Jiri Pirko ; netdev@vger.kernel.org >Cc: da...@davemloft.net; Yotam Gigi ; Ido Schimmel >; Elad Raz ; Nogah Frankel >; Or Gerlitz ; >j...@

RE: [patch net-next 1/8] Introduce ife encapsulation module

2016-11-10 Thread Yotam Gigi
>-Original Message- >From: David Miller [mailto:da...@davemloft.net] >Sent: Thursday, November 10, 2016 9:18 PM >To: j...@resnulli.us >Cc: netdev@vger.kernel.org; Yotam Gigi ; Ido Schimmel >; Elad Raz ; Nogah Frankel >; Or Gerlitz ; >j...@mojatatu.com; geert

[PATCH net-next] tc_act: Remove tcf_act macro

2016-11-08 Thread Yotam Gigi
tc_act macro addressed a non existing field, and was not used in the kernel source. Signed-off-by: Yotam Gigi Reviewed-by: Jiri Pirko --- include/net/act_api.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/net/act_api.h b/include/net/act_api.h index 82f3c91..d8eae87 100644 --- a

RE: nfs NULL-dereferencing in net-next

2016-10-27 Thread Yotam Gigi
>-Original Message- >From: Anna Schumaker [mailto:anna.schuma...@netapp.com] >Sent: Wednesday, October 26, 2016 9:17 PM >To: Jakub Kicinski >Cc: Yotam Gigi ; Andy Adamson ; >linux-...@vger.kernel.org; netdev@vger.kernel.org; Trond Myklebust >; Yotam Gigi ; mlxsw >

RE: nfs NULL-dereferencing in net-next

2016-10-25 Thread Yotam Gigi
>-Original Message- >From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On >Behalf Of Jakub Kicinski >Sent: Monday, October 17, 2016 10:20 PM >To: Andy Adamson ; Anna Schumaker >; linux-...@vger.kernel.org >Cc: netdev@vger.kernel.org; Trond Myklebust >Subject: nfs NU

RE: [patch net-next RFC 4/6] Introduce sample tc action

2016-10-19 Thread Yotam Gigi
>-Original Message- >From: Roopa Prabhu [mailto:ro...@cumulusnetworks.com] >Sent: Wednesday, October 19, 2016 10:33 AM >To: Yotam Gigi >Cc: Jamal Hadi Salim ; Jiri Pirko ; >netdev@vger.kernel.org; da...@davemloft.net; Ido Schimmel >; Elad Raz ; Nogah Frankel >;

RE: [patch net-next RFC 4/6] Introduce sample tc action

2016-10-18 Thread Yotam Gigi
>-Original Message- >From: Or Gerlitz [mailto:gerlitz...@gmail.com] >Sent: Sunday, October 16, 2016 1:27 PM >To: Jiri Pirko >Cc: Linux Netdev List ; David Miller >; Yotam Gigi ; Ido Schimmel >; Elad Raz ; Nogah Frankel >; Or Gerlitz ; Jamal Hadi Salim >; geert

RE: [patch net-next RFC 4/6] Introduce sample tc action

2016-10-18 Thread Yotam Gigi
>-Original Message- >From: Roopa Prabhu [mailto:ro...@cumulusnetworks.com] >Sent: Tuesday, October 18, 2016 3:17 AM >To: Jamal Hadi Salim >Cc: Jiri Pirko ; netdev@vger.kernel.org; da...@davemloft.net; >Yotam Gigi ; Ido Schimmel ; Elad >Raz ; Nogah Frankel ; Or

[PATCH net v3 2/2] act_ife: Fix false encoding

2016-09-26 Thread Yotam Gigi
parsing loop. This fix changes the loop counter to be signed and fixes the encoding to take into account the tlv type and size. Fixes: 28a10c426e81 ("net sched: fix encoding to use real length") Acked-by: Jamal Hadi Salim Signed-off-by: Yotam Gigi --- v2->v3 - Fix the encode si

[PATCH net v3 1/2] act_ife: Fix external mac header on encode

2016-09-26 Thread Yotam Gigi
external mac header once the values were not set by user. This fix takes the internal mac header from the packet, after the call to skb_cow_head. Fixes: ef6980b6becb ("net sched: introduce IFE action") Acked-by: Jamal Hadi Salim Signed-off-by: Yotam Gigi --- net/sched/act_ife.c | 3 +

[PATCH net v3 0/2] Fix tc-ife bugs

2016-09-26 Thread Yotam Gigi
This patch-set contains two bugfixes in the tc-ife action, one fixing some random behaviour in encode side, and one fixing the decode side packet parsing logic. v2->v3 - Fix the encode side instead of the decode side Yotam Gigi (2): act_ife: Fix external mac header on encode act_ife:

RE: [PATCH net v2 0/2] Fix tc-ife bugs

2016-09-26 Thread Yotam Gigi
>-Original Message- >From: Jamal Hadi Salim [mailto:j...@mojatatu.com] >Sent: Monday, September 26, 2016 3:47 AM >To: Yotam Gigi ; Yotam Gigi ; >da...@davemloft.net; netdev@vger.kernel.org >Cc: Jiri Pirko ; Elad Raz ; mlxsw >; Roman Mashak >Subject: Re: [PATC

RE: [PATCH net v2 0/2] Fix tc-ife bugs

2016-09-25 Thread Yotam Gigi
>-Original Message- >From: Jamal Hadi Salim [mailto:j...@mojatatu.com] >Sent: Sunday, September 25, 2016 4:46 PM >To: Yotam Gigi ; da...@davemloft.net; >netdev@vger.kernel.org; Yotam Gigi >Subject: Re: [PATCH net v2 0/2] Fix tc-ife bugs > >On 16-09-25 08:31 AM, Y

  1   2   >