All of lore.kernel.org
 help / color / mirror / Atom feed
From: "G, GurucharanX" <gurucharanx.g@intel.com>
To: "Gerasymenko, Anatolii" <anatolii.gerasymenko@intel.com>,
	"intel-wired-lan@lists.osuosl.org"
	<intel-wired-lan@lists.osuosl.org>
Cc: "Gerasymenko, Anatolii" <anatolii.gerasymenko@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH net-next v4 2/2] ice: Implement FCS/CRC and VLAN stripping co-existence policy
Date: Thu, 4 Aug 2022 17:21:55 +0000	[thread overview]
Message-ID: <BYAPR11MB33673F550DAB335594FCB075FC9F9@BYAPR11MB3367.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20220727072406.597424-3-anatolii.gerasymenko@intel.com>



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Anatolii Gerasymenko
> Sent: Wednesday, July 27, 2022 12:54 PM
> To: intel-wired-lan@lists.osuosl.org
> Cc: Gerasymenko, Anatolii <anatolii.gerasymenko@intel.com>
> Subject: [Intel-wired-lan] [PATCH net-next v4 2/2] ice: Implement FCS/CRC
> and VLAN stripping co-existence policy
> 
> Make sure that only the valid combinations of FCS/CRC stripping and VLAN
> stripping offloads are allowed.
> 
> You cannot have FCS/CRC stripping disabled while VLAN stripping is enabled -
> this breaks the correctness of the FCS/CRC.
> 
> If administrator tries to enable VLAN stripping when FCS/CRC stripping is
> disabled, the request should be rejected.
> 
> If administrator tries to disable FCS/CRC stripping when VLAN stripping is
> enabled, the request should be rejected if VLANs are configured. If there is
> no VLAN configured, then both FCS/CRC and VLAN stripping should be
> disabled.
> 
> Testing Hints:
> The default settings after driver load are:
> - VLAN C-Tag offloads are enabled
> - VLAN S-Tag offloads are disabled
> - FCS/CRC stripping is enabled
> 
> Restore the default settings before each test with the command:
> ethtool -K eth0 rx-fcs off rxvlan on txvlan on rx-vlan-stag-hw-parse off tx-
> vlan-stag-hw-insert off
> 
> Test 1:
> Disable FCS/CRC and VLAN stripping:
> ethtool -K eth0 rx-fcs on rxvlan off
> Try to enable VLAN stripping:
> ethtool -K eth0 rxvlan on
> 
> Expected: VLAN stripping request is rejected
> 
> Test 2:
> Try to disable FCS/CRC stripping:
> ethtool -K eth0 rx-fcs on
> 
> Expected: VLAN stripping is also disabled, as there are no VLAN configured
> 
> Test 3:
> Add a VLAN:
> ip link add link eth0 eth0.42 type vlan id 42 ip link set eth0 up Try to disable
> FCS/CRC stripping:
> ethtool -K eth0 rx-fcs on
> 
> Expected: FCS/CRC stripping request is rejected
> 
> Signed-off-by: Anatolii Gerasymenko <anatolii.gerasymenko@intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_main.c | 25
> +++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 

Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

      reply	other threads:[~2022-08-04 17:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-27  7:24 [Intel-wired-lan] [PATCH net-next v4 0/2] ice: FCS/CRC stripping control Anatolii Gerasymenko
2022-07-27  7:24 ` [Intel-wired-lan] [PATCH net-next v4 1/2] ice: Implement control of FCS/CRC stripping Anatolii Gerasymenko
2022-08-04 17:24   ` G, GurucharanX
2022-07-27  7:24 ` [Intel-wired-lan] [PATCH net-next v4 2/2] ice: Implement FCS/CRC and VLAN stripping co-existence policy Anatolii Gerasymenko
2022-08-04 17:21   ` G, GurucharanX [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BYAPR11MB33673F550DAB335594FCB075FC9F9@BYAPR11MB3367.namprd11.prod.outlook.com \
    --to=gurucharanx.g@intel.com \
    --cc=anatolii.gerasymenko@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.