Netdev List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Henry Martin <bsdhenrymartin@gmail.com>,
	Ido Schimmel <idosch@nvidia.com>,
	Ilya Maximets <i.maximets@ovn.org>,
	"David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	Eric Dumazet <edumazet@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>, Andrew Lunn <andrew@lunn.ch>,
	Simon Horman <horms@kernel.org>,
	Kuniyuki Iwashima <kuniyu@google.com>,
	Petr Machata <petrm@nvidia.com>,
	Ferruh Yigit <ferruh.yigit@amd.com>,
	Antoine Tenart <atenart@redhat.com>,
	Seungwon Bae <qotmddnjs@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Henry Martin <bsdhenrymartin@gmail.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH net v4 2/2] vxlan: reject VNI add when the default fdb entry is nexthop-backed
Date: Wed, 28 Oct 2026 17:37:49 +0800	[thread overview]
Message-ID: <202610281752.nKGCORKp-lkp@intel.com> (raw)
In-Reply-To: <20261027104713.328028-2-bsdhenrymartin@gmail.com>

Hi Henry,

kernel test robot noticed the following build errors:

[auto build test ERROR on net/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Henry-Martin/vxlan-reject-VNI-add-when-the-default-fdb-entry-is-nexthop-backed/20261027-184713
base:   net/main
patch link:    https://lore.kernel.org/r/20261027104713.328028-2-bsdhenrymartin%40gmail.com
patch subject: [PATCH net v4 2/2] vxlan: reject VNI add when the default fdb entry is nexthop-backed
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20261028/202610281752.nKGCORKp-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 1da436a23e613c425fc9b868fc8deb979ede47a4)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261028/202610281752.nKGCORKp-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610281752.nKGCORKp-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/vxlan/vxlan_vnifilter.c:846:33: error: member reference type 'struct vxlan_config *' is a pointer; did you mean to use '->'?
     846 |             !vxlan_addr_any(&vxlan->cfg.remote_ip)) {
         |                              ~~~~~~~~~~^
         |                                        ->
   1 error generated.


vim +846 drivers/net/vxlan/vxlan_vnifilter.c

   819	
   820	static int vxlan_vni_add(struct vxlan_dev *vxlan,
   821				 struct vxlan_vni_group *vg,
   822				 u32 vni, union vxlan_addr *group,
   823				 struct netlink_ext_ack *extack)
   824	{
   825		const struct vxlan_config *cfg = rtnl_dereference(vxlan->cfg);
   826		struct vxlan_vni_node *vninode;
   827		__be32 v = cpu_to_be32(vni);
   828		bool changed = false;
   829		int err = 0;
   830	
   831		if (vxlan_vnifilter_lookup(vxlan, v))
   832			return vxlan_vni_update(vxlan, vg, v, group, &changed, extack);
   833	
   834		err = vxlan_vni_in_use(vxlan->net, vxlan, cfg, v);
   835		if (err) {
   836			NL_SET_ERR_MSG(extack, "VNI in use");
   837			return err;
   838		}
   839	
   840		/* A default fdb entry that is backed by a nexthop group can
   841		 * never take a remote; reject before the VNI is installed,
   842		 * otherwise a failure in vxlan_vni_update_group() would leave
   843		 * the VNI half-installed.
   844		 */
   845		if ((group && !vxlan_addr_any(group)) ||
 > 846		    !vxlan_addr_any(&vxlan->cfg.remote_ip)) {
   847			if (vxlan_fdb_entry_nh_backed(vxlan, all_zeros_mac, v)) {
   848				NL_SET_ERR_MSG(extack,
   849					       "Cannot add a remote to a nexthop fdb entry");
   850				return -EOPNOTSUPP;
   851			}
   852		}
   853	
   854		vninode = vxlan_vni_alloc(vxlan, v);
   855		if (!vninode)
   856			return -ENOMEM;
   857	
   858		err = rhashtable_lookup_insert_fast(&vg->vni_hash,
   859						    &vninode->vnode,
   860						    vxlan_vni_rht_params);
   861		if (err) {
   862			vxlan_vni_free(vninode);
   863			return err;
   864		}
   865	
   866		__vxlan_vni_add_list(vxlan, vg, vninode);
   867	
   868		if (vxlan->dev->flags & IFF_UP)
   869			vxlan_vs_add_del_vninode(vxlan, vninode, false);
   870	
   871		err = vxlan_vni_update_group(vxlan, vninode, group, true, &changed,
   872					     extack);
   873	
   874		vxlan_vnifilter_notify(vxlan, vninode, RTM_NEWTUNNEL);
   875	
   876		return err;
   877	}
   878	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2026-10-28  9:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-27 10:47 [PATCH net v4 1/2] vxlan: reject adding a remote to a nexthop fdb entry Henry Martin
2026-10-27 10:47 ` [PATCH net v4 2/2] vxlan: reject VNI add when the default fdb entry is nexthop-backed Henry Martin
2026-10-28  9:37   ` kernel test robot [this message]
2026-10-28 11:15     ` henry martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202610281752.nKGCORKp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=atenart@redhat.com \
    --cc=bsdhenrymartin@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=ferruh.yigit@amd.com \
    --cc=horms@kernel.org \
    --cc=i.maximets@ovn.org \
    --cc=idosch@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=petrm@nvidia.com \
    --cc=qotmddnjs@gmail.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox