net: ethernet: ti: cpsw: add missed RX_CTAG feature for second slave
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 27 Jul 2018 16:54:39 +0000 (19:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 19:51:31 +0000 (12:51 -0700)
Seems it was missed while adding for first net dev in dual-emac mode.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index 171abcfb618408a9a19ddf809056813605542045..1b54c26c2bec15204b8acf4630ace9f445d0af87 100644 (file)
@@ -3287,7 +3287,7 @@ static int cpsw_probe_dual_emac(struct cpsw_priv *priv)
 
        priv_sl2->emac_port = 1;
        cpsw->slaves[1].ndev = ndev;
-       ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
+       ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_HW_VLAN_CTAG_RX;
 
        ndev->netdev_ops = &cpsw_netdev_ops;
        ndev->ethtool_ops = &cpsw_ethtool_ops;