* Re: [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-13 9:35 [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default Rui Salvaterra
@ 2025-03-18 14:48 ` Simon Horman
2025-03-18 15:14 ` [Intel-wired-lan] " Lifshits, Vitaly
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Simon Horman @ 2025-03-18 14:48 UTC (permalink / raw)
To: Rui Salvaterra
Cc: anthony.l.nguyen, przemyslaw.kitszel, edumazet, kuba,
intel-wired-lan, netdev, linux-kernel
On Thu, Mar 13, 2025 at 09:35:22AM +0000, Rui Salvaterra wrote:
> This is enabled by default in other Intel drivers I've checked (e1000, e1000e,
> iavf, igb and ice). Fixes an out-of-the-box performance issue when running
> OpenWrt on typical mini-PCs with igc-supported Ethernet controllers and 802.1Q
> VLAN configurations, as ethtool isn't part of the default packages and sane
> defaults are expected.
>
> In my specific case, with an Intel N100-based machine with four I226-V Ethernet
> controllers, my upload performance increased from under 30 Mb/s to the expected
> ~1 Gb/s.
>
> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Thanks,
this seems entirely reasonable to me.
Reviewed-by: Simon Horman <horms@kernel.org>
Link to v1 for reference:
https://lore.kernel.org/all/20250307110339.13788-1-rsalvaterra@gmail.com/
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [Intel-wired-lan] [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-13 9:35 [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default Rui Salvaterra
2025-03-18 14:48 ` Simon Horman
@ 2025-03-18 15:14 ` Lifshits, Vitaly
2025-03-19 10:19 ` Kurt Kanzenbach
2025-03-27 12:53 ` [Intel-wired-lan] " Mor Bar-Gabay
3 siblings, 0 replies; 9+ messages in thread
From: Lifshits, Vitaly @ 2025-03-18 15:14 UTC (permalink / raw)
To: Rui Salvaterra, anthony.l.nguyen, przemyslaw.kitszel
Cc: edumazet, kuba, intel-wired-lan, netdev, linux-kernel
On 3/13/2025 11:35 AM, Rui Salvaterra wrote:
> This is enabled by default in other Intel drivers I've checked (e1000, e1000e,
> iavf, igb and ice). Fixes an out-of-the-box performance issue when running
> OpenWrt on typical mini-PCs with igc-supported Ethernet controllers and 802.1Q
> VLAN configurations, as ethtool isn't part of the default packages and sane
> defaults are expected.
>
> In my specific case, with an Intel N100-based machine with four I226-V Ethernet
> controllers, my upload performance increased from under 30 Mb/s to the expected
> ~1 Gb/s.
>
> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
> ---
> drivers/net/ethernet/intel/igc/igc_main.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
> index 84307bb7313e..1cb9ce8aa743 100644
> --- a/drivers/net/ethernet/intel/igc/igc_main.c
> +++ b/drivers/net/ethernet/intel/igc/igc_main.c
> @@ -7049,6 +7049,9 @@ static int igc_probe(struct pci_dev *pdev,
> netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
> NETDEV_XDP_ACT_XSK_ZEROCOPY;
>
> + /* enable HW vlan tag insertion/stripping by default */
> + netdev->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX;
> +
> /* MTU range: 68 - 9216 */
> netdev->min_mtu = ETH_MIN_MTU;
> netdev->max_mtu = MAX_STD_JUMBO_FRAME_SIZE;
>
Reviewed-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-13 9:35 [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default Rui Salvaterra
2025-03-18 14:48 ` Simon Horman
2025-03-18 15:14 ` [Intel-wired-lan] " Lifshits, Vitaly
@ 2025-03-19 10:19 ` Kurt Kanzenbach
2025-03-27 12:53 ` [Intel-wired-lan] " Mor Bar-Gabay
3 siblings, 0 replies; 9+ messages in thread
From: Kurt Kanzenbach @ 2025-03-19 10:19 UTC (permalink / raw)
To: Rui Salvaterra, anthony.l.nguyen, przemyslaw.kitszel
Cc: edumazet, kuba, intel-wired-lan, netdev, linux-kernel,
Rui Salvaterra
[-- Attachment #1: Type: text/plain, Size: 692 bytes --]
On Thu Mar 13 2025, Rui Salvaterra wrote:
> This is enabled by default in other Intel drivers I've checked (e1000, e1000e,
> iavf, igb and ice). Fixes an out-of-the-box performance issue when running
> OpenWrt on typical mini-PCs with igc-supported Ethernet controllers and 802.1Q
> VLAN configurations, as ethtool isn't part of the default packages and sane
> defaults are expected.
>
> In my specific case, with an Intel N100-based machine with four I226-V Ethernet
> controllers, my upload performance increased from under 30 Mb/s to the expected
> ~1 Gb/s.
>
> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Great, thanks a lot.
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-13 9:35 [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default Rui Salvaterra
` (2 preceding siblings ...)
2025-03-19 10:19 ` Kurt Kanzenbach
@ 2025-03-27 12:53 ` Mor Bar-Gabay
2025-03-28 15:01 ` Rui Salvaterra
3 siblings, 1 reply; 9+ messages in thread
From: Mor Bar-Gabay @ 2025-03-27 12:53 UTC (permalink / raw)
To: Rui Salvaterra, anthony.l.nguyen, przemyslaw.kitszel
Cc: edumazet, kuba, intel-wired-lan, netdev, linux-kernel
On 13/03/2025 11:35, Rui Salvaterra wrote:
> This is enabled by default in other Intel drivers I've checked (e1000, e1000e,
> iavf, igb and ice). Fixes an out-of-the-box performance issue when running
> OpenWrt on typical mini-PCs with igc-supported Ethernet controllers and 802.1Q
> VLAN configurations, as ethtool isn't part of the default packages and sane
> defaults are expected.
>
> In my specific case, with an Intel N100-based machine with four I226-V Ethernet
> controllers, my upload performance increased from under 30 Mb/s to the expected
> ~1 Gb/s.
>
> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
> Reviewed-by: Simon Horman <horms@kernel.org>
> Reviewed-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
> Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
> ---
> drivers/net/ethernet/intel/igc/igc_main.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [Intel-wired-lan] [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-27 12:53 ` [Intel-wired-lan] " Mor Bar-Gabay
@ 2025-03-28 15:01 ` Rui Salvaterra
2025-03-28 15:51 ` Tony Nguyen
0 siblings, 1 reply; 9+ messages in thread
From: Rui Salvaterra @ 2025-03-28 15:01 UTC (permalink / raw)
To: Mor Bar-Gabay
Cc: anthony.l.nguyen, przemyslaw.kitszel, edumazet, kuba,
intel-wired-lan, netdev, linux-kernel
Hi again, everyone,
Just a quick question: this is scheduled for 6.16, it's too late for
6.15, correct?
Kind regards,
Rui Salvaterra
On Thu, 27 Mar 2025 at 12:54, Mor Bar-Gabay <morx.bar.gabay@intel.com> wrote:
>
> On 13/03/2025 11:35, Rui Salvaterra wrote:
> > This is enabled by default in other Intel drivers I've checked (e1000, e1000e,
> > iavf, igb and ice). Fixes an out-of-the-box performance issue when running
> > OpenWrt on typical mini-PCs with igc-supported Ethernet controllers and 802.1Q
> > VLAN configurations, as ethtool isn't part of the default packages and sane
> > defaults are expected.
> >
> > In my specific case, with an Intel N100-based machine with four I226-V Ethernet
> > controllers, my upload performance increased from under 30 Mb/s to the expected
> > ~1 Gb/s.
> >
> > Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
> > Reviewed-by: Simon Horman <horms@kernel.org>
> > Reviewed-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
> > Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
> > ---
> > drivers/net/ethernet/intel/igc/igc_main.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-28 15:01 ` Rui Salvaterra
@ 2025-03-28 15:51 ` Tony Nguyen
2025-03-28 16:17 ` Rui Salvaterra
0 siblings, 1 reply; 9+ messages in thread
From: Tony Nguyen @ 2025-03-28 15:51 UTC (permalink / raw)
To: Rui Salvaterra, Mor Bar-Gabay
Cc: przemyslaw.kitszel, edumazet, kuba, intel-wired-lan, netdev,
linux-kernel
On 3/28/2025 8:01 AM, Rui Salvaterra wrote:
> Hi again, everyone,
>
> Just a quick question: this is scheduled for 6.16, it's too late for
> 6.15, correct?
Yes, it will be submitted for 6.16.
Also, please don't top post :)
Thanks,
Tony
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-28 15:51 ` Tony Nguyen
@ 2025-03-28 16:17 ` Rui Salvaterra
2025-04-01 21:22 ` Tony Nguyen
0 siblings, 1 reply; 9+ messages in thread
From: Rui Salvaterra @ 2025-03-28 16:17 UTC (permalink / raw)
To: Tony Nguyen
Cc: Mor Bar-Gabay, przemyslaw.kitszel, edumazet, kuba,
intel-wired-lan, netdev, linux-kernel
Hi again, Tony,
On Fri, 28 Mar 2025 at 15:52, Tony Nguyen <anthony.l.nguyen@intel.com> wrote:
>
> Yes, it will be submitted for 6.16.
>
> Also, please don't top post :)
I almost never do, sorry about that. :)
Would it be too much to ask for this to be backported to stable,
though? I've tested it on the 6.6 and 6.12 series just fine.
Kind regards,
Rui Salvaterra
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] igc: enable HW vlan tag insertion/stripping by default
2025-03-28 16:17 ` Rui Salvaterra
@ 2025-04-01 21:22 ` Tony Nguyen
0 siblings, 0 replies; 9+ messages in thread
From: Tony Nguyen @ 2025-04-01 21:22 UTC (permalink / raw)
To: Rui Salvaterra
Cc: Mor Bar-Gabay, przemyslaw.kitszel, edumazet, kuba,
intel-wired-lan, netdev, linux-kernel
On 3/28/2025 9:17 AM, Rui Salvaterra wrote:
> Would it be too much to ask for this to be backported to stable,
> though? I've tested it on the 6.6 and 6.12 series just fine.
It doesn't seem like a strict bug fix, so I don't think it should go to
net, but we should be able to request backport to stable afterwards.
Thanks,
Tony
^ permalink raw reply [flat|nested] 9+ messages in thread