Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1709287

[PATCH 1/3] ftgmac: Include NETIF_F_HW_VLAN_CTAG_FILTER in features

From Samuel Mendoza-Jonas <sam@mendozajonas.com>
Newsgroups linux.kernel
Subject [PATCH 1/3] ftgmac: Include NETIF_F_HW_VLAN_CTAG_FILTER in features
Date 2017-08-11 08:30 +0200
Message-ID <udbCi-8qm-7@gated-at.bofh.it> (permalink)
References <udbCi-8qm-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This is required for the VLAN core to call the add/kill callback for
VLAN IDs. 'ftgmac100' already supports VLAN tagging but this flag lets
the network stack know that we want to be notified of VLAN tags being
added or removed when we have NCSI support.

Signed-off-by: Samuel Mendoza-Jonas <sam@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;
+
 	/* AST2400  doesn't have working HW checksum generation */
 	if (np && (of_device_is_compatible(np, "aspeed,ast2400-mac")))
 		netdev->hw_features &= ~NETIF_F_HW_CSUM;
-- 
2.14.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] NCSI VLAN Filtering Support Samuel Mendoza-Jonas <sam@mendozajonas.com> - 2017-08-11 08:30 +0200
  [PATCH 1/3] ftgmac: Include NETIF_F_HW_VLAN_CTAG_FILTER in features Samuel Mendoza-Jonas <sam@mendozajonas.com> - 2017-08-11 08:30 +0200
  [PATCH 2/3] net/ncsi: Fix several packet definitions Samuel Mendoza-Jonas <sam@mendozajonas.com> - 2017-08-11 08:30 +0200
  [PATCH 3/3] net/ncsi: Configure VLAN tag filter Samuel Mendoza-Jonas <sam@mendozajonas.com> - 2017-08-11 08:30 +0200
  Re: [PATCH 0/3] NCSI VLAN Filtering Support David Miller <davem@davemloft.net> - 2017-08-11 23:50 +0200

csiph-web