netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2][pull request] iavf: fix racing in VLANs
@ 2023-04-04 17:25 Tony Nguyen
  2023-04-04 17:25 ` [PATCH net 1/2] iavf: refactor VLAN filter states Tony Nguyen
  2023-04-04 17:25 ` [PATCH net 2/2] iavf: remove active_cvlans and active_svlans bitmaps Tony Nguyen
  0 siblings, 2 replies; 8+ messages in thread
From: Tony Nguyen @ 2023-04-04 17:25 UTC (permalink / raw)
  To: davem, kuba, pabeni, edumazet, netdev; +Cc: Tony Nguyen, ahmed.zaki

Ahmed Zaki says:

This patchset mainly fixes a racing issue in the iavf where the number of
VLANs in the vlan_filter_list might be more than the PF limit. To fix that,
we get rid of the cvlans and svlans bitmaps and keep all the required info 
in the list.

The second patch adds two new states that are needed so that we keep the 
VLAN info while the interface goes DOWN:
    -- DISABLE    (notify PF, but keep the filter in the list)
    -- INACTIVE   (dev is DOWN, filter is removed from PF)

Finally, the current code keeps each state in a separate bit field, which
is error prone. The first patch refactors that by replacing all bits with
a single enum. The changes are minimal where each bit change is replaced
with the new state value.

The following are changes since commit 218c597325f4faf7b7a6049233a30d7842b5b2dc:
  net: stmmac: fix up RX flow hash indirection table when setting channels
and are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 40GbE

Ahmed Zaki (2):
  iavf: refactor VLAN filter states
  iavf: remove active_cvlans and active_svlans bitmaps

 drivers/net/ethernet/intel/iavf/iavf.h        | 20 +++---
 drivers/net/ethernet/intel/iavf/iavf_main.c   | 44 +++++-------
 .../net/ethernet/intel/iavf/iavf_virtchnl.c   | 68 ++++++++++---------
 3 files changed, 66 insertions(+), 66 deletions(-)

-- 
2.38.1


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

end of thread, other threads:[~2023-04-06 20:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-04 17:25 [PATCH net 0/2][pull request] iavf: fix racing in VLANs Tony Nguyen
2023-04-04 17:25 ` [PATCH net 1/2] iavf: refactor VLAN filter states Tony Nguyen
2023-04-06  0:15   ` Jakub Kicinski
2023-04-06  0:50     ` Ahmed Zaki
2023-04-06  0:59       ` Jakub Kicinski
2023-04-06 18:55         ` Ahmed Zaki
2023-04-06 20:04           ` Jakub Kicinski
2023-04-04 17:25 ` [PATCH net 2/2] iavf: remove active_cvlans and active_svlans bitmaps 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).