RE: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-05 Thread Long Li
> Subject: Re: [PATCH 01/17] net/mana: add basic driver, build environment and > doc > > On Sun, 3 Jul 2022 07:56:18 + > Long Li wrote: > > > > Subject: Re: [PATCH 01/17] net/mana: add basic driver, build > > > environment and doc > > > >

Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-04 Thread Stephen Hemminger
On Sun, 3 Jul 2022 07:56:18 + Long Li wrote: > > Subject: Re: [PATCH 01/17] net/mana: add basic driver, build environment and > > doc > > > > On Fri, 1 Jul 2022 02:02:31 -0700 > > lon...@linuxonhyperv.com wrote: > > > > > + uint64_t max_

Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-04 Thread Stephen Hemminger
On Sun, 3 Jul 2022 07:56:18 + Long Li wrote: > > Subject: Re: [PATCH 01/17] net/mana: add basic driver, build environment and > > doc > > > > On Fri, 1 Jul 2022 02:02:31 -0700 > > lon...@linuxonhyperv.com wrote: > > > > > + uint64_t max_

RE: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-03 Thread Long Li
> Subject: Re: [PATCH 01/17] net/mana: add basic driver, build environment and > doc > > On Fri, 1 Jul 2022 02:02:31 -0700 > lon...@linuxonhyperv.com wrote: > > > + uint64_t max_mr_size; > > + rte_rwlock_tmr_list_lock; > > +}; > > Re

RE: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-01 Thread Long Li
> Subject: Re: [PATCH 01/17] net/mana: add basic driver, build environment and > doc > > On Fri, 1 Jul 2022 02:02:31 -0700 > lon...@linuxonhyperv.com wrote: > > > diff --git a/drivers/net/mana/meson.build > > b/drivers/net/mana/meson.build new file mode 100644 in

Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-01 Thread Stephen Hemminger
On Fri, 1 Jul 2022 02:02:31 -0700 lon...@linuxonhyperv.com wrote: > diff --git a/drivers/net/mana/meson.build b/drivers/net/mana/meson.build > new file mode 100644 > index 00..7ab34c253c > --- /dev/null > +++ b/drivers/net/mana/meson.build > @@ -0,0 +1,34 @@ > +# SPDX-License-Identifier:

Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-01 Thread Stephen Hemminger
On Fri, 1 Jul 2022 02:02:31 -0700 lon...@linuxonhyperv.com wrote: > + uint64_t max_mr_size; > + rte_rwlock_tmr_list_lock; > +}; Reader/Writer locks are slower for the usual uncontended case. Unless you have a reader holding onto the lock for a long time, better to use spin lock. Thi

Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-01 Thread Stephen Hemminger
On Fri, 1 Jul 2022 02:02:31 -0700 lon...@linuxonhyperv.com wrote: > + > +struct mana_priv { > + struct rte_eth_dev_data *dev_data; > + struct mana_process_priv *process_priv; > + int num_queues; > + > + /* DPDK port */ > + int port_id; > + > + /* IB device port */ > +

Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-01 Thread Stephen Hemminger
On Fri, 1 Jul 2022 02:02:31 -0700 lon...@linuxonhyperv.com wrote: > + while (fgets(line, sizeof(line), file) == line) { > + size_t len = strlen(line); > + int ret; > + > + /* Truncate long lines. */ > + if (len == (sizeof(line) - 1)) > +

Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-01 Thread Stephen Hemminger
On Fri, 1 Jul 2022 02:02:31 -0700 lon...@linuxonhyperv.com wrote: > diff --git a/doc/guides/nics/features/mana.ini > b/doc/guides/nics/features/mana.ini > new file mode 100644 > index 00..9d8676089b > --- /dev/null > +++ b/doc/guides/nics/features/mana.ini > @@ -0,0 +1,10 @@ > +; > +; Su

[PATCH 01/17] net/mana: add basic driver, build environment and doc

2022-07-01 Thread longli
From: Long Li MANA is a PCI device. It uses IB verbs to access hardware through the kernel RDMA layer. This patch introduces build environment and basic device probe functions. Signed-off-by: Long Li --- MAINTAINERS | 6 + doc/guides/nics/features/mana.ini | 10 + doc/