Skip to content

iavf: clean up procedure for changing interface's MAC address

Piotr Gardocki intel-wired-lan 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 0 repliesSuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iavf: add check for current MAC address in set_mac callbackdrivers/net/ethernet/intel/iavf/iavf_main.c+6 -01 reply
2/2iavf: fix err handling for MAC replacedrivers/net/ethernet/intel/iavf/iavf_main.c+19 -231 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMichal SwiatkowskiRafal Romanowski
1/2R-b T-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Intel-wired-lan] [PATCH iwl-next v4 0/2] iavf: clean up procedure for changing interface's MAC address

This patchset cleans .ndo_set_mac_address callback up in iavf.

The second patch addresses potential issue with iavf_add_filter function failing to add a new MAC filter to the list. However, it does make an assumption that the new MAC address is different than the current one. The first patch protects from this issue by skipping the entire procedure if the MAC address doesn't actually change.

Without these two patches iavf is sending two AdminQ commands to PF driver:
VIRTCHNL_OP_ADD_ETH_ADDR to add new MAC filter and VIRTCHNL_OP_DEL_ETH_ADDR to remove the old one. Even though it does not seem to cause issues, it is very error prone. Skipping these callbacks is more reliable.

v2: added missing Signed-off-by and comma in second patch
v3: fixed malformed second patch
v4: fixes misspelling "cleanup" -> "clean up"

Piotr Gardocki (1):
iavf: add check for current MAC address in set_mac callback

Przemek Kitszel (1):
iavf: fix err handling for MAC replace

 drivers/net/ethernet/intel/iavf/iavf_main.c | 48 +++++++++++----------
 1 file changed, 25 insertions(+), 23 deletions(-)
Signature · 6 lines
2.34.1

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan