|
@@ -1623,6 +1623,8 @@ static const struct net_device_ops ftgmac100_netdev_ops = {
|
|
#ifdef CONFIG_NET_POLL_CONTROLLER
|
|
#ifdef CONFIG_NET_POLL_CONTROLLER
|
|
.ndo_poll_controller = ftgmac100_poll_controller,
|
|
.ndo_poll_controller = ftgmac100_poll_controller,
|
|
#endif
|
|
#endif
|
|
|
|
+ .ndo_vlan_rx_add_vid = ncsi_vlan_rx_add_vid,
|
|
|
|
+ .ndo_vlan_rx_kill_vid = ncsi_vlan_rx_kill_vid,
|
|
};
|
|
};
|
|
|
|
|
|
static int ftgmac100_setup_mdio(struct net_device *netdev)
|
|
static int ftgmac100_setup_mdio(struct net_device *netdev)
|
|
@@ -1837,6 +1839,9 @@ static int ftgmac100_probe(struct platform_device *pdev)
|
|
NETIF_F_GRO | NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_RX |
|
|
NETIF_F_GRO | NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_RX |
|
|
NETIF_F_HW_VLAN_CTAG_TX;
|
|
NETIF_F_HW_VLAN_CTAG_TX;
|
|
|
|
|
|
|
|
+ if (priv->use_ncsi)
|
|
|
|
+ netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER;
|
|
|
|
+
|
|
/* AST2400 doesn't have working HW checksum generation */
|
|
/* AST2400 doesn't have working HW checksum generation */
|
|
if (np && (of_device_is_compatible(np, "aspeed,ast2400-mac")))
|
|
if (np && (of_device_is_compatible(np, "aspeed,ast2400-mac")))
|
|
netdev->hw_features &= ~NETIF_F_HW_CSUM;
|
|
netdev->hw_features &= ~NETIF_F_HW_CSUM;
|