All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] doc: how to set VF MAC address on ixgbe
@ 2017-10-23  5:38 Wenzhuo Lu
  2017-10-23 12:26 ` Mcnamara, John
  2017-10-24  0:57 ` [PATCH v2] " Wenzhuo Lu
  0 siblings, 2 replies; 5+ messages in thread
From: Wenzhuo Lu @ 2017-10-23  5:38 UTC (permalink / raw)
  To: dev; +Cc: Wenzhuo Lu

Add the description of how to add a MAC address for a VF
from PF on ixgbe.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
 doc/guides/nics/ixgbe.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst
index 696ff69..bd0dc68 100644
--- a/doc/guides/nics/ixgbe.rst
+++ b/doc/guides/nics/ixgbe.rst
@@ -227,6 +227,17 @@ So when the user sets different MTUs on PF and VF ports in one physical port,
 the real MTU for all these PF and VF ports is the largest value set.
 This behavior is based on the kernel driver behavior.
 
+VF MAC address setting
+~~~~~~~~~~~~~~~~~~~~~~
+
+On ixgbe, the concept pool can be used for different things. It depends on the
+mode. In VMDq mode, the pool means a VMDq pool. In IOV mode, the pool means a
+VF.
+When setting the parameters of a pool, in VMDq mode, it's for a VMDq pool, in
+IOV mode, it's for a VF.
+There's no RTE API to add a VF's MAC address from PF. On ixgbe, there's a
+workaround to do it. "rte_eth_dev_mac_addr_add" also can be used to add a VF's
+MAC address.
 
 Supported Chipsets and NICs
 ---------------------------
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: how to set VF MAC address on ixgbe
  2017-10-23  5:38 [PATCH] doc: how to set VF MAC address on ixgbe Wenzhuo Lu
@ 2017-10-23 12:26 ` Mcnamara, John
  2017-10-24  0:31   ` Lu, Wenzhuo
  2017-10-24  0:57 ` [PATCH v2] " Wenzhuo Lu
  1 sibling, 1 reply; 5+ messages in thread
From: Mcnamara, John @ 2017-10-23 12:26 UTC (permalink / raw)
  To: Lu, Wenzhuo, dev; +Cc: Lu, Wenzhuo



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wenzhuo Lu
> Sent: Monday, October 23, 2017 6:38 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>
> Subject: [dpdk-dev] [PATCH] doc: how to set VF MAC address on ixgbe
> 
> Add the description of how to add a MAC address for a VF from PF on ixgbe.
> 
> Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
> ---
>  doc/guides/nics/ixgbe.rst | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst index
> 696ff69..bd0dc68 100644
> --- a/doc/guides/nics/ixgbe.rst
> +++ b/doc/guides/nics/ixgbe.rst
> @@ -227,6 +227,17 @@ So when the user sets different MTUs on PF and VF
> ports in one physical port,  the real MTU for all these PF and VF ports is
> the largest value set.
>  This behavior is based on the kernel driver behavior.
> 
> +VF MAC address setting
> +~~~~~~~~~~~~~~~~~~~~~~
> +
> +On ixgbe, the concept pool can be used for different things. It depends
> +on the mode. In VMDq mode, the pool means a VMDq pool. In IOV mode, the
> +pool means a VF.
> +When setting the parameters of a pool, in VMDq mode, it's for a VMDq
> +pool, in IOV mode, it's for a VF.
> +There's no RTE API to add a VF's MAC address from PF. On ixgbe, there's
> +a workaround to do it. "rte_eth_dev_mac_addr_add" also can be used to
> +add a VF's MAC address.

I'd suggest something like the following may be a bit clearer:

VF MAC address setting
~~~~~~~~~~~~~~~~~~~~~~

On ixgbe, the concept of "pool" can be used for different things depending on
the mode. In VMDq mode, "pool" means a VMDq pool. In IOV mode, "pool" means a
VF.

There is no RTE API to add a VF's MAC address from the PF. On ixgbe, the
``rte_eth_dev_mac_addr_add()`` function can be can be used to add a VF's MAC
address, as a workaround.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: how to set VF MAC address on ixgbe
  2017-10-23 12:26 ` Mcnamara, John
