From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=66.163.187.147 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796422027; b=UxBrU034gCh3xr49qxO7tcz+6ik4RyQLyQJA5Es/7RZPAXfjMInjCac4Ds6Iir5x2o73 N3o9UG33cR9dB+Cb9eNTxM+Ia7okF/e+TLZCEV9eLT2jMueZSefdBr+8e12PcWXqnXIS+ cKQWa68Aw2DEyuZowi+GcELHTR4NgP1TEAH5+6IKQoXdCGEZ9K3HoPee2SKQGZaHs1f4f oRTrYhpvWqZ4FzO8tyomoXs19u5zasRjvoGlCZIuuvPP/nkHAaLBOrCl59jQWhtzJ8gB5 yX5+ZUl2m2DgQ86sU+zyg3MPEPMlVqM7E8rZEvVK+GZrtktMr2seZVwPFS0zKxn1qGQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796422027; h=DMARC-Filter:DKIM-Signature:X-SONIC-DKIM-SIGN:X-YMail-OSG:X-Sonic-MF: X-Sonic-ID:Received:Received:Message-ID:Date:MIME-Version:User-Agent: Subject:To:References:Content-Language:In-Reply-To:From:Content-Type: Content-Transfer-Encoding:X-Mailer; bh=BETJmiIRxWLcYPPvMCwx44q7oGU969/HFjJ/uW6m9Qw=; b=N9jfoeYP2MM1FtOYfoLWKpHFzszNpjgUawfsLcqZC1sZ1gMY82GCdvsVhAIXCYc+wz/8 xoaB6s2A6Y8c84ytwUs8M0Hb/mqgg5UXuo068OGWICOwVNhVI0eA+4hN1BEcttD2d0v+G kMl5VmIc/s6FEXQ5WzEHHpvot92lNU59KxjPgq3cWDqyxHj7sn0WacwIrfxwOdSH7VJbT exbTP1pkfFMMHCh3SThxa494KLKUJEEFj/F4LHMBsDiyDwwXK3TdG8DoTcKbAMVE0i/76 L82sYPmOFoMbeVqBfhrdSl6ZDIRN1/HYQ3svyF40hMIHhei3n+niHltpP9wFg3V12rQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=yahoo.com; spf=pass smtp.mailfrom=yahoo.com; dkim=pass header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=l00F8ve3; arc=none smtp.remote-ip=66.163.187.147 Received: from sonic316-21.consmr.mail.ne1.yahoo.com (sonic316-21.consmr.mail.ne1.yahoo.com [66.163.187.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91DA9606A32C for ; Fri, 4 Dec 2026 22:07:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 91DA9606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yahoo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=l00F8ve3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1796422025; bh=BETJmiIRxWLcYPPvMCwx44q7oGU969/HFjJ/uW6m9Qw=; h=Date:Subject:To:References:In-Reply-To:From:Content-Type:From:Subject:Reply-To:Content-Type; b=l00F8ve3FG66LVkT0iiBmym2yWUChX2MnfnRtL4WCXwox8gmDjNjqvawzF0hMSPSxyrNFn6Hgkn pGGNziAArOIuGfoyEyxaLIH0r3wQrdvXxiS24eMX2wNp3Mwcy3KLvmXgjwXpj68vIDh0zhhe1HU3r Udwdoe5NeQrI4x0SL/hmSqCvYUYgZD2TsiIXzIEBr0t6Rfa39285qs5+JBFlZ0VrJgDhzoJrMub0p hgeUNET1tLbBbj5f3o6gC+mv99ds08T/ysVgUKZptxA+8VXUyF+TIy/VhjqEBHWqevxMa6yILdmKs qXmGlJqEr2IJP4L3XKUDqz4kerQyHO8Itbeg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1796422025; bh=xyfjrou45Yj4xVEdW2UpBZeSY7uZ3z2v9uejx5qigSl=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=mNaViEUvu/7s/q5gA+BaQ6CKYSz C0ZkUcUpMBIRGUV0ZHV7446mCKeH5XdG57aU+kYGq9RkaAFR+z2rU/6vx9CFFS0fWxn27pt/93/04 HRfGv7bnXuxnzECYjhICH2Tk+hkWDTVV9DlU4VnDywoTfpZt5IRWqnoWx6GZzxwRWZD6bDACf8VYC TmZIbT9DnPW06TdehNYCl1JyPYW14fAEEVnjHWQL1v7iTsu56tf2gwLpFNSgwAaFw8uJEgUcswrEO MIZPwiNg6y5YcRkUJF5kLPNKlW/3ih8yGhqf0eFpapoupQpmX4//f2yDZxL590ViADg14OmNDCvbn DvAldDA== X-YMail-OSG: 8c_emIgVM1nLzbSWZgLJ2kr1DhRWyM5fdLH2fPUCrhZXAd4hVh1nvZTee6SGFGO dHqzQWVV8ryuSAXROLWvvsSYxNYnIjw5yUzKGT4T2K3ArXOz0WRO1lQQ18OtSnDGJre68uXAbdRh 5JbTbR513XXW2DvVADYV1qo9QaT0xd06ztqiW06zdU6zs9IPQ_UNu_EqHc2nY1GUFeRFkGA0X8tF DwNOsJGSAGZI2tCScxcwTzgMv21hmCdZfL4UFrw8sH.tac9sym11U.xaDqzy.mJS3OoddaMYMbaT xIjF4VmecBTuyhVeUzInHCfkY5b6BjSEvivRi1EjeMHzN3PjsQdyFlwFhQXpqTHHcOUK4AXg.VM8 TR1Nz59vAUY81fHvDcjiqBHgyt1ousyc4CEGerRhV4C4fheSdTGm0U5bZ7kLXYfK0_45xJ89BS2P Lv6Y_jBGEwtxSkxCZYA4p6oJsVd4qa6L7x0k.H1WgxKHdHxxB1Dw1.KboLCAC9Gy3inkAqA0QdMZ BafjxfISMIXctrUq.iirchl3ybWo9U_5bd5MqZNtvQFN8kOw2ZDx2LQF6MswmcG4ugrys3BFTzHy Yx4FBFE8v24YurmHXRsShd.HOBQe1DEblbzcfHY3gLRFZxbzmpL7KCDMNlcQepO2P6uz.C8OU2kK rdGDsjI8S4f5k54huHXBQpMX0hFc7v7iIikzc5L.gD7szodm1057ZRBoSJ_kWQgUUquVNAgnguN. GW3oyInyYM8XYNhV4pgzMoD9OCO7XZ1UfW6LKJFKfo5p5t4LXyxvWDRHuHbJyA8ChkyRJUrDPK7w 8Wa4iWzluiI9Y.2WQLzDNxdes9WChbJH7gCz5YtsFstMmgSfoDlx3X6YiXphiLRQZp.rHOVpL7NE NM7hIEWhjntlg7FFKsce2CEKRv95d7zVBZrFZPV6O4FRhuCJO8L_pdxqcNQgipb5mBI46ecWf4pF L0hoEp6AWejCgZGtPFuX1TFkPcAo8RL4VoHKgjmdMJfYMBNG0UKwdQ5.2B1snNmpA2j_87gctb63 xHs6TD63mwBSlRaEcB9miFySMLVPE.FJSarvAptNopX9crAKFaNlh8ppWzPeXOkXxK4otw0pBqnn ilDkBd8zPTqqs5Of36AL6Zu9TukfSkguHbS5VAmrrvngbzuPj0Cxz_saPD1aaizL30FaVEwB3f0J NIredslRrF7i82k1KF.j6h6k3bZvFKzdtKkjQxQuVtXE5CEUFLpNegG8E8OYLQkMjID543gKhpSr b.74yCf5nHE8mNzYwo2yNhZDoGVpxHopKMASqx4OfP.gGCYJ7OmBaHXlk0iu.Vw8eS9r051SWWT_ MINtK0h19G10kKwR7lybEcr.kc7mylu.v3fJE8Zbd08WjVYb.9rkWj3MXNUx7ERoFCtrYGNpeowE ndqJISjw6KFftgFUxM8UhFpBLBfos4zcsLiC7TgUENvp_9f_ZHn73iinfbREVYkSNp0D3B332E3W uCHB6UacHxYhTyRnLokqpNaWJUpX44YN5BF_75j0j9K9mFRhGF1tQ9GtQ7JxDdvVSlu4zVHkLdjq xq82DgY3lCG7UX3gL3sfX0bF4RNE.2gZWRRJbMz3kWxkXn1TglyVSR.AeGdyOWGOdOAVjAExmGli 9jtLXQcB9vFqs080soOygSbQsCMnCXM3jZhG_wvDQ3MReB99sDVejT9yzT8V8_4zZbr63bzIsAzn HefuoDiJO.tFcQILmpDgPMOUONNVV2kEBWwqTyfwxo6vXw_4CqdYyBYXfyWozX8ESPgd1Ui5SmnC 02uuw0KgtyX25Pvx791Cuv.zJK4FqDcIosL12Na1t8GO1rEG84y7nBMvKpXXcHYqjODx6qUaBuk8 11HSFKkGIX7pFjYRnVLwe6eI8Wh2rKO22qlq3soROq8PCk30AzvhLqng6zqm03IimhqdAXx6kEte kLqLDKKGLt4ox8QfFK0E26JP4a4hptSR1Od63nvJDlreWk77ouTlQY2Ervemg5ebAE2YWIWgweci 7RdLiDqiRJdtLJtjs5W4rKYfre62g6juAtMaeqJu6fAHmBXeZTbkZdv799V0X_vPtcXadaSRCmwo NPC2qR.T0oFi5A2WT.2eHyEBd5Ulih5VvcCYwFKEfPJPsoMjWi3BSvUqiSz_5nvdVmGAecDQX231 JyE8BXonwzR6T7luz1KykH4n0ley.S51lRnmr5c8.b4c_6PpS6dLyrzVQLIqd9zcNubjlOAfDnjG ddHnMRufNCWk.RWf6..Z6SGxUYUEyP8vA9gEm.Y8wG99HfR78ZmGFpRa7WRpMSg3O2Axn8R83gs8 y_IufQY5V6tREUv8TfEdAGhXmxwHX7tLvbbZUtIWi_xjeNQ-- X-Sonic-MF: X-Sonic-ID: ecac7ff0-a36c-430c-bdbe-9d96f6aa27ad Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Fri, 4 Dec 2026 22:07:05 +0000 Received: by hermes--production-ir2-7c4859dc89-4b5bc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5125743ea3a032e89433a9745372f9a8; Fri, 04 Dec 2026 22:06:59 +0000 (UTC) Message-ID: <76c9fc36-6926-46ab-bdc0-e8eefcd0c8d5@yahoo.com> Date: Fri, 4 Dec 2026 23:06:56 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH net-next v20 08/15] net: dsa: realtek: rtl8365mb: refactor PVID handling To: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alvin.sipraga@analog.com, gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com, gabonpivovich@gmail.com, contact@c127.dev, o.rempel@pengutronix.de References: <9efcb80a-517c-4413-8261-4f9380e0eb83@yahoo.com> Content-Language: pl In-Reply-To: <9efcb80a-517c-4413-8261-4f9380e0eb83@yahoo.com> From: Mieczyslaw Nalewaj Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.27159 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo The PVID helpers (rtl8365mb_vlan_port_get_pvid(), rtl8365mb_vlan_pvid_port_set() and rtl8365mb_vlan_pvid_port_clear()) work on a VLAN MC table index, which only family C has. Family D stores a raw VID in a per-port register, so it needs its own implementation, and also needs its PVID registers cleared at setup. Move the helpers behind struct rtl8365mb_family_info, as already done for the VLAN 4k accessors: the existing code becomes the family C implementation (rtl8365mb_c_vlan_port_get_pvid() and the like), and the three functions above only call it through the vlan_port_get_pvid, vlan_pvid_port_set and vlan_pvid_port_clear pointers in the family info. Also add a vlan_port_reset_pvid hook, implemented as a no-op on family C (rtl8365mb_c_vlan_port_reset_pvid()) so existing setup behavior is preserved. The callers are not changed. The following patch adds the family D implementation without any is_d() check in the shared code. No functional change. The family C functions are not static because they are referenced from the family C info in rtl8365mb_main.c. Tested-by: Gustavo Foletto Mora Signed-off-by: Mieczyslaw Nalewaj --- drivers/net/dsa/realtek/rtl8365mb.h | 8 ++ drivers/net/dsa/realtek/rtl8365mb_main.c | 4 + drivers/net/dsa/realtek/rtl8365mb_vlan.c | 101 +++++++++++++++++++++-- drivers/net/dsa/realtek/rtl8365mb_vlan.h | 6 ++ 4 files changed, 111 insertions(+), 8 deletions(-) diff --git a/drivers/net/dsa/realtek/rtl8365mb.h b/drivers/net/dsa/realtek/rtl8365mb.h index be0f49e..c59e657 100644 --- a/drivers/net/dsa/realtek/rtl8365mb.h +++ b/drivers/net/dsa/realtek/rtl8365mb.h @@ -9,6 +9,8 @@ enum rtl8365mb_family { RTL8365MB_FAMILY_D, }; +struct dsa_switch; +struct netlink_ext_ack; struct rtl8365mb_jam_tbl_entry; struct rtl8365mb_vlan4k; @@ -23,6 +25,12 @@ struct rtl8365mb_family_info { struct rtl8365mb_vlan4k *vlan4k); int (*vlan_4k_write)(struct realtek_priv *priv, const struct rtl8365mb_vlan4k *vlan4k); + int (*vlan_port_get_pvid)(struct realtek_priv *priv, int port, + u16 *pvid); + int (*vlan_port_reset_pvid)(struct realtek_priv *priv, int port); + int (*vlan_pvid_port_set)(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack); + int (*vlan_pvid_port_clear)(struct dsa_switch *ds, int port, u16 vid); }; const struct rtl8365mb_family_info * diff --git a/drivers/net/dsa/realtek/rtl8365mb_main.c b/drivers/net/dsa/realtek/rtl8365mb_main.c index d1f1b4a..0aa4d96 100644 --- a/drivers/net/dsa/realtek/rtl8365mb_main.c +++ b/drivers/net/dsa/realtek/rtl8365mb_main.c @@ -765,6 +765,10 @@ static const struct rtl8365mb_family_info rtl8365mb_family_c = { .ext_config_forcemode = rtl8365mb_c_ext_config_forcemode, .vlan_4k_read = rtl8365mb_c_vlan_4k_read, .vlan_4k_write = rtl8365mb_c_vlan_4k_write, + .vlan_port_get_pvid = rtl8365mb_c_vlan_port_get_pvid, + .vlan_port_reset_pvid = rtl8365mb_c_vlan_port_reset_pvid, + .vlan_pvid_port_set = rtl8365mb_c_vlan_pvid_port_set, + .vlan_pvid_port_clear = rtl8365mb_c_vlan_pvid_port_clear, }; /** diff --git a/drivers/net/dsa/realtek/rtl8365mb_vlan.c b/drivers/net/dsa/realtek/rtl8365mb_vlan.c index ca2815b..1463d5f 100644 --- a/drivers/net/dsa/realtek/rtl8365mb_vlan.c +++ b/drivers/net/dsa/realtek/rtl8365mb_vlan.c @@ -864,7 +864,7 @@ static int rtl8365mb_vlan_get_pvid_mc(struct realtek_priv *priv, } /* - * rtl8365mb_vlan_port_get_pvid - Retrieve the port PVID + * rtl8365mb_c_vlan_port_get_pvid - Retrieve the port PVID (family C) * @priv: realtek switch private structure * @port: port index * @pvid: pointer to store the retrieved VLAN ID @@ -874,7 +874,8 @@ static int rtl8365mb_vlan_get_pvid_mc(struct realtek_priv *priv, * Context: Can sleep. Takes and releases &priv->map_lock. * Return: 0 on success or a negative error code on failure. */ -int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid) +int rtl8365mb_c_vlan_port_get_pvid(struct realtek_priv *priv, int port, + u16 *pvid) { struct rtl8365mb_vlanmc vlanmc; u8 vlanmc_idx; @@ -888,6 +889,43 @@ int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid) return 0; } +/* + * rtl8365mb_c_vlan_port_reset_pvid() - Put a port's PVID in its neutral state + * (family C) + * @priv: realtek_priv pointer + * @port: the port number + * + * Family C is left as it was before family D support: its PVID registers are + * not touched at setup, to preserve existing driver behavior. + * + * Return: 0. + */ +int rtl8365mb_c_vlan_port_reset_pvid(struct realtek_priv *priv, int port) +{ + return 0; +} + +/* + * rtl8365mb_vlan_port_get_pvid() - Retrieve the port PVID + * @priv: realtek switch private structure + * @port: port index + * @pvid: pointer to store the retrieved VLAN ID + * + * Returns the port PVID if defined or 0 if not, as implemented by the chip + * family. + * + * Context: Can sleep. Takes and releases &priv->map_lock. + * Return: 0 on success or a negative error code on failure. + */ +int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid) +{ + const struct rtl8365mb_family_info *fi; + + fi = rtl8365mb_get_family_info(priv); + + return fi->vlan_port_get_pvid(priv, port, pvid); +} + /* * rtl8365mb_vlan_port_get_framefilter() - Get the ingress frame filtering mode * for a port @@ -950,8 +988,8 @@ rtl8365mb_vlan_port_set_framefilter(struct realtek_priv *priv, } /* - * rtl8365mb_vlan_pvid_port_set() - Configure a port's PVID and associated - * VLANMC entry + * rtl8365mb_c_vlan_pvid_port_set() - Configure a port's PVID and associated + * VLANMC entry (family C) * @ds: dsa switch instance * @port: port index * @vid: target VID @@ -965,8 +1003,8 @@ rtl8365mb_vlan_port_set_framefilter(struct realtek_priv *priv, * Takes and releases &priv->map_lock. * Return: 0 on success, or a negative error code on failure. */ -int rtl8365mb_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, - struct netlink_ext_ack *extack) +int rtl8365mb_c_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack) { enum rtl8365mb_frame_ingress accepted_frame, prev_accepted_frame; struct realtek_priv *priv = ds->priv; @@ -1058,7 +1096,32 @@ undo_vlan_mc_port_set: } /* - * rtl8365mb_vlan_pvid_port_clear() - Remove a port's PVID configuration + * rtl8365mb_vlan_pvid_port_set() - Configure a port's PVID + * @ds: dsa switch instance + * @port: port index + * @vid: target VID + * @extack: netlink extended ACK for error reporting + * + * Configures the PVID as implemented by the chip family. + * + * Context: Can sleep. Must be called with &priv->vlan_lock held. + * Takes and releases &priv->map_lock. + * Return: 0 on success, or a negative error code on failure. + */ +int rtl8365mb_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack) +{ + const struct rtl8365mb_family_info *fi; + struct realtek_priv *priv = ds->priv; + + fi = rtl8365mb_get_family_info(priv); + + return fi->vlan_pvid_port_set(ds, port, vid, extack); +} + +/* + * rtl8365mb_c_vlan_pvid_port_clear() - Remove a port's PVID configuration + * (family C) * @ds: dsa switch instance * @port: port index * @vid: VLAN VID for PVID @@ -1070,7 +1133,7 @@ undo_vlan_mc_port_set: * Takes and releases &priv->map_lock. * Return: 0 on success, or a negative error code on failure. */ -int rtl8365mb_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid) +int rtl8365mb_c_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid) { enum rtl8365mb_frame_ingress accepted_frame, prev_accepted_frame; struct realtek_priv *priv = ds->priv; @@ -1143,3 +1206,25 @@ undo_set_framefilter: return ret; } + +/* + * rtl8365mb_vlan_pvid_port_clear() - Remove a port's PVID configuration + * @ds: dsa switch instance + * @port: port index + * @vid: VLAN VID for PVID + * + * Removes the PVID as implemented by the chip family. + * + * Context: Can sleep. Must be called with &priv->vlan_lock held. + * Takes and releases &priv->map_lock. + * Return: 0 on success, or a negative error code on failure. + */ +int rtl8365mb_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid) +{ + const struct rtl8365mb_family_info *fi; + struct realtek_priv *priv = ds->priv; + + fi = rtl8365mb_get_family_info(priv); + + return fi->vlan_pvid_port_clear(ds, port, vid); +} diff --git a/drivers/net/dsa/realtek/rtl8365mb_vlan.h b/drivers/net/dsa/realtek/rtl8365mb_vlan.h index 625d4c1..62ee59c 100644 --- a/drivers/net/dsa/realtek/rtl8365mb_vlan.h +++ b/drivers/net/dsa/realtek/rtl8365mb_vlan.h @@ -28,6 +28,12 @@ int rtl8365mb_d_vlan_4k_read(struct realtek_priv *priv, u16 vid, struct rtl8365mb_vlan4k *vlan4k); int rtl8365mb_d_vlan_4k_write(struct realtek_priv *priv, const struct rtl8365mb_vlan4k *vlan4k); +int rtl8365mb_c_vlan_port_get_pvid(struct realtek_priv *priv, int port, + u16 *pvid); +int rtl8365mb_c_vlan_port_reset_pvid(struct realtek_priv *priv, int port); +int rtl8365mb_c_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack); +int rtl8365mb_c_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid); int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid); -- 2.53.0