Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v6 0/7] enic: add V2 VF receive control over MBOX
@ 2026-12-04 15:29 Satish Kharat
  2026-12-04 15:29 ` [PATCH net-next v6 1/7] net: add netif_rx_mode_schedule_update() Satish Kharat
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Satish Kharat @ 2026-12-04 15:29 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Willem de Bruijn
  Cc: netdev, linux-kernel, Sesidhar Baddela, Aravind Dhanasekaran,
	Reese Faucette, Satish Kharat, Stanislav Fomichev

An ENIC V2 VF relies on the PF for its station address and receive
filters. Add VF mailbox support for the station address, secondary address
lists, and packet-filter modes. Serialize VF requests around the single
expected reply slot. PF notifications and their acknowledgments keep
their existing separate path.

Patch 1 adds a netdev helper to restart the bounded receive-mode retry
sequence. Patch 2 establishes VF request ownership. Patches 3 and 4
recover the VF mailbox and validate replies. Patch 5 adds synchronized
publication of driver-selected addresses. Patches 6 and 7 manage the VF
station and administrative MAC policy and receive-filter replay.

The in-tree V2 PF enable path remains dormant. A later PF series must
supply the mailbox and cleanup contracts and register sriov_configure.
This series requires a compatible PF that permits CMD_SRIOV_STATS_GET
for the VF firmware index query. The net-next base contains both
prerequisite commits:

  b3ae89a2e167 ("enic: retain admin-channel DMA until queues stop")
  65230b3ffd75 ("enic: require DEVCMD2 and set the V2 VF mailbox source")

Changes in v6:
- Refresh the net-next base.
- Explain the VF request mutex and existing send-error cleanup.
- Arm RX quarantine for every V2 VF rebuild and invalidate old PF
  registration and link state when replacing the admin channel.
- Remove the unreachable open-time reset fallback and clarify VF and PF
  reset ordering.
- Narrow the capability-version warning to the unsupported-version case.
- Preserve provisioned probe MAC assignment metadata and leave
  perm_addr unset for a generated probe address. Align the temporary
  MAC addresses and exclude ordinary station delete during PCI
  removal.
- Serialize PF-driven MAC writes with sysfs and SIOCGIFHWADDR reads.
- Skip asynchronous receive-filter programming while the datapath is
  closed and replay after a successful internal reopen.

The secondary batches carry no station flag. Both inspected PF
implementations scope the skipped-delete precheck to station operations.
A skipped secondary delete still requires recovery because the removed
address might remain installed.

The cover for v5 was sent in error and withdrawn. v4 is the previous
reviewed posting. Sashiko reported the findings. Codex assisted with
triage, the v6 code changes and changelog, and testing. The focused test
was designed to check concurrent address reads during PF-driven updates.

Link to v4: https://lore.kernel.org/netdev/20261130-b4-enic-sriov-v2-vf-receive-control-v4-0-5858d5a9ecb1@cisco.com/
Link to the v5 withdrawal: https://lore.kernel.org/r/20261201010949.3475009-1-satishkh@cisco.com/

Hardware validation

- On a VIC 14xx adapter with a compatible PF, the v6 VF passed an
  SR-IOV functional run covering VF creation and VFIO passthrough to a
  KVM guest, fixed and delegated MAC policy, VF down/up, guest driver
  unload, and VF teardown. The initial permanent address was preserved
  across live PF reassignment.
- Bidirectional ICMP passed at standard and 1400-byte payload sizes.
  Firmware readback confirmed secondary unicast and multicast filter
  installation and removal.
- Concurrent sysfs and SIOCGIFHWADDR readers returned complete addresses
  throughout 64 live PF MAC changes.

Earlier full-stack runs covered VF recreation, module reload, ring
resizing, and bidirectional ICMP, TCP and UDP, including cross-DUT jumbo
traffic between VIC 14xx and VIC 15xxx adapters. Earlier instrumented
runs covered mailbox recovery, completion cleanup after a failed open,
and reopen after a QP_DISABLE error once both admin queues stopped.

---
Satish Kharat (7):
      net: add netif_rx_mode_schedule_update()
      enic: serialize V2 VF mailbox requests
      enic: recover V2 VF mailbox after request failure
      enic: validate V2 VF configuration replies
      net: add dev_addr_set_sync() for driver address updates
      enic: manage V2 VF station and administrative MAC
      enic: configure V2 VF receive mode over mailbox

 drivers/net/ethernet/cisco/enic/enic.h         |   65 +-
 drivers/net/ethernet/cisco/enic/enic_admin.c   |   39 +-
 drivers/net/ethernet/cisco/enic/enic_dev.c     |   11 +
 drivers/net/ethernet/cisco/enic/enic_dev.h     |    1 +
 drivers/net/ethernet/cisco/enic/enic_ethtool.c |    5 +
 drivers/net/ethernet/cisco/enic/enic_main.c    | 1743 ++++++++++++++++++++++--
 drivers/net/ethernet/cisco/enic/enic_mbox.c    |  753 +++++++++-
 drivers/net/ethernet/cisco/enic/enic_mbox.h    |   84 ++
 drivers/net/ethernet/cisco/enic/enic_rq.c      |   11 +-
 drivers/net/ethernet/cisco/enic/vnic_dev.c     |   21 +-
 drivers/net/ethernet/cisco/enic/vnic_dev.h     |    2 +
 include/linux/netdevice.h                      |    3 +
 net/core/dev_addr_lists.c                      |   21 +
 net/core/dev_api.c                             |   21 +
 14 files changed, 2632 insertions(+), 148 deletions(-)
---
base-commit: ed3135d0881a926de56a7f490dea3d51698ba118
change-id: 20260916-b4-enic-sriov-v2-vf-receive-control-b5c40bdae5b9

Best regards,
--  
Satish Kharat <satishkh@cisco.com>


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

end of thread, other threads:[~2026-12-05 16:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 15:29 [PATCH net-next v6 0/7] enic: add V2 VF receive control over MBOX Satish Kharat
2026-12-04 15:29 ` [PATCH net-next v6 1/7] net: add netif_rx_mode_schedule_update() Satish Kharat
2026-12-04 15:29 ` [PATCH net-next v6 2/7] enic: serialize V2 VF mailbox requests Satish Kharat
2026-12-04 15:29 ` [PATCH net-next v6 3/7] enic: recover V2 VF mailbox after request failure Satish Kharat
2026-12-05 16:28   ` netdev-bot+sashiko
2026-12-04 15:29 ` [PATCH net-next v6 4/7] enic: validate V2 VF configuration replies Satish Kharat
2026-12-05 16:28   ` netdev-bot+sashiko
2026-12-04 15:29 ` [PATCH net-next v6 5/7] net: add dev_addr_set_sync() for driver address updates Satish Kharat
2026-12-05 16:28   ` netdev-bot+sashiko
2026-12-04 15:29 ` [PATCH net-next v6 6/7] enic: manage V2 VF station and administrative MAC Satish Kharat
2026-12-05 16:28   ` netdev-bot+sashiko
2026-12-04 15:29 ` [PATCH net-next v6 7/7] enic: configure V2 VF receive mode over mailbox Satish Kharat
2026-12-05 16:28   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox