Skip to content

Commit a587a84

Browse files
Sven AuhagenPaolo Abeni
authored andcommitted
net: mvpp2: parser fix QinQ
The mvpp2 parser entry for QinQ has the inner and outer VLAN in the wrong order. Fix the problem by swapping them. Fixes: 3f51850 ("ethernet: Add new driver for Marvell Armada 375 network unit") Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de> Reviewed-by: Marcin Wojtas <mw@semihalf.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 9a251ca commit a587a84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,8 @@ static int mvpp2_prs_vlan_init(struct platform_device *pdev, struct mvpp2 *priv)
15391539
if (!priv->prs_double_vlans)
15401540
return -ENOMEM;
15411541

1542-
/* Double VLAN: 0x8100, 0x88A8 */
1543-
err = mvpp2_prs_double_vlan_add(priv, ETH_P_8021Q, ETH_P_8021AD,
1542+
/* Double VLAN: 0x88A8, 0x8100 */
1543+
err = mvpp2_prs_double_vlan_add(priv, ETH_P_8021AD, ETH_P_8021Q,
15441544
MVPP2_PRS_PORT_MASK);
15451545
if (err)
15461546
return err;

0 commit comments

Comments
 (0)