intel-wired-lan.lists.osuosl.org archive mirror
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH net v2 0/4] ice: Fixes for double vlan promiscuous mode
@ 2022-08-04 14:20 Grzegorz Siwik
  2022-08-04 14:20 ` [Intel-wired-lan] [PATCH net v2 1/4] ice: Fix double VLAN error when entering promisc mode Grzegorz Siwik
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Grzegorz Siwik @ 2022-08-04 14:20 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: Grzegorz Siwik

This series fixes known issues related to double vlan promiscuous mode.
When at least two interfaces are bonded and a bridge is enabled on the
bond, an error can occur when the bridge is removed and re-added. The
reason for the error is because promiscuous mode was not fully cleared from
the VLAN VSI in the hardware.
Ignore ERR_ALREADY_EXISTS error when setting promiscuous mode.
This fix is needed because the driver could set promiscuous mode
when it still has not cleared properly.
If the requested promiscuous mode setting already exists,
an -EEXIST error message would be printed.
This is incorrect because promiscuous mode is
either on/off and shouldn't print an error when the requested
configuration is already set.
Avoid enabling or disabling vlan 0 when trying to set promiscuous
vlan mode if double vlan mode is enabled. This fix is needed
because the driver tries to add the vlan 0 filter twice (once for
inner and once for outer) when double VLAN mode is enabled.

---
 v2: Fixed error message when setting same promiscuous mode
---
Benjamin Mikailenko (1):
  ice: Ignore error message when setting same promiscuous mode

Grzegorz Siwik (3):
  ice: Fix double VLAN error when entering promisc mode
  ice: Ignore ERR_ALREADY_EXISTS when setting promisc mode
  ice: Fix clearing of promisc mode with bridge over bond

 drivers/net/ethernet/intel/ice/ice_fltr.c   |  8 ++++----
 drivers/net/ethernet/intel/ice/ice_lib.c    |  8 +++++++-
 drivers/net/ethernet/intel/ice/ice_main.c   | 13 ++++++++++++-
 drivers/net/ethernet/intel/ice/ice_switch.c |  9 ++++++++-
 4 files changed, 31 insertions(+), 7 deletions(-)

-- 
1.8.3.1

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-05 16:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04 14:20 [Intel-wired-lan] [PATCH net v2 0/4] ice: Fixes for double vlan promiscuous mode Grzegorz Siwik
2022-08-04 14:20 ` [Intel-wired-lan] [PATCH net v2 1/4] ice: Fix double VLAN error when entering promisc mode Grzegorz Siwik
2022-08-04 14:20 ` [Intel-wired-lan] [PATCH net v2 2/4] ice: Ignore ERR_ALREADY_EXISTS when setting " Grzegorz Siwik
2022-08-05 16:17   ` Tony Nguyen
2022-08-04 14:20 ` [Intel-wired-lan] [PATCH net v2 3/4] ice: Fix clearing of promisc mode with bridge over bond Grzegorz Siwik
2022-08-05 16:20   ` Tony Nguyen
2022-08-04 14:20 ` [Intel-wired-lan] [PATCH net v2 4/4] ice: Ignore error message when setting same promiscuous mode Grzegorz Siwik
2022-08-05 16:24   ` Tony Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).