Skip to content

ionic: add vlanid overflow management

Shannon Nelson netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesApplied 9/9

Patches in v1 All 9 applied

#Subject and filesSizeRepliesApplied
1/9ionic: add filterlist to debugfsdrivers/net/ethernet/pensando/ionic/ionic_debugfs.c+46 -00 repliesApplied
2/9ionic: move lif mac address functionsdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c+131 -1310 repliesApplied
3/9ionic: remove mac overflow flagsdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h+2 -70 repliesApplied
4/9ionic: add generic filter searchdrivers/net/ethernet/pensando/ionic/ionic_rx_filter.c+18 -30 repliesApplied
5/9ionic: generic filter adddrivers/net/ethernet/pensando/ionic/ionic_rx_filter.c+46 -220 repliesApplied
6/9ionic: generic filter deletedrivers/net/ethernet/pensando/ionic/ionic_rx_filter.c+25 -100 repliesApplied
7/9ionic: handle vlan id overflowdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c +1 more+56 -410 repliesApplied
8/9ionic: allow adminq requests to override default error messagedrivers/net/ethernet/pensando/ionic/ionic.h drivers/net/ethernet/pensando/ionic/ionic_main.c drivers/net/ethernet/pensando/ionic/ionic_phc.c+42 -200 repliesApplied
9/9ionic: tame the filter no space messagedrivers/net/ethernet/pensando/ionic/ionic_rx_filter.c+14 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/9] ionic: add vlanid overflow management

Add vlans to the existing rx_filter_sync mechanics currently used for managing mac filters.

Older versions of our firmware had no enforced limits on the number of vlans that the driver could request, but requesting large numbers of vlans caused issues in FW memory management, so an arbitrary limit was added in the FW. The FW now returns -ENOSPC when it hits that limit, which the driver needs to handle.

Unfortunately, the FW doesn't advertise the vlan id limit, as it does with mac filters, so the driver won't know the limit until it bumps into it. We'll grab the current vlan id count and use that as the limit from there on and thus prevent getting any more -ENOSPC errors.

Just as is done for the mac filters, the device puts the device into promiscuous mode when -ENOSPC is seen for vlan ids, and the driver will track the vlans that aren't synced to the FW. When vlans are removed, the driver will retry the un-synced vlans. If all outstanding vlans are synced, the promiscuous mode will be disabled.

The first 6 patches rework the existing filter management to make it flexible enough for additional filter types. Next we add the vlan ids into the management. The last 2 patches allow us to catch the max vlan -ENOSPC error without adding an unnecessary error message to the kernel log.

Shannon Nelson (9):
ionic: add filterlist to debugfs
ionic: move lif mac address functions
ionic: remove mac overflow flags
ionic: add generic filter search
ionic: generic filter add
ionic: generic filter delete
ionic: handle vlan id overflow
ionic: allow adminq requests to override default error message
ionic: tame the filter no space message

 drivers/net/ethernet/pensando/ionic/ionic.h   |   7 +-
 .../ethernet/pensando/ionic/ionic_debugfs.c   |  46 ++++
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 190 +-------------
 .../net/ethernet/pensando/ionic/ionic_lif.h   |   4 +-
 .../net/ethernet/pensando/ionic/ionic_main.c  |  47 ++--
 .../net/ethernet/pensando/ionic/ionic_phc.c   |   8 +-
 .../ethernet/pensando/ionic/ionic_rx_filter.c | 241 +++++++++++++++++-
 .../ethernet/pensando/ionic/ionic_rx_filter.h |   2 +
 8 files changed, 345 insertions(+), 200 deletions(-)
Signature · 1 line
2.17.1