* [Intel-wired-lan] [PATCH net-next] ice: Add support for changing MTU on PR in switchdev mode
@ 2021-10-18 11:30 Marcin Szycik
2021-10-25 5:16 ` Penigalapati, Sandeep
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Szycik @ 2021-10-18 11:30 UTC (permalink / raw)
To: intel-wired-lan
This change adds support for changing MTU on port representor in
switchdev mode, by setting the min/max MTU values on port representor
netdev. Before it was possible to change the MTU only in a limited,
default range (68-1500).
Signed-off-by: Marcin Szycik <marcin.szycik@intel.com>
---
drivers/net/ethernet/intel/ice/ice_repr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/intel/ice/ice_repr.c b/drivers/net/ethernet/intel/ice/ice_repr.c
index c49eeea7cb67..af8e6ef5f571 100644
--- a/drivers/net/ethernet/intel/ice/ice_repr.c
+++ b/drivers/net/ethernet/intel/ice/ice_repr.c
@@ -267,6 +267,9 @@ static int ice_repr_add(struct ice_vf *vf)
if (err)
goto err_devlink;
+ repr->netdev->min_mtu = ETH_MIN_MTU;
+ repr->netdev->max_mtu = ICE_MAX_MTU;
+
err = ice_repr_reg_netdev(repr->netdev);
if (err)
goto err_netdev;
--
2.31.1
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Intel-wired-lan] [PATCH net-next] ice: Add support for changing MTU on PR in switchdev mode
2021-10-18 11:30 [Intel-wired-lan] [PATCH net-next] ice: Add support for changing MTU on PR in switchdev mode Marcin Szycik
@ 2021-10-25 5:16 ` Penigalapati, Sandeep
0 siblings, 0 replies; 2+ messages in thread
From: Penigalapati, Sandeep @ 2021-10-25 5:16 UTC (permalink / raw)
To: intel-wired-lan
>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
>Marcin Szycik
>Sent: Monday, October 18, 2021 5:01 PM
To: intel-wired-lan@lists.osuosl.org
>Subject: [Intel-wired-lan] [PATCH net-next] ice: Add support for changing MTU
>on PR in switchdev mode
>
>This change adds support for changing MTU on port representor in switchdev
>mode, by setting the min/max MTU values on port representor netdev. Before
>it was possible to change the MTU only in a limited, default range (68-1500).
>
>Signed-off-by: Marcin Szycik <marcin.szycik@intel.com>
>---
> drivers/net/ethernet/intel/ice/ice_repr.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-25 5:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-18 11:30 [Intel-wired-lan] [PATCH net-next] ice: Add support for changing MTU on PR in switchdev mode Marcin Szycik
2021-10-25 5:16 ` Penigalapati, Sandeep
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox