Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1904928pxy; Mon, 2 Aug 2021 13:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNxoJpBQac0TvULk2oyoT91lcdvJefB/Is15yFnnlO6q8rblkhYrwnLoctd7IJpbCiHCyR X-Received: by 2002:a05:6402:d2:: with SMTP id i18mr21517736edu.17.1627936048582; Mon, 02 Aug 2021 13:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627936048; cv=none; d=google.com; s=arc-20160816; b=aVVnj/rC5Yp6goc3yLyw1NKkj4A11lK/xjohn3SkHaf/hjEI/8UBDprdpNwufQY96B B7xzlzVBHbJkRc0ieF0wCuWya5D8geIH4YkFLCQyeNmEGBpO5k1oCtNf1uHq0LvFV8ZW iTB+x9peQMEJglixq9ZTKEm0fp15XzUqW1WFkmCCP1LIXw6+iP1MqRdt25qNoiLElVnr iFw3bT3rLHE/etP8BA4s/AxUjv4H6/+iG9f9dn+bxPlNgVWzDQBFc9zBHrwtzbnIoWy5 zW+7qQFeNMbNSH8PAWflka82xd6eT8a4GYpqNYHCc+vxf8XQNIjgKqONvFoh8yKb6lXT 3Sig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=alsBM1pnH9BR2300JHq18n7w7Myem/5s7rRtpefJzv8=; b=lMKdjaNg8R5GDIz8BIq8khCMYlxENQUP84OlBY4rsrXMsEp2jti5EibicIhTSo+62L Ht/dTGtGvz2MDv5DvYBHYptv00Gn2Nz0UmeE8pMqf3NjBHj/hZvPg8yHQXnw98/2d59O 6jIfqRSEnAu2P8uJF90b6TLDTFgclgtgvXe0019ZLRzSuBBxPKfTo3TzIrLIZgc7uvr4 1zVmtI+6tTV+5CjjSPi6TZKoYk5kzSpbb2Y6YcLBi06R8F00gAz7S9L2iZMyRcLDxBgj 7pG6IFIhqjpnXbsdrWz5Ueo7IIeqA0mvRnyWgcVm0Cnc2SIXD9VGlRAP7RyEp05QNkQv 04eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VLb6ZLcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si7511068ejy.73.2021.08.02.13.27.05; Mon, 02 Aug 2021 13:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VLb6ZLcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231194AbhHBUZ4 (ORCPT + 99 others); Mon, 2 Aug 2021 16:25:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:53398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbhHBUZ4 (ORCPT ); Mon, 2 Aug 2021 16:25:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9C2060EB5; Mon, 2 Aug 2021 20:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627935946; bh=O7HnUTXVprmZ4/8oq1gddhA3XEmFUduDhZhLrUMIH2Y=; h=From:To:Cc:Subject:Date:From; b=VLb6ZLcm+8JPluUSOOKG2uWsYPoVvhY2z2qZhgx+FzVzGwVMUcMCg7d2timrMJcCy a+ab6rKXoYMyXbH1MsuqMvAFkG7Zuj+unTzJ3iuZsDCR6abmC3OaGHOHHMhsp0L3JI pEV4YVSMPUkYMri5AUTevEiB1DRAbRi6lPckODvCXhKzbZxq/fexNgUoULMZuWP5Up jklO48ZC14THUHASjGSn5LxJTd5fphlrQPfRv71DaecEpQjkfYOiQIVG5XY4vCLYdY B75TRL9KVdRGhgnVmghUZDtd6ccTEDRv/gf51zZRu08gDo+oKYNkF9x6END+oAEfQq LuWJBHfK2MWqQ== From: Mark Brown To: David Miller , Networking Cc: Linux Kernel Mailing List , Linux Next Mailing List , Vladimir Oltean Subject: linux-next: manual merge of the net-next tree with the net tree Date: Mon, 2 Aug 2021 21:25:31 +0100 Message-Id: <20210802202531.40356-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/dsa/sja1105/sja1105_main.c between commit: 589918df9322 ("net: dsa: sja1105: be stateless with FDB entries on SJA1105P/Q/R/S/SJA1110 too") from the net tree and commit: 0fac6aa098ed ("net: dsa: sja1105: delete the best_effort_vlan_filtering mode") 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. diff --cc drivers/net/dsa/sja1105/sja1105_main.c index 8667c9754330,5ab1676a7448..000000000000 --- a/drivers/net/dsa/sja1105/sja1105_main.c +++ b/drivers/net/dsa/sja1105/sja1105_main.c @@@ -1445,23 -1474,25 +1499,29 @@@ int sja1105pqrs_fdb_add(struct dsa_swit /* Search for an existing entry in the FDB table */ l2_lookup.macaddr = ether_addr_to_u64(addr); l2_lookup.vlanid = vid; - l2_lookup.iotag = SJA1105_S_TAG; l2_lookup.mask_macaddr = GENMASK_ULL(ETH_ALEN * 8 - 1, 0); - l2_lookup.mask_vlanid = VLAN_VID_MASK; + if (priv->vlan_aware) { + l2_lookup.mask_vlanid = VLAN_VID_MASK; + l2_lookup.mask_iotag = BIT(0); + } else { + l2_lookup.mask_vlanid = 0; + l2_lookup.mask_iotag = 0; + } l2_lookup.destports = BIT(port); + tmp = l2_lookup; + rc = sja1105_dynamic_config_read(priv, BLK_IDX_L2_LOOKUP, - SJA1105_SEARCH, &l2_lookup); - if (rc == 0) { - /* Found and this port is already in the entry's + SJA1105_SEARCH, &tmp); + if (rc == 0 && tmp.index != SJA1105_MAX_L2_LOOKUP_COUNT - 1) { + /* Found a static entry and this port is already in the entry's * port mask => job done */ - if (l2_lookup.destports & BIT(port)) + if ((tmp.destports & BIT(port)) && tmp.lockeds) return 0; + + l2_lookup = tmp; + /* l2_lookup.index is populated by the switch in case it * found something. */ @@@ -1536,8 -1537,15 +1596,14 @@@ int sja1105pqrs_fdb_del(struct dsa_swit l2_lookup.macaddr = ether_addr_to_u64(addr); l2_lookup.vlanid = vid; - l2_lookup.iotag = SJA1105_S_TAG; l2_lookup.mask_macaddr = GENMASK_ULL(ETH_ALEN * 8 - 1, 0); - l2_lookup.mask_vlanid = VLAN_VID_MASK; + if (priv->vlan_aware) { + l2_lookup.mask_vlanid = VLAN_VID_MASK; + l2_lookup.mask_iotag = BIT(0); + } else { + l2_lookup.mask_vlanid = 0; + l2_lookup.mask_iotag = 0; + } l2_lookup.destports = BIT(port); rc = sja1105_dynamic_config_read(priv, BLK_IDX_L2_LOOKUP,