* [PATCH v1 4/8] drivers: net: dwmac: Add use_hw_vlan setting
@ 2023-03-30 7:03 Boon Khai Ng
2023-03-30 17:24 ` Please ignore this review, send out by accident Boon Khai Ng
0 siblings, 1 reply; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 7:03 UTC (permalink / raw)
To: David S . Miller; +Cc: linux-kernel, Mun Yew Tham, Tien Sung Ang, Boon Khai Ng
This is to handle the use_hw_vlan setting at dwmac-socfpga
level.
Signed-off-by: Boon Khai Ng <boon.khai.ng@intel.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index 067a40fe0a23..26da3a9da345 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -537,6 +537,12 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)
plat->has_xgmac = 1;
plat->pmt = 1;
plat->tso_en = of_property_read_bool(np, "snps,tso");
+
+ /* Rx VLAN HW Stripping */
+ if (of_property_read_bool(np, "snps,rx-vlan-offload")) {
+ dev_info(&pdev->dev, "RX VLAN HW Stripping\n");
+ plat->use_hw_vlan = true;
+ }
}
dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*dma_cfg),
--
2.25.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:03 [PATCH v1 4/8] drivers: net: dwmac: Add use_hw_vlan setting Boon Khai Ng
@ 2023-03-30 17:24 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:24 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:04 [PATCH v1 8/8] net: stmmac: Add option for VLAN filter fail queue enable Boon Khai Ng
@ 2023-03-30 17:25 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:25 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:04 [PATCH v1 7/8] net: stmmac: Add Double VLAN handling for VLAN Rx filtering Boon Khai Ng
@ 2023-03-30 17:25 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:25 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:03 [PATCH v1 6/8] net: stmmac: Add support for VLAN promiscuous mode Boon Khai Ng
@ 2023-03-30 17:25 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:25 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:03 [PATCH v1 5/8] net: stmmac: Add support for VLAN Rx filtering Boon Khai Ng
@ 2023-03-30 17:24 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:24 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:03 [PATCH v1 3/8] drivers: net: stmmac: Add support for HW-accelerated VLAN Stripping Boon Khai Ng
@ 2023-03-30 17:24 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:24 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:03 [PATCH v1 2/8] drivers: net: stmmac_main: fix vlan toggle option Boon Khai Ng
@ 2023-03-30 17:24 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:24 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:02 [PATCH v1 1/8] drivers: net: stmmac_main: Add support for HW-accelerated VLAN Stripping Boon Khai Ng
@ 2023-03-30 17:23 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:23 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Please ignore this review, send out by accident.
2023-03-30 7:02 [PATCH v1 0/8] drivers: net: stmicro: Add VLAN support Boon Khai Ng
@ 2023-03-30 17:20 ` Boon Khai Ng
0 siblings, 0 replies; 10+ messages in thread
From: Boon Khai Ng @ 2023-03-30 17:20 UTC (permalink / raw)
To: boon.khai.ng; +Cc: davem, linux-kernel, mun.yew.tham, tien.sung.ang
My appologies for sending out this review by accident, this is meant for internal reivew,
kindly ignore and close this thread. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-03-30 17:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30 7:03 [PATCH v1 4/8] drivers: net: dwmac: Add use_hw_vlan setting Boon Khai Ng
2023-03-30 17:24 ` Please ignore this review, send out by accident Boon Khai Ng
-- strict thread matches above, loose matches on Subject: below --
2023-03-30 7:04 [PATCH v1 8/8] net: stmmac: Add option for VLAN filter fail queue enable Boon Khai Ng
2023-03-30 17:25 ` Please ignore this review, send out by accident Boon Khai Ng
2023-03-30 7:04 [PATCH v1 7/8] net: stmmac: Add Double VLAN handling for VLAN Rx filtering Boon Khai Ng
2023-03-30 17:25 ` Please ignore this review, send out by accident Boon Khai Ng
2023-03-30 7:03 [PATCH v1 6/8] net: stmmac: Add support for VLAN promiscuous mode Boon Khai Ng
2023-03-30 17:25 ` Please ignore this review, send out by accident Boon Khai Ng
2023-03-30 7:03 [PATCH v1 5/8] net: stmmac: Add support for VLAN Rx filtering Boon Khai Ng
2023-03-30 17:24 ` Please ignore this review, send out by accident Boon Khai Ng
2023-03-30 7:03 [PATCH v1 3/8] drivers: net: stmmac: Add support for HW-accelerated VLAN Stripping Boon Khai Ng
2023-03-30 17:24 ` Please ignore this review, send out by accident Boon Khai Ng
2023-03-30 7:03 [PATCH v1 2/8] drivers: net: stmmac_main: fix vlan toggle option Boon Khai Ng
2023-03-30 17:24 ` Please ignore this review, send out by accident Boon Khai Ng
2023-03-30 7:02 [PATCH v1 1/8] drivers: net: stmmac_main: Add support for HW-accelerated VLAN Stripping Boon Khai Ng
2023-03-30 17:23 ` Please ignore this review, send out by accident Boon Khai Ng
2023-03-30 7:02 [PATCH v1 0/8] drivers: net: stmicro: Add VLAN support Boon Khai Ng
2023-03-30 17:20 ` Please ignore this review, send out by accident Boon Khai Ng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®