From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=66.163.189.147 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796069476; b=ajezKQG2Bs1hLv3XuPWfwPbjiNceyjUC7//kRpH9wGWXmY+GHZxoEdfodJPaMdPNyDCr hiF8+QFDAyxRfGFzvwR/O3y4JhXBJelVvm1qPs9yfbic1awhHnYEv7/1818/4suheGYjN QqBW4S6yWVp36PZ/eQK26GOAUTz3gVnshpHxOYywEmwelVXjU1b1xWi0VppHP/pWkEE1O nAgtXYvJhkPa2QaxlNZWeebX+ao+2LkMZs/C9yaDscS0elG1+zv6uegnPj3oO1tHoqBl3 FjhFzd1yqc1JE+rKl6oTV47gEG2m3XDBvE7rHeGRznUpZzr4yoMWnDUuX9z1I6oI6Ow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796069476; 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=EaJKILNa8S9tVWvy4MyWNm5EqCrcJ7MBH+TV12PwZ3o=; b=iCMnpyelb9uAXyAChc5J6Ng8je8mKocFNT7hayaF4QYrqyo3L7XEAyS8kVkHRHTQzrhp mCVqmkBS21MnGGAwYFn5lkrirL3rZAVvslJZbsfHUaLB5Uu9ihSw3JJQd2Cw3Dw2LLd0h 3+Ko+YE7Zqf+c8P8XvGt1+E0GJO26iIR0P0vavBxB4dWev710B2WOH9F5ot1MNojJC8rr xYncFEuFNrrV5zkpUImYGHwtelR3eZf01/ghor/Jh/sDibxB2kOZI+6Kl/Y0TfX8EHk5g dZDwnRjfmA0qC8ZVL3ovXwHE8OcBOFeKbhvspajzaVGYH8cupatu53oRN9CEXRqEs/A== 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=UpCj7YJf; arc=none smtp.remote-ip=66.163.189.147 Received: from sonic314-21.consmr.mail.ne1.yahoo.com (sonic314-21.consmr.mail.ne1.yahoo.com [66.163.189.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 0DAAF606A32C for ; Mon, 30 Nov 2026 20:11:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0DAAF606A32C 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=UpCj7YJf DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1796069474; bh=EaJKILNa8S9tVWvy4MyWNm5EqCrcJ7MBH+TV12PwZ3o=; h=Date:Subject:To:References:In-Reply-To:From:Content-Type:From:Subject:Reply-To:Content-Type; b=UpCj7YJfJ4PMDiWvknrLfIg/IoGC6yqUCCY9MUw0DcmyuCoe0cuYVoDUMmC51Geb1/Ei4PEzpV7JZD7U6RAZi0v23DfqkK48wQNDkO5Ahd/B8l8MU2IdI+5v9UU0R9xkBz2V6T4vsMzi6uzCEYSf1srNAZmZgA84bgfg2TdK7S9a1OiuycInQKWAME6J8M1ZW710oRhIn39tPwTiDFI+4O3bDJlkzW+pBi0Cv8OvQqOIZnpSrIe1XhbsIKxdKqtrtx0KcW3aaTGs8sKCgXXwK3gCHmIVEz2f8DJuf8WDwuvtP3A4nF2S05X3E04y/peRfem00dr7RtiX+CPcg2V8bw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1796069474; bh=M5tZgBIjUjkqPmUuUDIor+QQUbRL+EBlRSpo5vh60Br=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=d783kTMFj/FdFhva/w2igrYugVSx77VpjV3IOW2d1bUGw/GUpoN9cgKDQhfv3Xv4QGXDktWEwMNrAYMOqZLprjYEv6zkL5ONi1+miKHIqMuVF1j4bmz9HEW8ZclDh2bP0KiJ770e765ylwIjInEC2TmoreVBGxwewN3NwCeIXZdaIPgKWXUPVQu/qtkWEdW4+T8GD2l8jQkxCnDF0Y4B5EY8vLvzu88X3gfKtKsFqrFLOQwyhxU5ZBJO1bvdcl92MDmTFwy6fr4EIaReL8V5oje/fQO0HSi24tpDQIQq6UWln8YJlXwcCyHcrY1wwlXOMdZZcN8LLHksK7j82MREjw== X-YMail-OSG: wM.TZloVM1mBsiTXluvPs.xSlisVcuo.92gMvtqJHOHFIw1JlzFkqsQXuQMIm5Y 9mB_j3wQa5XF44loAh__dNv17t1O90tAmbnbDSlKBdkqzO8eDNbx.9CxN.cHaRhwtPSP052dxgB6 ceZuGqrV4EmoHMzsCmTjZtKmIkULzd0QPbMdYQfC7aNDcrdYJ88A7vtSype.sEpyKZMH0r8USaor 1UUDLwFsBV4HVuEamVIBUYW4J1DqgbBB_Sk5VFbnF2yGJ0Pic5OMnrq7mx7nmGmlULMHHBfo7.ym ipGYdmIfBdT64j4QDxC6isHTqpT72O3kkLIJUMvo.xDugXkc8a7KMhSIMy5yMnsp83k_DHWjtQ1U IAuGhNQQbI4_wdQe.nfn5yRsi4WlDMpeuSSh_Q2zVOR..7nPNveVGeAqZ8d1rEiNq0bSkojqjjzc XVtAPmy7IfEDuxbrMOtTpRH2T77omGKqv_G4tBS95zV95yi52iXLMUQc0cbcgoNjyAdYjLtFR8.8 zMh17MBPcBLkQg72ZtrHN7kaQ85poryDJhTPSfRdROcgSOA3ORdsJHQ3phvfXP849lv59AGCX..p m.X71wsjY2KA9tRkqlyyIkIzwm08.itACyDnv._I8Yau6GcwkUGpae4dWZzn6GCdfskZTw6mSH6y oyd7QVYi9Em9nKlyCa7OxBvXyhfzWKOIo3jFJhepMlcSglJq8dE1Mwm3YTgGe.pO6Q2USPPZpbGk hXOo4pqy40IO334YC0LRqgKWzNKkQkmbA4mcDkuflDAyHJ5alnbGGerwBq7egTUjdjw65VnMMpG9 OiAzlW0h6uzTc5zGokQHsyB4XaypmJSJcBGqQ5f1WTmJWOanssQQ_4g9pWKmzUzhRzrfgawethsy opbIUzwUf7HMxvlpUSd8Knnc3RPT2f5wrnmWn5AQFQHt5p9DAbu5RQ2s2RndsBaatSMNh.FLP.vO S.nj7IzBflAmImgdawH61cyYvifP88ew6X8SaodvrR1SuvJI2HzlMfnz3JK1vvnZORAqtF3otc1D mHQoDNuq6eD8mewkCy1vqFhLyIQkn4Wbq.n7Q71cKcLpOTrwC35UV6vaPS07Gl0TQJlJZJylye1w rRlfERRg.ivTiYoKZmnUwLlEzwMhNrqXepZM8Hqu7ATyup03bUv.gSNvlA5NAnjFfrIFM1Zc9g2D vcPA_6jMKd6Xl_5f7dzADwL.6df4C72OBd9fDi_e3LhGGRsrVNEnw774OkNy3C53mjUBWzY_1EsN 3OaF6i6C3uLfxxfvaPYTBQSqgLw2.g5.lx5uHBlOVXfYzbqAXS8Y1wezvRgd54E6iPUlbRzE23OF 2UToF5z6R7CBonSsNHEN7ja_fp_5ZJBLOBEzI.A8Qj2kyy.UumTRWrcY4QccCrAGxg86ZG4.t1j6 O5_CR_Ycy6fM1Q1EhVwBSvvVk3GWm459o7SurtNDqkfwa9nLBQr98ydQp52mrQMDuWO3aeNrNbp0 l9p2ZiSwb8flVqaJmAJkcoiZKm1kqSLzgdQSDU_xvvmtp72vTFcp4nD3ZRZ98RB1V0ldchjKbT3g _KidU56sr7XeXPjpwSiLDt3bhDH2l0VVNsM29IVYxk2Q9k5ZyvM58Oyd6ULWN9yhXDc6O8suv854 hPdmF5dgOCFR_B53_ovYyBUfxmtgXca.KWMal.ygYM0xqAZRY7wAsPlK_x634YaHzDdwnj1brExx l5AFWCYkJwRI.burq4KXUsh_dvsbl3F0Ty52tYFo7TrZzR12qiHU5gf3dtntz0kp_kUIV3qEcZbH loRLssp8sThBNGICq_7phpLbXy_tjc5IS1TNxGFBHJIcAFy3qwW2jdfzQezs9bsr6wfZ_6WkkXs8 IVTbGk16Fx4Jhm8Of80BVlsE5AyB4pSm_.5R7QhjqgBbmHEkrfhl_jDrbqD_AOd6q.a_i14IjxAk wQ.X_vqa1Rc1mVPMbf6VtTdlwNUqOvINOCjcxYImvCcto2pVvQetCrl1hcU6h5XgDkM83yADmgyn PBO5aMaBcg61NTzfXS5GLUpYt9vZ_VVQLitlc46jO5pYGUx_xm2yupyrN_5OAVRWDFIhgsQYtKxR .nxYm8GQ7AQRv.p_RfWsqGo5tjvvveJnu3FtpQylFygHXfLn3VoELXTzMKTbMEYmMpO09vZ.mg_k u7umx_VtpzKeqNKsLJDJ9XT6l878qE3hcp7BQESDUht.m1eUz0EH8cnSWlVT7TfOGSoPiiH.xfuV _aGuwb6V9BcLyTvt8YrysvAgzstc.onXgcu_KNZf8npGz8ehQ4mxJdc.1kU3GJyj_aAf7LOkzglr 9m.NJHwOCyazocwAqNiFGeE2tvPG4Qq4vOYC0pL8WpnRnJNBohJc- X-Sonic-MF: X-Sonic-ID: 427c18c2-826a-4e84-8582-7ab931b3a6a2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Mon, 30 Nov 2026 20:11:14 +0000 Received: by hermes--production-ir2-7c4859dc89-8w8b5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a04af09d143f3746682704c0d71c993a; Mon, 30 Nov 2026 20:11:11 +0000 (UTC) Message-ID: Date: Mon, 30 Nov 2026 21:11:07 +0100 X-Mailing-List: linux-kernel@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 v17 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: <236d002f-5ca5-4f12-bf5b-0ed6442e5c9a@yahoo.com> Content-Language: pl In-Reply-To: <236d002f-5ca5-4f12-bf5b-0ed6442e5c9a@yahoo.com> From: Mieczyslaw Nalewaj Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.27100 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 208d7b9..a521eb6 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 2f2a1b2..c3c55b8 100644 --- a/drivers/net/dsa/realtek/rtl8365mb_vlan.c +++ b/drivers/net/dsa/realtek/rtl8365mb_vlan.c @@ -858,7 +858,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 @@ -868,7 +868,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; @@ -882,6 +883,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 @@ -944,8 +982,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 @@ -959,8 +997,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; @@ -1052,7 +1090,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 @@ -1064,7 +1127,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; @@ -1137,3 +1200,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 f6230eb..b5b56ae 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