On Sun, 13 Feb 2022 19:07:09 +0100
Thomas Monjalon wrote:
> 12/02/2022 15:01, Yanling Song:
> > On Fri, 21 Jan 2022 10:22:10 +
> > Ferruh Yigit wrote:
> >
> > > On 1/21/2022 9:27 AM, Yanling Song wrote:
> > > > On Wed, 19 Jan 2022
On Fri, 21 Jan 2022 10:22:10 +
Ferruh Yigit wrote:
> On 1/21/2022 9:27 AM, Yanling Song wrote:
> > On Wed, 19 Jan 2022 16:56:52 +
> > Ferruh Yigit wrote:
> >
> >> On 12/30/2021 6:08 AM, Yanling Song wrote:
> >>> The patchsets introdu
On Wed, 19 Jan 2022 17:28:11 +
Ferruh Yigit wrote:
> On 12/30/2021 6:09 AM, Yanling Song wrote:
> > Use the hardware structure instead of void* as parameter of
> > function to keep the type information
>
> Hi Yanling,
>
> This is a new driver and first patchse
On Wed, 19 Jan 2022 17:27:56 +
Ferruh Yigit wrote:
> On 12/30/2021 6:09 AM, Yanling Song wrote:
> > This patch adds doc infrastructure for spnic PMD driver.
> >
> > Signed-off-by: Yanling Song
>
> <...>
>
> > diff --git a/doc/guides/nics/spn
On Wed, 19 Jan 2022 17:26:47 +
Ferruh Yigit wrote:
> On 12/30/2021 6:08 AM, Yanling Song wrote:
> > This commit adds interfaces to add/remove MAC addresses
> > and registers related ops to struct eth_dev_ops. Furthermore,
> > this commit adds callback to handle link ev
On Wed, 19 Jan 2022 17:22:51 +
Ferruh Yigit wrote:
> On 12/30/2021 6:08 AM, Yanling Song wrote:
> > Mgmt module manage the message gerenated from the hardware.
> > This patch implements mgmt module initialization, related event
> > processing and message command defini
On Wed, 19 Jan 2022 17:05:14 +
Ferruh Yigit wrote:
> On 12/30/2021 6:08 AM, Yanling Song wrote:
> > Add HW interface registers and initialize the HW
> > interface.
> >
> > Signed-off-by: Yanling Song
>
> <...>
>
> > diff --git a/driver
On Wed, 19 Jan 2022 16:56:52 +
Ferruh Yigit wrote:
> On 12/30/2021 6:08 AM, Yanling Song wrote:
> > The patchsets introduce SPNIC driver for Ramaxel's SPNxx serial NIC
> > cards into DPDK 22.03. Ramaxel Memory Technology is a company which
> > supply a lot of
Use the hardware structure instead of void* as parameter of
function to keep the type information
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_cmdq.c | 14 +--
drivers/net/spnic/base/spnic_cmdq.h | 6 +-
drivers/net/spnic/base/spnic_hw_cfg.c| 49
:
when stopping tx queue, the PMD driver will wait until all tx
packets are sent and then releases all mbuf.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 33
drivers/net/spnic/base/spnic_nic_cfg.h | 13 ++
drivers/net/spnic/spnic_ethdev.c | 82
This commit supports VFIO interrupt for Rx queue and
asynchronous event, and implements rx_queue_intr_disable()
and rx_queue_intr_enable() to disable/enable the interrupt
of specified Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_eqs.c | 11 ++
drivers/net/spnic
This commit implements DFX statistics of
physical port, function, Rx queues and Tx queues,
which includes MAC statistic, unicast/multicast/broadcast
packets statistic, rx_mbuf, tx_busy and etc.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 118 ++
drivers/net
This patch implements rxq_info_get() and txq_info_get() to
support getting queue depth and mbuf pool info of specified
Tx/Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/net/spnic
This commit implements flow control operations
to support related syscalls.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 53 ++
drivers/net/spnic/base/spnic_nic_cfg.h | 25 +
drivers/net/spnic/spnic_ethdev.c | 77
This commit implements promiscuous_enable/disable() and
allmulticast_enable/disable() to configure promiscuous or
allmulticast Rx modes. Note: promiscuous rx mode is only supported
by PF.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 156 +++
1
This commit implements vlan_filter_set() and vlan_offload_set()
to support VLAN filtering and offloading.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 8 ++
drivers/net/spnic/spnic_ethdev.c | 121 +
2 files changed, 129 insertions
This commit implements rss_hash_update and rss_hash_conf_get.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 235 +++
1 file changed, 235 insertions(+)
diff --git a/drivers/net/spnic/spnic_ethdev.c b/drivers/net/spnic/spnic_ethdev.c
index
This patch adds doc infrastructure for spnic PMD driver.
Signed-off-by: Yanling Song
---
MAINTAINERS| 6
doc/guides/nics/features/spnic.ini | 39 +
doc/guides/nics/index.rst | 1 +
doc/guides/nics/spnic.rst | 55
too many mbufs for
one packet.
For Rx packets, this commit implements filling ol_flags of
mbuf and rearming new mbuf and rq wqe.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 48 +++
drivers/net/spnic/spnic_ethdev.h | 7 +
drivers/net/spnic/spnic_rx.c | 209
This commit adds the callbacks to configure queue number and mtu
as well as query configuration information and firmware version.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 129 ++-
1 file changed, 127 insertions(+), 2 deletions(-)
diff --git
This patch Rx/Tx configuration including Rx csum offload, LRO, RSS,
VLAN filter and VLAN offload.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 525 +
drivers/net/spnic/base/spnic_nic_cfg.h | 387 ++
drivers/net/spnic
This patch adds the initialization of Tx/Rx queues
context and negotiation of NIC features.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_hw_comm.c | 101
drivers/net/spnic/base/spnic_hw_comm.h | 6 +
drivers/net/spnic/base/spnic_nic_cfg.c | 76 +++
drivers/net/spnic/base
This patch defines a wqe data structure for hardware to
learn the sge info and offload info of packet. Furthermore,
this commit implements the interfaces to fill wqe with DPDK mbuf.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 23 ++
drivers/net/spnic/base
This patch adds interface to enable port/vport so that the hardware
would receive packets to host.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 46
1 file changed, 46 insertions(+)
diff --git a/drivers/net/spnic/spnic_ethdev.c b/drivers
description, ctrl info,
header info and response message data buffer. This patch
implements the initialization and data structure.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 4 +-
drivers/net/spnic/base/spnic_cmdq.c| 202 ++
drivers/net/spnic/base
This commit adds interfaces to add/remove MAC addresses
and registers related ops to struct eth_dev_ops. Furthermore,
this commit adds callback to handle link events.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 3 +-
drivers/net/spnic/base/spnic_hw_cfg.c
This patch mainly implements function info initialization
including mtu, link state, port state, port info and cos
as well as the definition of the corresponding data structure.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_hw_cfg.c | 43 +++
drivers/net/spnic/base
This patch introduce event queue to receive response message
from hardware or destiation function when a source function
send mbox to it. This commit implements the related data
structure, initialization and interfaces handling the message.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base
This commits add hardware info initialization, including
that device capability initialization, common feature
negotiation, and two interfaces spnic_get_board_info(),
spnic_get_mgmt_version() to get hardware info and
firmware version.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base
Mgmt module manage the message gerenated from the hardware.
This patch implements mgmt module initialization, related event
processing and message command definition.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 4 +-
drivers/net/spnic/base/spnic_cmd.h
This commit adds cmdq_sync_cmd_direct_resp() and
cmdq_sync_cmd_detail_resp() interfaces by which driver can send
cmdq message using wqe a data structure describe the buffer.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 1 +
drivers/net/spnic/base/spnic_cmdq.c
This patch adds a message channel named mbox which can send
message form PF/VF driver to hardware or sned message from
VF to PF.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build |3 +-
drivers/net/spnic/base/spnic_hwdev.c | 69 ++
drivers/net/spnic/base/spnic_hwdev.h
Introduce a new PMD driver which names spnic.
Now, this driver only implements module entry
without doing anything else.
Signed-off-by: Yanling Song
---
drivers/net/meson.build | 1 +
drivers/net/spnic/base/meson.build| 26
drivers/net/spnic/base/spnic_compat.h | 184
t.
v2->v3:
1. Fix clang compiling failure.
v1->v2:
1. Fix coding style issues and compiling failures;
2. Only support linux in meson.build;
3. Use CLOCK_MONOTONIC_COARSE instead of CLOCK_MONOTONIC/CLOCK_MONOTONIC_RAW;
4. Fix time_before();
5. Remove redundant checks in spnic_dev_configure();
Add HW interface registers and initialize the HW
interface.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 2 +
drivers/net/spnic/base/spnic_csr.h | 104
drivers/net/spnic/base/spnic_hwdev.c | 41 ++
drivers/net/spnic/base/spnic_hwdev.h | 29 +
drivers/net
:
when stopping tx queue, the PMD driver will wait until all tx
packets are sent and then releases all mbuf.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 33
drivers/net/spnic/base/spnic_nic_cfg.h | 13 ++
drivers/net/spnic/spnic_ethdev.c | 82
This commit supports VFIO interrupt for Rx queue and
asynchronous event, and implements rx_queue_intr_disable()
and rx_queue_intr_enable() to disable/enable the interrupt
of specified Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_eqs.c | 11 ++
drivers/net/spnic
This patch adds doc infrastructure for spnic PMD driver.
Signed-off-by: Yanling Song
---
MAINTAINERS| 6
doc/guides/nics/features/spnic.ini | 39 +
doc/guides/nics/index.rst | 1 +
doc/guides/nics/spnic.rst | 55
Fix reviewers comments:
1. Remove temporary MACRO: RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS
2. Do not use void* for keeping the type information
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_cmdq.c | 14 +--
drivers/net/spnic/base/spnic_cmdq.h | 6 +-
drivers/net/spnic/base
This commit implements promiscuous_enable/disable() and
allmulticast_enable/disable() to configure promiscuous or
allmulticast Rx modes. Note: promiscuous rx mode is only supported
by PF.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 156 +++
1
This commit implements flow control operations
to support related syscalls.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 53 ++
drivers/net/spnic/base/spnic_nic_cfg.h | 25 +
drivers/net/spnic/spnic_ethdev.c | 77
This commit implements DFX statistics of
physical port, function, Rx queues and Tx queues,
which includes MAC statistic, unicast/multicast/broadcast
packets statistic, rx_mbuf, tx_busy and etc.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 118 ++
drivers/net
This commit adds the callbacks to configure queue number and mtu
as well as query configuration information and firmware version.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 129 ++-
1 file changed, 127 insertions(+), 2 deletions(-)
diff --git
too many mbufs for
one packet.
For Rx packets, this commit implements filling ol_flags of
mbuf and rearming new mbuf and rq wqe.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 48 +++
drivers/net/spnic/spnic_ethdev.h | 7 +
drivers/net/spnic/spnic_rx.c | 209
This patch implements rxq_info_get() and txq_info_get() to
support getting queue depth and mbuf pool info of specified
Tx/Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/net/spnic
This commit implements rss_hash_update and rss_hash_conf_get.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 235 +++
1 file changed, 235 insertions(+)
diff --git a/drivers/net/spnic/spnic_ethdev.c b/drivers/net/spnic/spnic_ethdev.c
index
This commit implements vlan_filter_set() and vlan_offload_set()
to support VLAN filtering and offloading.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 8 ++
drivers/net/spnic/spnic_ethdev.c | 121 +
2 files changed, 129 insertions
This patch Rx/Tx configuration including Rx csum offload, LRO, RSS,
VLAN filter and VLAN offload.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 525 +
drivers/net/spnic/base/spnic_nic_cfg.h | 387 ++
drivers/net/spnic
This patch adds interface to enable port/vport so that the hardware
would receive packets to host.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 46
1 file changed, 46 insertions(+)
diff --git a/drivers/net/spnic/spnic_ethdev.c b/drivers
This patch adds the initialization of Tx/Rx queues
context and negotiation of NIC features.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_hw_comm.c | 101
drivers/net/spnic/base/spnic_hw_comm.h | 6 +
drivers/net/spnic/base/spnic_nic_cfg.c | 76 +++
drivers/net/spnic/base
This patch defines a wqe data structure for hardware to
learn the sge info and offload info of packet. Furthermore,
this commit implements the interfaces to fill wqe with DPDK mbuf.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 23 ++
drivers/net/spnic/base
This commit adds interfaces to add/remove MAC addresses
and registers related ops to struct eth_dev_ops. Furthermore,
this commit adds callback to handle link events.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 3 +-
drivers/net/spnic/base/spnic_hw_cfg.c
This patch mainly implements function info initialization
including mtu, link state, port state, port info and cos
as well as the definition of the corresponding data structure.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_hw_cfg.c | 43 +++
drivers/net/spnic/base
description, ctrl info,
header info and response message data buffer. This patch
implements the initialization and data structure.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 4 +-
drivers/net/spnic/base/spnic_cmdq.c| 202 ++
drivers/net/spnic/base
This commit adds cmdq_sync_cmd_direct_resp() and
cmdq_sync_cmd_detail_resp() interfaces by which driver can send
cmdq message using wqe a data structure describe the buffer.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 1 +
drivers/net/spnic/base/spnic_cmdq.c
This commits add hardware info initialization, including
that device capability initialization, common feature
negotiation, and two interfaces spnic_get_board_info(),
spnic_get_mgmt_version() to get hardware info and
firmware version.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base
Add HW interface registers and initialize the HW
interface.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 2 +
drivers/net/spnic/base/spnic_csr.h | 104
drivers/net/spnic/base/spnic_hwdev.c | 41 ++
drivers/net/spnic/base/spnic_hwdev.h | 29 +
drivers/net
Mgmt module manage the message gerenated from the hardware.
This patch implements mgmt module initialization, related event
processing and message command definition.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 4 +-
drivers/net/spnic/base/spnic_cmd.h
This patch introduce event queue to receive response message
from hardware or destiation function when a source function
send mbox to it. This commit implements the related data
structure, initialization and interfaces handling the message.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base
This patch adds a message channel named mbox which can send
message form PF/VF driver to hardware or sned message from
VF to PF.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build |3 +-
drivers/net/spnic/base/spnic_hwdev.c | 69 ++
drivers/net/spnic/base/spnic_hwdev.h
Introduce a new PMD driver which names spnic.
Now, this driver only implements module entry
without doing anything else.
Signed-off-by: Yanling Song
---
drivers/net/meson.build | 1 +
drivers/net/spnic/base/meson.build| 26
drivers/net/spnic/base/spnic_compat.h | 184
Use CLOCK_MONOTONIC_COARSE instead of CLOCK_MONOTONIC/CLOCK_MONOTONIC_RAW;
4. Fix time_before();
5. Remove redundant checks in spnic_dev_configure();
Yanling Song (26):
drivers/net: introduce a new PMD driver
net/spnic: initialize the HW interface
net/spnic: add mbox message channel
net/s
On Tue, 28 Dec 2021 07:55:23 -0800
Stephen Hemminger wrote:
> On Tue, 28 Dec 2021 15:01:20 +0800
> Yanling Song wrote:
>
> > On Fri, 24 Dec 2021 09:44:57 -0800
> > Stephen Hemminger wrote:
> >
> > > On Fri, 24 Dec 2021 16:32:18 +0800
> > >
> > @@ -35,11 +68,42 @@ static int spnic_func_init(struct rte_eth_dev
> > *eth_dev) pci_dev->addr.domain, pci_dev->addr.bus,
> > pci_dev->addr.devid, pci_dev->addr.function);
> >
> > + eth_dev->data->dev_flags |=
> > RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS;
>
> Please do not use th
On Tue, 28 Dec 2021 07:59:18 -0800
Stephen Hemminger wrote:
> On Fri, 24 Dec 2021 16:32:23 +0800
> Yanling Song wrote:
>
> > +static void nic_event_handler(void *hwdev
>
> This is one example of something this driver does a lot.
> It casts away the hardware device
On Fri, 24 Dec 2021 09:44:57 -0800
Stephen Hemminger wrote:
> On Fri, 24 Dec 2021 16:32:18 +0800
> Yanling Song wrote:
>
> > The patchsets introduce SPNIC driver for Ramaxel's SPNxx serial NIC
> > cards into DPDK 22.03. Ramaxel Memory Technology is a company which
&g
This patch adds doc infrastructure for spnic PMD driver.
Signed-off-by: Yanling Song
---
MAINTAINERS| 6
doc/guides/nics/features/spnic.ini | 39 +
doc/guides/nics/index.rst | 1 +
doc/guides/nics/spnic.rst | 55
:
when stopping tx queue, the PMD driver will wait until all tx
packets are sent and then releases all mbuf.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 33
drivers/net/spnic/base/spnic_nic_cfg.h | 13 ++
drivers/net/spnic/spnic_ethdev.c | 82
This commit supports VFIO interrupt for Rx queue and
asynchronous event, and implements rx_queue_intr_disable()
and rx_queue_intr_enable() to disable/enable the interrupt
of specified Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_eqs.c | 11 ++
drivers/net/spnic
This commit implements DFX statistics of
physical port, function, Rx queues and Tx queues,
which includes MAC statistic, unicast/multicast/broadcast
packets statistic, rx_mbuf, tx_busy and etc.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 118 ++
drivers/net
This commit implements flow control operations
to support related syscalls.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 53 ++
drivers/net/spnic/base/spnic_nic_cfg.h | 25 +
drivers/net/spnic/spnic_ethdev.c | 77
This patch implements rxq_info_get() and txq_info_get() to
support getting queue depth and mbuf pool info of specified
Tx/Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/net/spnic
This commit implements vlan_filter_set() and vlan_offload_set()
to support VLAN filtering and offloading.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 8 ++
drivers/net/spnic/spnic_ethdev.c | 121 +
2 files changed, 129 insertions
This commit implements promiscuous_enable/disable() and
allmulticast_enable/disable() to configure promiscuous or
allmulticast Rx modes. Note: promiscuous rx mode is only supported
by PF.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 156 +++
1
This commit adds the callbacks to configure queue number and mtu
as well as query configuration information and firmware version.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 129 ++-
1 file changed, 127 insertions(+), 2 deletions(-)
diff --git
This commit implements rss_hash_update and rss_hash_conf_get.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 235 +++
1 file changed, 235 insertions(+)
diff --git a/drivers/net/spnic/spnic_ethdev.c b/drivers/net/spnic/spnic_ethdev.c
index
too many mbufs for
one packet.
For Rx packets, this commit implements filling ol_flags of
mbuf and rearming new mbuf and rq wqe.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 48 +++
drivers/net/spnic/spnic_ethdev.h | 7 +
drivers/net/spnic/spnic_rx.c | 209
This patch adds interface to enable port/vport so that the hardware
would receive packets to host.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 46
1 file changed, 46 insertions(+)
diff --git a/drivers/net/spnic/spnic_ethdev.c b/drivers
This patch defines a wqe data structure for hardware to
learn the sge info and offload info of packet. Furthermore,
this commit implements the interfaces to fill wqe with DPDK mbuf.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 23 ++
drivers/net/spnic/base
This patch adds the initialization of Tx/Rx queues
context and negotiation of NIC features.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_hw_comm.c | 101
drivers/net/spnic/base/spnic_hw_comm.h | 6 +
drivers/net/spnic/base/spnic_nic_cfg.c | 76 +++
drivers/net/spnic/base
This patch mainly implements function info initialization
including mtu, link state, port state, port info and cos
as well as the definition of the corresponding data structure.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_hw_cfg.c | 43 +++
drivers/net/spnic/base
This patch Rx/Tx configuration including Rx csum offload, LRO, RSS,
VLAN filter and VLAN offload.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 525 +
drivers/net/spnic/base/spnic_nic_cfg.h | 387 ++
drivers/net/spnic
This commit adds interfaces to add/remove MAC addresses
and registers related ops to struct eth_dev_ops. Furthermore,
this commit adds callback to handle link events.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 3 +-
drivers/net/spnic/base/spnic_hw_cfg.c
This commits add hardware info initialization, including
that device capability initialization, common feature
negotiation, and two interfaces spnic_get_board_info(),
spnic_get_mgmt_version() to get hardware info and
firmware version.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base
This commit adds cmdq_sync_cmd_direct_resp() and
cmdq_sync_cmd_detail_resp() interfaces by which driver can send
cmdq message using wqe a data structure describe the buffer.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 1 +
drivers/net/spnic/base/spnic_cmdq.c
Add HW interface registers and initialize the HW
interface.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 2 +
drivers/net/spnic/base/spnic_csr.h | 104
drivers/net/spnic/base/spnic_hwdev.c | 41 ++
drivers/net/spnic/base/spnic_hwdev.h | 29 +
drivers/net
Mgmt module manage the message gerenated from the hardware.
This patch implements mgmt module initialization, related event
processing and message command definition.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 4 +-
drivers/net/spnic/base/spnic_cmd.h
description, ctrl info,
header info and response message data buffer. This patch
implements the initialization and data structure.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build | 4 +-
drivers/net/spnic/base/spnic_cmdq.c| 202 ++
drivers/net/spnic/base
This patch introduce event queue to receive response message
from hardware or destiation function when a source function
send mbox to it. This commit implements the related data
structure, initialization and interfaces handling the message.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base
This patch adds a message channel named mbox which can send
message form PF/VF driver to hardware or sned message from
VF to PF.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/meson.build |3 +-
drivers/net/spnic/base/spnic_hwdev.c | 69 ++
drivers/net/spnic/base/spnic_hwdev.h
Introduce a new PMD driver which names spnic.
Now, this driver only implements module entry
without doing anything else.
Signed-off-by: Yanling Song
---
drivers/net/meson.build | 1 +
drivers/net/spnic/base/meson.build| 26
drivers/net/spnic/base/spnic_compat.h | 184
g compiling failure.
v1->v2:
1. Fix coding style issues and compiling failures;
2. Only support linux in meson.build;
3. Use CLOCK_MONOTONIC_COARSE instead of CLOCK_MONOTONIC/CLOCK_MONOTONIC_RAW;
4. Fix time_before();
5. Remove redundant checks in spnic_dev_configure();
Yanling Song (25):
drivers/ne
:
when stopping tx queue, the PMD driver will wait until all tx
packets are sent and then releases all mbuf.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 33
drivers/net/spnic/base/spnic_nic_cfg.h | 13 ++
drivers/net/spnic/spnic_ethdev.c | 82
This patch adds doc infrastructure for spnic PMD driver.
Signed-off-by: Yanling Song
---
MAINTAINERS| 6 +++
doc/guides/nics/features/spnic.ini | 39 +++
doc/guides/nics/index.rst | 1 +
doc/guides/nics/spnic.rst | 61
This commit implements DFX statistics of
physical port, function, Rx queues and Tx queues,
which includes MAC statistic, unicast/multicast/broadcast
packets statistic, rx_mbuf, tx_busy and etc.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 118 ++
drivers/net
This commit implements flow control operations
to support related syscalls.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 53 ++
drivers/net/spnic/base/spnic_nic_cfg.h | 25 +
drivers/net/spnic/spnic_ethdev.c | 77
This commit supports VFIO interrupt for Rx queue and
asynchronous event, and implements rx_queue_intr_disable()
and rx_queue_intr_enable() to disable/enable the interrupt
of specified Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_eqs.c | 11 ++
drivers/net/spnic
This commit implements promiscuous_enable/disable() and
allmulticast_enable/disable() to configure promiscuous or
allmulticast Rx modes. Note: promiscuous rx mode is only supported
by PF.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 156 +++
1
This commit implements vlan_filter_set() and vlan_offload_set()
to support VLAN filtering and offloading.
Signed-off-by: Yanling Song
---
drivers/net/spnic/base/spnic_nic_cfg.c | 8 ++
drivers/net/spnic/spnic_ethdev.c | 121 +
2 files changed, 129 insertions
This patch implements rxq_info_get() and txq_info_get() to
support getting queue depth and mbuf pool info of specified
Tx/Rx queue.
Signed-off-by: Yanling Song
---
drivers/net/spnic/spnic_ethdev.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/net/spnic
1 - 100 of 174 matches
Mail list logo