[v3,0/5] support fm10k switch management
mbox series

Message ID 1584687523-19362-1-git-send-email-xiaojun.liu@silicom.co.il
Headers show
Series
  • support fm10k switch management
Related show

Message

Xiaojun Liu March 20, 2020, 6:58 a.m. UTC
V3:
* Add I2C to control the inside LED and PHY.
* Add SBUS to communicate with spico.
* Add registers defination.
* Add switch management log API.
* Add switch management structures. 
* Add epl serdes include loading spico,
  controlling pcsl, dma, dfe, ical. 
* Add spico code.
* Add state machine for epl lane and port.
* Add external port management.
* Add ffu to support offload flow into HW.
  It supports forward, mirror, push VLAN, pop VLAN.
* Add config file to configure debug log, port speed,
  epl port mapping dpdk port, flowset.
* Add statistics includes epl port, ffu rule, dpdk port.
* Add flow interface to support offload flow into HW.
* Add switch management, includes initialization,
  port mapping, epl port link, LED controller, interrupt handler.
* Split dev_init to 2 parts in ethdev. First only register 
  the port in switch management; second init hook will be
  called after all the pf are registered.
* Add switch interrupt support.
* Add fm10k_mirror_rule_set/fm10k_mirror_rule_reset.
* Add fm10k_dev_filter_ctrl to support flow operation.
* Add dpdk port and pf mapping.
* Modify Makefile to add new files building


Xiaojun Liu (5):
  net/fm10k: add basic functions for switch management
  net/fm10k: add epl serdes and port control functions
  net/fm10k: add ffu and statistics and config file functions
  net/fm10k: add flow interface and switch management
  net/fm10k: add switch management support

 config/common_linux                         |    5 +
 doc/guides/nics/fm10k.rst                   |    5 +
 drivers/net/fm10k/Makefile                  |   20 +
 drivers/net/fm10k/base/fm10k_type.h         |    1 +
 drivers/net/fm10k/fm10k_ethdev.c            |  559 ++++-
 drivers/net/fm10k/switch/fm10k_config.c     |  857 ++++++++
 drivers/net/fm10k/switch/fm10k_config.h     |  178 ++
 drivers/net/fm10k/switch/fm10k_debug.h      |   19 +
 drivers/net/fm10k/switch/fm10k_ext_port.c   |  839 ++++++++
 drivers/net/fm10k/switch/fm10k_ext_port.h   |  136 ++
 drivers/net/fm10k/switch/fm10k_ffu.c        | 1250 +++++++++++
 drivers/net/fm10k/switch/fm10k_ffu.h        |   31 +
 drivers/net/fm10k/switch/fm10k_flow.c       |  872 ++++++++
 drivers/net/fm10k/switch/fm10k_flow.h       |   26 +
 drivers/net/fm10k/switch/fm10k_i2c.c        |  309 +++
 drivers/net/fm10k/switch/fm10k_i2c.h        |   55 +
 drivers/net/fm10k/switch/fm10k_regs.h       | 2302 +++++++++++++++++++++
 drivers/net/fm10k/switch/fm10k_sbus.c       |  291 +++
 drivers/net/fm10k/switch/fm10k_sbus.h       |   40 +
 drivers/net/fm10k/switch/fm10k_serdes.c     | 1936 +++++++++++++++++
 drivers/net/fm10k/switch/fm10k_serdes.h     |   32 +
 drivers/net/fm10k/switch/fm10k_sm.c         |  190 ++
 drivers/net/fm10k/switch/fm10k_sm.h         |   80 +
 drivers/net/fm10k/switch/fm10k_spico_code.c | 2966 +++++++++++++++++++++++++++
 drivers/net/fm10k/switch/fm10k_spico_code.h |   21 +
 drivers/net/fm10k/switch/fm10k_stats.c      | 1233 +++++++++++
 drivers/net/fm10k/switch/fm10k_stats.h      |  257 +++
 drivers/net/fm10k/switch/fm10k_switch.c     | 2382 +++++++++++++++++++++
 drivers/net/fm10k/switch/fm10k_switch.h     |  476 +++++
 29 files changed, 17329 insertions(+), 39 deletions(-)
 create mode 100644 drivers/net/fm10k/switch/fm10k_config.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_config.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_debug.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_ext_port.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_ext_port.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_ffu.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_ffu.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_flow.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_flow.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_i2c.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_i2c.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_regs.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_sbus.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_sbus.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_serdes.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_serdes.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_sm.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_sm.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_spico_code.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_spico_code.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_stats.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_stats.h
 create mode 100644 drivers/net/fm10k/switch/fm10k_switch.c
 create mode 100644 drivers/net/fm10k/switch/fm10k_switch.h