Re: [PATCH v1 16/25] net/spnic: add device configure/version/info

2021-12-21 Thread Yanling Song
On Mon, 20 Dec 2021 08:23:56 +0800 Stephen Hemminger wrote: > On Sat, 18 Dec 2021 10:51:43 +0800 > Yanling Song wrote: > > > +static int spnic_dev_configure(struct rte_eth_dev *dev) > > +{ > > + struct spnic_nic_dev *nic_dev = > > SPNIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev); + > > + nic_dev->num_

Re: [PATCH v1 16/25] net/spnic: add device configure/version/info

2021-12-19 Thread Stephen Hemminger
On Sat, 18 Dec 2021 10:51:43 +0800 Yanling Song wrote: > +static int spnic_dev_configure(struct rte_eth_dev *dev) > +{ > + struct spnic_nic_dev *nic_dev = SPNIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev); > + > + nic_dev->num_sqs = dev->data->nb_tx_queues; > + nic_dev->num_rqs = dev->data->nb_r

[PATCH v1 16/25] net/spnic: add device configure/version/info

2021-12-17 Thread Yanling Song
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 | 148 ++- 1 file changed, 146 insertions(+), 2 deletions(-) diff --git