[RFC PATCH 1/3] ftgmac: Include NETIF_F_HW_VLAN_CTAG_FILTER in features
Joel Stanley
joel at jms.id.au
Thu Aug 10 17:49:41 AEST 2017
On Wed, Aug 9, 2017 at 6:24 PM, Samuel Mendoza-Jonas
<sam at mendozajonas.com> wrote:
> This is required for the VLAN core to call the add/kill callback for
> VLAN IDs.
>
> Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
> ---
> drivers/net/ethernet/faraday/ftgmac100.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c
> index 33b5c8eb9961..7c4d772287c7 100644
> --- a/drivers/net/ethernet/faraday/ftgmac100.c
> +++ b/drivers/net/ethernet/faraday/ftgmac100.c
> @@ -1837,6 +1837,9 @@ static int ftgmac100_probe(struct platform_device *pdev)
> NETIF_F_GRO | NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_RX |
> NETIF_F_HW_VLAN_CTAG_TX;
>
> + if (priv->use_ncsi)
> + netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER;
I'm a VLAN noob. Why is this conditional on ncsi?
Can the ftgmac100 support vlan with a directly attached PHY?
Cheers,
Joel
More information about the openbmc
mailing list