Re: [PATCH mlx5-next v1 1/8] net/mlx5: Add forward compatible support for the FTE match data

2018-07-15 Thread Yishai Hadas
On 7/12/2018 11:53 PM, Or Gerlitz wrote: On Wed, Jul 11, 2018 at 2:10 PM, Leon Romanovsky wrote: From: Yishai Hadas Use the PRM size including the reserved when working with the FTE match data. is this actually a bug fix? No, it's some requirement from the new API to enable forward compat

Re: [PATCH net-next v3 02/11] devlink: Add callback to query for snapshot id before snapshot create

2018-07-15 Thread Alex Vesker
On 7/13/2018 3:51 AM, Jakub Kicinski wrote: On Thu, 12 Jul 2018 15:13:09 +0300, Alex Vesker wrote: To restrict the driver with the snapshot ID selection a new callback is introduced for the driver to get the snapshot ID before creating a new snapshot. This will also allow giving the same ID f

[PATCH net-next] mlxsw: spectrum: Expose counters for various packet sizes

2018-07-15 Thread Ido Schimmel
From: Jiri Pirko Expose counters ASIC has in the group of RFC 2819 counters that count number of packets within specific size range. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 63 ++ drivers/net/ethernet/m

Re: [PATCH mlx5-next v1 1/8] net/mlx5: Add forward compatible support for the FTE match data

2018-07-15 Thread Or Gerlitz
On Sun, Jul 15, 2018 at 10:26 AM, Yishai Hadas wrote: > On 7/12/2018 11:53 PM, Or Gerlitz wrote: >> On Wed, Jul 11, 2018 at 2:10 PM, Leon Romanovsky wrote: >>> From: Yishai Hadas >>> Use the PRM size including the reserved when working with the FTE >>> match data. >> is this actually a bug fix

Re: [PATCH mlx5-next v1 1/8] net/mlx5: Add forward compatible support for the FTE match data

2018-07-15 Thread Yishai Hadas
On 7/15/2018 11:03 AM, Or Gerlitz wrote: On Sun, Jul 15, 2018 at 10:26 AM, Yishai Hadas wrote: On 7/12/2018 11:53 PM, Or Gerlitz wrote: On Wed, Jul 11, 2018 at 2:10 PM, Leon Romanovsky wrote: From: Yishai Hadas Use the PRM size including the reserved when working with the FTE match data.

[PATCH net] net/mlx4_en: Don't reuse RX page when XDP is set

2018-07-15 Thread Tariq Toukan
From: Saeed Mahameed When a new rx packet arrives, the rx path will decide whether to reuse the remainder of the page or not according to one of the below conditions: 1. frag_info->frag_stride == PAGE_SIZE / 2 2. frags->page_offset + frag_info->frag_size > PAGE_SIZE; The first condition is no me

[PATCH v2 net] net/ipv6: Do not allow device only routes via the multipath API

2018-07-15 Thread dsahern
From: David Ahern Eric reported that reverting the patch that fixed and simplified IPv6 multipath routes means reverting back to invalid userspace notifications. eg., $ ip -6 route add 2001:db8:1::/64 nexthop dev eth0 nexthop dev eth1 only generates a single notification: 2001:db8:1::/64 dev eth

[PATCH net] net/mlx5e: Move mlx5e_priv_flags into en_ethtool.c

2018-07-15 Thread Kamal Heib
Move the definition of mlx5e_priv_flags into en_ethtool.c because it's only used there. Fixes: 4e59e2888139 ("net/mlx5e: Introduce net device priv flags infrastructure") Signed-off-by: Kamal Heib --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 7 --- drivers/net/ethernet/mellanox

Re: [PATCH iproute2/net-next] tc: flower: Add support for QinQ

2018-07-15 Thread David Ahern
On 6/30/18 4:01 AM, Jianbo Liu wrote: > To support matching on both outer and inner vlan headers, > we add new cvlan_id/cvlan_prio/cvlan_ethtype for inner vlan header. > > Example: > # tc filter add dev eth0 protocol 802.1ad parent : \ > flower vlan_id 1000 vlan_ethtype 802.1q \ >

Re: [PATCH iproute2-next v2] iplink: add support for reporting multiple XDP programs

2018-07-15 Thread David Ahern
On 7/13/18 4:54 PM, Jakub Kicinski wrote: > Kernel now supports attaching XDP programs in the driver > and hardware at the same time. Print that information > correctly. > > In case there are multiple programs attached kernel will > not provide IFLA_XDP_PROG_ID, so don't expect it to be > there (

[PATCH next] bonding: pass link-local packets to bonding master also.

2018-07-15 Thread Mahesh Bandewar
From: Mahesh Bandewar Commit b89f04c61efe ("bonding: deliver link-local packets with skb->dev set to link that packets arrived on") changed the behavior of how link-local-multicast packets are processed. The change in the behavior broke some legacy use cases where these packets are expected to ar

Re: [PATCH - revised] rhashtable: detect when object movement might have invalidated a lookup

2018-07-15 Thread NeilBrown
On Mon, Jul 16 2018, Herbert Xu wrote: > On Mon, Jul 16, 2018 at 09:57:11AM +1000, NeilBrown wrote: >> >> Some users of rhashtable might need to change the key >> of an object and move it to a different location in the table. >> Other users might want to allocate objects using >> SLAB_TYPESAFE_BY

tc mqprio offload command error

2018-07-15 Thread Chopra, Manish
Hello Folks, I am trying to set below command to try mqprio offload on 4.18 kernel. It is throwing the flowing error. # tc qdisc add dev eth0 root mqprio num_tc 2 map 1 1 1 1 0 0 0 0 RTNETLINK answers: Numerical result out of range I can't really make out what's wrong with the above command, si

Re: [PATCH - revised] rhashtable: detect when object movement might have invalidated a lookup

2018-07-15 Thread Herbert Xu
On Mon, Jul 16, 2018 at 11:23:43AM +1000, NeilBrown wrote: > > kmem_cache_free() directly. For this, I need rhashtable to be safe if > an object is deleted and immediately re-inserted into the same hash > chain. This means that rcu_read_lock(); A = rhashtable_lookup(); us

[PATCH net 2/2] tg3: Add higher cpu clock for 5762.

2018-07-15 Thread Siva Reddy Kallam
From: Sanjeev Bansal This patch has fix for TX timeout while running bi-directional traffic with 100 Mbps using 5762. Signed-off-by: Sanjeev Bansal Signed-off-by: Siva Reddy Kallam Reviewed-by: Michael Chan --- drivers/net/ethernet/broadcom/tg3.c | 9 + 1 file changed, 9 insertions(+

[PATCH net 0/2] tg3: Update copyright and fix for tx timeout with 5762

2018-07-15 Thread Siva Reddy Kallam
From: Siva Reddy Kallam First patch: Update copyright Second patch: Add higher cpu clock for 5762 Sanjeev Bansal (1): tg3: Add higher cpu clock for 5762. Siva Reddy Kallam (1): tg3: Update copyright drivers/net/ethernet/broadcom/tg3.c | 17 + drivers/net/e

[PATCH net 1/2] tg3: Update copyright

2018-07-15 Thread Siva Reddy Kallam
From: Siva Reddy Kallam Signed-off-by: Siva Reddy Kallam Reviewed-by: Michael Chan --- drivers/net/ethernet/broadcom/tg3.c | 4 drivers/net/ethernet/broadcom/tg3.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/t