@ 2017-10-24  0:31   ` Lu, Wenzhuo
  0 siblings, 0 replies; 5+ messages in thread
From: Lu, Wenzhuo @ 2017-10-24  0:31 UTC (permalink / raw)
  To: Mcnamara, John, dev

Hi John,

> -----Original Message-----
> From: Mcnamara, John
> Sent: Monday, October 23, 2017 8:27 PM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>
> Subject: RE: [dpdk-dev] [PATCH] doc: how to set VF MAC address on ixgbe
> 
> 
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wenzhuo Lu
> > Sent: Monday, October 23, 2017 6:38 AM
> > To: dev@dpdk.org
> > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>
> > Subject: [dpdk-dev] [PATCH] doc: how to set VF MAC address on ixgbe
> >
> > Add the description of how to add a MAC address for a VF from PF on
> ixgbe.
> >
> > Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
> > ---
> >  doc/guides/nics/ixgbe.rst | 11 +++++++++++
> >  1 file changed, 11 insertions(+)
> >
> > diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst
> > index
> > 696ff69..bd0dc68 100644
> > --- a/doc/guides/nics/ixgbe.rst
> > +++ b/doc/guides/nics/ixgbe.rst
> > @@ -227,6 +227,17 @@ So when the user sets different MTUs on PF and
> VF
> > ports in one physical port,  the real MTU for all these PF and VF
> > ports is the largest value set.
> >  This behavior is based on the kernel driver behavior.
> >
> > +VF MAC address setting
> > +~~~~~~~~~~~~~~~~~~~~~~
> > +
> > +On ixgbe, the concept pool can be used for different things. It
> > +depends on the mode. In VMDq mode, the pool means a VMDq pool. In
> IOV
> > +mode, the pool means a VF.
> > +When setting the parameters of a pool, in VMDq mode, it's for a VMDq
> > +pool, in IOV mode, it's for a VF.
> > +There's no RTE API to add a VF's MAC address from PF. On ixgbe,
> > +there's a workaround to do it. "rte_eth_dev_mac_addr_add" also can be
> > +used to add a VF's MAC address.
> 
> I'd suggest something like the following may be a bit clearer:
> 
> VF MAC address setting
> ~~~~~~~~~~~~~~~~~~~~~~
> 
> On ixgbe, the concept of "pool" can be used for different things depending
> on the mode. In VMDq mode, "pool" means a VMDq pool. In IOV mode,
> "pool" means a VF.
> 
> There is no RTE API to add a VF's MAC address from the PF. On ixgbe, the
> ``rte_eth_dev_mac_addr_add()`` function can be can be used to add a VF's
> MAC address, as a workaround.
> 

Thanks for the suggestion. I'll send a V2.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] doc: how to set VF MAC address on ixgbe
  2017-10-23  5:38 [PATCH] doc: how to set VF MAC address on ixgbe Wenzhuo Lu
  2017-10-23 12:26 ` Mcnamara, John
@ 2017-10-24  0:57 ` Wenzhuo Lu
  2017-11-01 21:51   ` Ferruh Yigit
  1 sibling, 1 reply; 5+ messages in thread
From: Wenzhuo Lu @ 2017-10-24  0:57 UTC (permalink / raw)
  To: dev; +Cc: john.mcnamara, Wenzhuo Lu

Add the description of how to add a MAC address for a VF
from PF on ixgbe.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
v2:
 - reworded.

 doc/guides/nics/ixgbe.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst
index 696ff69..c687c63 100644
--- a/doc/guides/nics/ixgbe.rst
+++ b/doc/guides/nics/ixgbe.rst
@@ -227,6 +227,17 @@ So when the user sets different MTUs on PF and VF ports in one physical port,
 the real MTU for all these PF and VF ports is the largest value set.
 This behavior is based on the kernel driver behavior.
 
+VF MAC address setting
+~~~~~~~~~~~~~~~~~~~~~~
+
+On ixgbe, the concept of "pool" can be used for different things depending on
+the mode. In VMDq mode, "pool" means a VMDq pool. In IOV mode, "pool" means a
+VF.
+
+There is no RTE API to add a VF's MAC address from the PF. On ixgbe, the
+``rte_eth_dev_mac_addr_add()`` function can be used to add a VF's MAC address,
+as a workaround.
+
 
 Supported Chipsets and NICs
 ---------------------------
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] doc: how to set VF MAC address on ixgbe
  2017-10-24  0:57 ` [PATCH v2] " Wenzhuo Lu
@ 2017-11-01 21:51   ` Ferruh Yigit
  0 siblings, 0 replies; 5+ messages in thread
From: Ferruh Yigit @ 2017-11-01 21:51 UTC (permalink / raw)
  To: Wenzhuo Lu, dev; +Cc: john.mcnamara

On 10/23/2017 5:57 PM, Wenzhuo Lu wrote:
> Add the description of how to add a MAC address for a VF
> from PF on ixgbe.
> 
> Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-01 21:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-23  5:38 [PATCH] doc: how to set VF MAC address on ixgbe Wenzhuo Lu
2017-10-23 12:26 ` Mcnamara, John
2017-10-24  0:31   ` Lu, Wenzhuo
2017-10-24  0:57 ` [PATCH v2] " Wenzhuo Lu
2017-11-01 21:51   ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.