Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3200241imu; Mon, 17 Dec 2018 15:21:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/XQh7sX1tlaLABCgx7ZUjKoIafFjV4gKJ1zE3KY0NZKnCUCGXgse+FvZQTwQ6jklH9wmYL1 X-Received: by 2002:a63:4e41:: with SMTP id o1mr14135264pgl.282.1545088900418; Mon, 17 Dec 2018 15:21:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545088900; cv=none; d=google.com; s=arc-20160816; b=rxijZL4LPVd3EhLQAQ8dgRDn1JxBtmzFWEeSixNwxYuh0w+6zL7fYOaTHY0rME4iGT ibOsg9Xx2FbkUa1E9mpA5oikqLMwzcdCEQAxMSgKEITojD/IisC1tOSN6cQju8jxaET7 3f/fwz8E651HCOSvmOdY4N1PoPz1ZBg5HJZ9zYSWgthgx/DHvgM6362iA61cY6WePvgU shEVmwzOVEz1VZkQ6B0KOqaw2eHrIMDrDGZe81jb6Ib8VGGViZRm9Gqwp6F2Dmcct8ne HvR4NbvRyQh70lto7/hv2ZFbqG0siropA19ib+HFutUd7umP1XGrVOB6iQg4aIB4JKX3 vSwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oFHE2lkU0CT8piJGZsq12dSz9d6ZsxjmjTwrNvI8XmY=; b=C88cnnomUjEj6sScD8V3a8JejO2P6Ng/9MR/tvPU7VDHdVRYIqXmE2L7rpGRmYAuv/ S0KP8YaJofGdX6xSp/Ix/kGVmj90IeWqfdpbO5t9XuTF/p/ygtuOuuMDLGfqZk9pcbkH pX864EmqgdnKU4PYaq+G2sGn96eLL2vOFA6N2QHVPMhvYNsrfo3CdeXc5fo3tfzGdCmN MOzag5Y7VPUlOyTaWRFRx0c17OlfdKa7Ful2gwH4CsvwLaVvvfcHJJ6cAwL123OvJOOz N4Jxwvnbw8d/onqT8ikJLqdypM8ZgBDQIIpj55GYbl+zFNZUNc1Nq/JZNEBlnqDZFiyo E0Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b="e7nxbe/u"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i69si12569574pgd.71.2018.12.17.15.21.25; Mon, 17 Dec 2018 15:21:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b="e7nxbe/u"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727204AbeLQVUs (ORCPT + 99 others); Mon, 17 Dec 2018 16:20:48 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42584 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726851AbeLQVUr (ORCPT ); Mon, 17 Dec 2018 16:20:47 -0500 Received: by mail-lf1-f68.google.com with SMTP id l10so10565658lfh.9 for ; Mon, 17 Dec 2018 13:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oFHE2lkU0CT8piJGZsq12dSz9d6ZsxjmjTwrNvI8XmY=; b=e7nxbe/ueLdW/p7ywohCbx346ndRZie1XUQvdwAmjfZ2aSc5ktporxAv/pehZKIdnD Xs3YUEplQZOV0oz1jjSObRszsqB5G8rha4uXkMOg+LAJqCxsdbFd+tCou6CVUNrBtKnw y/PfR4UZD8Z9iaGCpFE8I7WMZqqB1ih9q+FacgMLds0WKAN2sm5cPY8TqkCKoBBfDTKi Ylw7EdTi96utPDRJtvTgLQfknhloqkDB1hvq+Gz8a/IvwcxtwWTC6ONAkmCod3PWcmfO +rUkHcJbls/lAjUdVXV8cyNDZv1zy49/UnGM0IClvZmp3olepc7lT2LvgtnO+v2eOkPP aa0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oFHE2lkU0CT8piJGZsq12dSz9d6ZsxjmjTwrNvI8XmY=; b=jnGVIlGmNqde4mvnfBJei3VG9OiuJ+wdC+Q994Na4EKQb11YzaG9bGNBODSGN+lhq+ a5szP/YZDZ2nfJnfNdr+RGLDjv1HIJsMQGUU7njXH7Q+w8OOtgpdpTcjPQ4bJsguZ9+C H/fnkFfsbVkW232OHVHArPjD11sWvLskM6RsbxCeoP7/l2EYld80IYbnj1aK4bcP1dAs S8RueQ4skAgm0OAK43bHiHMoxC6ihkz7T1nmi463iVCBmScNz/K9Q7sZnRbenfcm9RIY 3gC0kQ8qWJM9xG2Y8PQDjL2WFZveN1QbBOOdxVRZspqnQzLRYn+FOPt+RUta6nPNRtgO Cqig== X-Gm-Message-State: AA+aEWY2vjWnGZjSKbmYgNEhDLFON15A7LZZMwF7xOfUkRyRk1DWrVeh hjZC6hnOk4XxZTiqsbY6F3WmFj/UlFyS11SZ9+3aUw== X-Received: by 2002:a19:4f0c:: with SMTP id d12mr1753602lfb.121.1545081644633; Mon, 17 Dec 2018 13:20:44 -0800 (PST) MIME-Version: 1.0 References: <20181217112546.4e400eb3@canb.auug.org.au> In-Reply-To: <20181217112546.4e400eb3@canb.auug.org.au> From: Saeed Mahameed Date: Mon, 17 Dec 2018 13:20:33 -0800 Message-ID: Subject: Re: linux-next: manual merge of the net-next tree with the net tree To: Stephen Rothwell Cc: David Miller , Networking , Linux Next Mailing List , Linux Kernel Mailing List , Or Gerlitz , Saeed Mahameed , Eli Britstein Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 16, 2018 at 4:25 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > > between commit: > > 154e62abe9cd ("net/mlx5e: Properly initialize flow attributes for slow path eswitch rule deletion") > > from the net tree and commit: > > e88afe759a49 ("net/mlx5e: Err if asked to mirror a goto chain tc eswitch rule") > e85e02bad29e ("net/mlx5: E-Switch, Rename esw attr mirror count field") > > from the net-next tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > index 9dabe9d4b279,53ebb5a48018..000000000000 > --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > @@@ -870,9 -903,9 +903,9 @@@ mlx5e_tc_offload_to_slow_path(struct ml > struct mlx5_flow_handle *rule; > > memcpy(slow_attr, flow->esw_attr, sizeof(*slow_attr)); > - slow_attr->action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST, > - slow_attr->split_count = 0, > - slow_attr->dest_chain = FDB_SLOW_PATH_CHAIN, > + slow_attr->action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; > - slow_attr->mirror_count = 0; > ++ slow_attr->split_count = 0; > + slow_attr->dest_chain = FDB_SLOW_PATH_CHAIN; > > rule = mlx5e_tc_offload_fdb_rules(esw, flow, spec, slow_attr); > if (!IS_ERR(rule)) > @@@ -887,9 -920,6 +920,9 @@@ mlx5e_tc_unoffload_from_slow_path(struc > struct mlx5_esw_flow_attr *slow_attr) > { > memcpy(slow_attr, flow->esw_attr, sizeof(*slow_attr)); > + slow_attr->action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; > - slow_attr->mirror_count = 0; > ++ slow_attr->split_count = 0; > + slow_attr->dest_chain = FDB_SLOW_PATH_CHAIN; > mlx5e_tc_unoffload_fdb_rules(esw, flow, slow_attr); > flow->flags &= ~MLX5E_TC_FLOW_SLOW; > } > @@@ -909,11 -939,13 +942,12 @@@ mlx5e_tc_add_fdb_flow(struct mlx5e_pri > struct mlx5e_rep_priv *rpriv; > struct mlx5e_priv *out_priv; > int err = 0, encap_err = 0; > + int out_index; > > - /* if prios are not supported, keep the old behaviour of using same prio > - * for all offloaded rules. > - */ > - if (!mlx5_eswitch_prios_supported(esw)) > - attr->prio = 1; > + if (!mlx5_eswitch_prios_supported(esw) && attr->prio != 1) { > + NL_SET_ERR_MSG(extack, "E-switch priorities unsupported, upgrade FW"); > + return -EOPNOTSUPP; > + } > > if (attr->chain > max_chain) { > NL_SET_ERR_MSG(extack, "Requested chain is out of supported range"); > @@@ -2980,15 -2667,7 +2667,15 @@@ static int parse_tc_fdb_actions(struct > if (!actions_match_supported(priv, exts, parse_attr, flow, extack)) > return -EOPNOTSUPP; > > + if (attr->dest_chain) { > + if (attr->action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) { > + NL_SET_ERR_MSG(extack, "Mirroring goto chain rules isn't supported"); > + return -EOPNOTSUPP; > + } > + attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; > + } > + > - if (attr->mirror_count > 0 && !mlx5_esw_has_fwd_fdb(priv->mdev)) { > + if (attr->split_count > 0 && !mlx5_esw_has_fwd_fdb(priv->mdev)) { > NL_SET_ERR_MSG_MOD(extack, > "current firmware doesn't support split rule for port mirroring"); > netdev_warn_once(priv->netdev, "current firmware doesn't support split rule for port mirroring\n"); Looks good to me.