* [dpdk-dev] [PATCH v2] testpmd check return value of rte_eth_dev_vlan_filter()
@ 2015-01-27 17:19 Michal Jastrzebski
2015-01-28 1:38 ` Qiu, Michael
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 0/2] testpmd: " Michal Jastrzebski
0 siblings, 2 replies; 8+ messages in thread
From: Michal Jastrzebski @ 2015-01-27 17:19 UTC (permalink / raw)
To: dev
This patch modifies testpmd behavior when setting:
rx_vlan add all vf_port (enabling all vlanids
to be passed thru rx filter on VF).
Rx_vlan_all_filter_set() function,
checks if the next vlanid can be enabled by the driver.
Number of vlanids is limited by the NIC and thus the NIC
do not allow to enable more vlanids than it can allocate
in VFTA table.
v2 - fix formatting errors
Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
---
app/test-pmd/config.c | 15 +++++++++------
app/test-pmd/testpmd.h | 2 +-
lib/librte_ether/rte_ethdev.c | 4 ++--
3 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index c40f819..eda737e 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1643,21 +1643,22 @@ rx_vlan_filter_set(portid_t port_id, int on)
"diag=%d\n", port_id, on, diag);
}
-void
+int
rx_vft_set(portid_t port_id, uint16_t vlan_id, int on)
{
int diag;
if (port_id_is_invalid(port_id))
- return;
+ return 1;
if (vlan_id_is_invalid(vlan_id))
- return;
+ return 1;
diag = rte_eth_dev_vlan_filter(port_id, vlan_id, on);
if (diag == 0)
- return;
+ return 0;
printf("rte_eth_dev_vlan_filter(port_pi=%d, vlan_id=%d, on=%d) failed "
"diag=%d\n",
port_id, vlan_id, on, diag);
+ return -1;
}
void
@@ -1667,8 +1668,10 @@ rx_vlan_all_filter_set(portid_t port_id, int on)
if (port_id_is_invalid(port_id))
return;
- for (vlan_id = 0; vlan_id < 4096; vlan_id++)
- rx_vft_set(port_id, vlan_id, on);
+ for (vlan_id = 0; vlan_id < 4096; vlan_id++) {
+ if (rx_vft_set(port_id, vlan_id, on))
+ break;
+ }
}
void
diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h
index 8f5e6c7..e0186b9 100644
--- a/app/test-pmd/testpmd.h
+++ b/app/test-pmd/testpmd.h
@@ -492,7 +492,7 @@ void rx_vlan_strip_set_on_queue(portid_t port_id, uint16_t queue_id, int on);
void rx_vlan_filter_set(portid_t port_id, int on);
void rx_vlan_all_filter_set(portid_t port_id, int on);
-void rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
+int rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
void vlan_extend_set(portid_t port_id, int on);
void vlan_tpid_set(portid_t port_id, uint16_t tp_id);
void tx_vlan_set(portid_t port_id, uint16_t vlan_id);
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index ea3a1fb..064b5d6 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -1519,8 +1519,8 @@ rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id, int on)
return (-EINVAL);
}
FUNC_PTR_OR_ERR_RET(*dev->dev_ops->vlan_filter_set, -ENOTSUP);
- (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
- return (0);
+
+ return (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
}
int
--
1.7.9.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH v2] testpmd check return value of rte_eth_dev_vlan_filter()
2015-01-27 17:19 [dpdk-dev] [PATCH v2] testpmd check return value of rte_eth_dev_vlan_filter() Michal Jastrzebski
@ 2015-01-28 1:38 ` Qiu, Michael
2015-02-20 9:08 ` Jastrzebski, MichalX K
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 0/2] testpmd: " Michal Jastrzebski
1 sibling, 1 reply; 8+ messages in thread
From: Qiu, Michael @ 2015-01-28 1:38 UTC (permalink / raw)
To: Jastrzebski, MichalX K, dev
On 1/28/2015 1:20 AM, Michal Jastrzebski wrote:
> This patch modifies testpmd behavior when setting:
> rx_vlan add all vf_port (enabling all vlanids
> to be passed thru rx filter on VF).
> Rx_vlan_all_filter_set() function,
> checks if the next vlanid can be enabled by the driver.
> Number of vlanids is limited by the NIC and thus the NIC
> do not allow to enable more vlanids than it can allocate
> in VFTA table.
But what about if it is caused by other issue to lead a enable failure?
> v2 - fix formatting errors
>
> Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
> ---
> app/test-pmd/config.c | 15 +++++++++------
> app/test-pmd/testpmd.h | 2 +-
> lib/librte_ether/rte_ethdev.c | 4 ++--
> 3 files changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
> index c40f819..eda737e 100644
> --- a/app/test-pmd/config.c
> +++ b/app/test-pmd/config.c
> @@ -1643,21 +1643,22 @@ rx_vlan_filter_set(portid_t port_id, int on)
> "diag=%d\n", port_id, on, diag);
> }
>
> -void
> +int
> rx_vft_set(portid_t port_id, uint16_t vlan_id, int on)
> {
> int diag;
>
> if (port_id_is_invalid(port_id))
> - return;
> + return 1;
> if (vlan_id_is_invalid(vlan_id))
> - return;
> + return 1;
> diag = rte_eth_dev_vlan_filter(port_id, vlan_id, on);
> if (diag == 0)
> - return;
> + return 0;
> printf("rte_eth_dev_vlan_filter(port_pi=%d, vlan_id=%d, on=%d) failed "
> "diag=%d\n",
> port_id, vlan_id, on, diag);
> + return -1;
> }
>
> void
> @@ -1667,8 +1668,10 @@ rx_vlan_all_filter_set(portid_t port_id, int on)
>
> if (port_id_is_invalid(port_id))
> return;
> - for (vlan_id = 0; vlan_id < 4096; vlan_id++)
> - rx_vft_set(port_id, vlan_id, on);
> + for (vlan_id = 0; vlan_id < 4096; vlan_id++) {
Before "{" you use a Tab? One white space is OK.
Thanks,
Michael
> + if (rx_vft_set(port_id, vlan_id, on))
> + break;
> + }
> }
>
> void
> diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h
> index 8f5e6c7..e0186b9 100644
> --- a/app/test-pmd/testpmd.h
> +++ b/app/test-pmd/testpmd.h
> @@ -492,7 +492,7 @@ void rx_vlan_strip_set_on_queue(portid_t port_id, uint16_t queue_id, int on);
>
> void rx_vlan_filter_set(portid_t port_id, int on);
> void rx_vlan_all_filter_set(portid_t port_id, int on);
> -void rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
> +int rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
> void vlan_extend_set(portid_t port_id, int on);
> void vlan_tpid_set(portid_t port_id, uint16_t tp_id);
> void tx_vlan_set(portid_t port_id, uint16_t vlan_id);
> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
> index ea3a1fb..064b5d6 100644
> --- a/lib/librte_ether/rte_ethdev.c
> +++ b/lib/librte_ether/rte_ethdev.c
> @@ -1519,8 +1519,8 @@ rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id, int on)
> return (-EINVAL);
> }
> FUNC_PTR_OR_ERR_RET(*dev->dev_ops->vlan_filter_set, -ENOTSUP);
> - (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
> - return (0);
> +
> + return (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
> }
>
> int
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH v2] testpmd check return value of rte_eth_dev_vlan_filter()
2015-01-28 1:38 ` Qiu, Michael
@ 2015-02-20 9:08 ` Jastrzebski, MichalX K
0 siblings, 0 replies; 8+ messages in thread
From: Jastrzebski, MichalX K @ 2015-02-20 9:08 UTC (permalink / raw)
To: Qiu, Michael, dev
> -----Original Message-----
> From: Qiu, Michael
> Sent: Wednesday, January 28, 2015 2:38 AM
> To: Jastrzebski, MichalX K; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH v2] testpmd check return value of
> rte_eth_dev_vlan_filter()
>
> On 1/28/2015 1:20 AM, Michal Jastrzebski wrote:
> > This patch modifies testpmd behavior when setting:
> > rx_vlan add all vf_port (enabling all vlanids
> > to be passed thru rx filter on VF).
> > Rx_vlan_all_filter_set() function,
> > checks if the next vlanid can be enabled by the driver.
> > Number of vlanids is limited by the NIC and thus the NIC
> > do not allow to enable more vlanids than it can allocate
> > in VFTA table.
>
> But what about if it is caused by other issue to lead a enable failure?
Hi Michael,
I am sorry I am writing almost a month after you reply
But I had another issues required a 100% attention.
As I see in the function:
rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id, int on);
arguments like port_id and vlan_id are checked. Also if vlan-filtering
is enabled is checked. Each error is printed so the user is informed that
something went wrong and where to look for it.
I don't know what else could be checked here?
>
>
> > v2 - fix formatting errors
> >
> > Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
> > ---
> > app/test-pmd/config.c | 15 +++++++++------
> > app/test-pmd/testpmd.h | 2 +-
> > lib/librte_ether/rte_ethdev.c | 4 ++--
> > 3 files changed, 12 insertions(+), 9 deletions(-)
> >
> > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
> > index c40f819..eda737e 100644
> > --- a/app/test-pmd/config.c
> > +++ b/app/test-pmd/config.c
> > @@ -1643,21 +1643,22 @@ rx_vlan_filter_set(portid_t port_id, int on)
> > "diag=%d\n", port_id, on, diag);
> > }
> >
> > -void
> > +int
> > rx_vft_set(portid_t port_id, uint16_t vlan_id, int on)
> > {
> > int diag;
> >
> > if (port_id_is_invalid(port_id))
> > - return;
> > + return 1;
> > if (vlan_id_is_invalid(vlan_id))
> > - return;
> > + return 1;
> > diag = rte_eth_dev_vlan_filter(port_id, vlan_id, on);
> > if (diag == 0)
> > - return;
> > + return 0;
> > printf("rte_eth_dev_vlan_filter(port_pi=%d, vlan_id=%d, on=%d)
> failed "
> > "diag=%d\n",
> > port_id, vlan_id, on, diag);
> > + return -1;
> > }
> >
> > void
> > @@ -1667,8 +1668,10 @@ rx_vlan_all_filter_set(portid_t port_id, int on)
> >
> > if (port_id_is_invalid(port_id))
> > return;
> > - for (vlan_id = 0; vlan_id < 4096; vlan_id++)
> > - rx_vft_set(port_id, vlan_id, on);
> > + for (vlan_id = 0; vlan_id < 4096; vlan_id++) {
>
> Before "{" you use a Tab? One white space is OK.
>
> Thanks,
> Michael
>
> > + if (rx_vft_set(port_id, vlan_id, on))
> > + break;
> > + }
> > }
> >
> > void
> > diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h
> > index 8f5e6c7..e0186b9 100644
> > --- a/app/test-pmd/testpmd.h
> > +++ b/app/test-pmd/testpmd.h
> > @@ -492,7 +492,7 @@ void rx_vlan_strip_set_on_queue(portid_t port_id,
> uint16_t queue_id, int on);
> >
> > void rx_vlan_filter_set(portid_t port_id, int on);
> > void rx_vlan_all_filter_set(portid_t port_id, int on);
> > -void rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
> > +int rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
> > void vlan_extend_set(portid_t port_id, int on);
> > void vlan_tpid_set(portid_t port_id, uint16_t tp_id);
> > void tx_vlan_set(portid_t port_id, uint16_t vlan_id);
> > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
> > index ea3a1fb..064b5d6 100644
> > --- a/lib/librte_ether/rte_ethdev.c
> > +++ b/lib/librte_ether/rte_ethdev.c
> > @@ -1519,8 +1519,8 @@ rte_eth_dev_vlan_filter(uint8_t port_id,
> uint16_t vlan_id, int on)
> > return (-EINVAL);
> > }
> > FUNC_PTR_OR_ERR_RET(*dev->dev_ops->vlan_filter_set, -
> ENOTSUP);
> > - (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
> > - return (0);
> > +
> > + return (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
> > }
> >
> > int
^ permalink raw reply [flat|nested] 8+ messages in thread
* [dpdk-dev] [PATCH v3 0/2] testpmd: check return value of rte_eth_dev_vlan_filter()
2015-01-27 17:19 [dpdk-dev] [PATCH v2] testpmd check return value of rte_eth_dev_vlan_filter() Michal Jastrzebski
2015-01-28 1:38 ` Qiu, Michael
@ 2015-02-20 10:26 ` Michal Jastrzebski
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 1/2] doc: add information about limited number of vlan_ids Michal Jastrzebski
` (2 more replies)
1 sibling, 3 replies; 8+ messages in thread
From: Michal Jastrzebski @ 2015-02-20 10:26 UTC (permalink / raw)
To: dev
v3 changes:
- add seperate patch with testpmd_funcs.rst changes
v2 changes:
- fix formatting errors
This patchset modifies testpmd behavior when setting:
rx_vlan add all vf_port (enabling all vlanids
to be passed thru rx filter on VF).
Rx_vlan_all_filter_set() function,
checks if the next vlanid can be enabled by the driver.
Number of vlanids is limited by the NIC and thus the NIC
do not allow to enable more vlanids than it can allocate
in VFTA table.
tespmd_funcs.rst file is modified to provide a brief description
why enabling all vlan ids may not be possible.
Michal Jastrzebski (2):
doc: add information about limited number of vlan_ids
testpmd: check return value of rte_eth_dev_vlan_filter()
app/test-pmd/config.c | 15 +++++++++------
app/test-pmd/testpmd.h | 2 +-
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 ++
lib/librte_ether/rte_ethdev.c | 4 ++--
4 files changed, 14 insertions(+), 9 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* [dpdk-dev] [PATCH v3 1/2] doc: add information about limited number of vlan_ids
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 0/2] testpmd: " Michal Jastrzebski
@ 2015-02-20 10:26 ` Michal Jastrzebski
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 2/2] testpmd: check return value of rte_eth_dev_vlan_filter() Michal Jastrzebski
2015-03-07 21:28 ` [dpdk-dev] [PATCH v3 0/2] " De Lara Guarch, Pablo
2 siblings, 0 replies; 8+ messages in thread
From: Michal Jastrzebski @ 2015-02-20 10:26 UTC (permalink / raw)
To: dev
This patch adds information to testpmd_funcs.rst file,
about limited number of vlan_ids possible to be enabled
in a filter. This is limited to the maximum number of entries
possible in the VFTA table.
Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
---
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
index 218835a..17d5ccb 100644
--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst
+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
@@ -424,6 +424,8 @@ rx_vlan add (vlan_id|all) (port_id)
.. note::
VLAN filter must be set on that port. VLAN ID < 4096.
+ Depending on the NIC used, number of vlan_ids may be limited to the maximum entries
+ in VFTA table. This is important if enabling all vlan_ids.
rx_vlan rm
~~~~~~~~~~
--
1.7.9.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* [dpdk-dev] [PATCH v3 2/2] testpmd: check return value of rte_eth_dev_vlan_filter()
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 0/2] testpmd: " Michal Jastrzebski
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 1/2] doc: add information about limited number of vlan_ids Michal Jastrzebski
@ 2015-02-20 10:26 ` Michal Jastrzebski
2015-03-07 21:28 ` [dpdk-dev] [PATCH v3 0/2] " De Lara Guarch, Pablo
2 siblings, 0 replies; 8+ messages in thread
From: Michal Jastrzebski @ 2015-02-20 10:26 UTC (permalink / raw)
To: dev
This patch modifies testpmd behavior when setting:
rx_vlan add all vf_port (enabling all vlanids
to be passed thru rx filter on VF).
Rx_vlan_all_filter_set() function,
checks if the next vlanid can be enabled by the driver.
Number of vlanids is limited by the NIC and thus the NIC
do not allow to enable more vlanids than it can allocate
in VFTA table.
Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
---
app/test-pmd/config.c | 15 +++++++++------
app/test-pmd/testpmd.h | 2 +-
lib/librte_ether/rte_ethdev.c | 4 ++--
3 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 6bcd23c..4be3afa 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1648,21 +1648,22 @@ rx_vlan_filter_set(portid_t port_id, int on)
"diag=%d\n", port_id, on, diag);
}
-void
+int
rx_vft_set(portid_t port_id, uint16_t vlan_id, int on)
{
int diag;
if (port_id_is_invalid(port_id))
- return;
+ return 1;
if (vlan_id_is_invalid(vlan_id))
- return;
+ return 1;
diag = rte_eth_dev_vlan_filter(port_id, vlan_id, on);
if (diag == 0)
- return;
+ return 0;
printf("rte_eth_dev_vlan_filter(port_pi=%d, vlan_id=%d, on=%d) failed "
"diag=%d\n",
port_id, vlan_id, on, diag);
+ return -1;
}
void
@@ -1672,8 +1673,10 @@ rx_vlan_all_filter_set(portid_t port_id, int on)
if (port_id_is_invalid(port_id))
return;
- for (vlan_id = 0; vlan_id < 4096; vlan_id++)
- rx_vft_set(port_id, vlan_id, on);
+ for (vlan_id = 0; vlan_id < 4096; vlan_id++) {
+ if (rx_vft_set(port_id, vlan_id, on))
+ break;
+ }
}
void
diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h
index 581130b..de87a08 100644
--- a/app/test-pmd/testpmd.h
+++ b/app/test-pmd/testpmd.h
@@ -499,7 +499,7 @@ void rx_vlan_strip_set_on_queue(portid_t port_id, uint16_t queue_id, int on);
void rx_vlan_filter_set(portid_t port_id, int on);
void rx_vlan_all_filter_set(portid_t port_id, int on);
-void rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
+int rx_vft_set(portid_t port_id, uint16_t vlan_id, int on);
void vlan_extend_set(portid_t port_id, int on);
void vlan_tpid_set(portid_t port_id, uint16_t tp_id);
void tx_vlan_set(portid_t port_id, uint16_t vlan_id);
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 17be2f3..4cf2121 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -1524,8 +1524,8 @@ rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id, int on)
return (-EINVAL);
}
FUNC_PTR_OR_ERR_RET(*dev->dev_ops->vlan_filter_set, -ENOTSUP);
- (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
- return (0);
+
+ return (*dev->dev_ops->vlan_filter_set)(dev, vlan_id, on);
}
int
--
1.7.9.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/2] testpmd: check return value of rte_eth_dev_vlan_filter()
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 0/2] testpmd: " Michal Jastrzebski
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 1/2] doc: add information about limited number of vlan_ids Michal Jastrzebski
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 2/2] testpmd: check return value of rte_eth_dev_vlan_filter() Michal Jastrzebski
@ 2015-03-07 21:28 ` De Lara Guarch, Pablo
2015-03-09 11:00 ` Thomas Monjalon
2 siblings, 1 reply; 8+ messages in thread
From: De Lara Guarch, Pablo @ 2015-03-07 21:28 UTC (permalink / raw)
To: Jastrzebski, MichalX K, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michal Jastrzebski
> Sent: Friday, February 20, 2015 10:26 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v3 0/2] testpmd: check return value of
> rte_eth_dev_vlan_filter()
>
> v3 changes:
> - add seperate patch with testpmd_funcs.rst changes
>
> v2 changes:
> - fix formatting errors
>
> This patchset modifies testpmd behavior when setting:
> rx_vlan add all vf_port (enabling all vlanids
> to be passed thru rx filter on VF).
> Rx_vlan_all_filter_set() function,
> checks if the next vlanid can be enabled by the driver.
> Number of vlanids is limited by the NIC and thus the NIC
> do not allow to enable more vlanids than it can allocate
> in VFTA table.
> tespmd_funcs.rst file is modified to provide a brief description
> why enabling all vlan ids may not be possible.
>
> Michal Jastrzebski (2):
> doc: add information about limited number of vlan_ids
> testpmd: check return value of rte_eth_dev_vlan_filter()
>
> app/test-pmd/config.c | 15 +++++++++------
> app/test-pmd/testpmd.h | 2 +-
> doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 ++
> lib/librte_ether/rte_ethdev.c | 4 ++--
> 4 files changed, 14 insertions(+), 9 deletions(-)
>
> --
> 1.7.9.5
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/2] testpmd: check return value of rte_eth_dev_vlan_filter()
2015-03-07 21:28 ` [dpdk-dev] [PATCH v3 0/2] " De Lara Guarch, Pablo
@ 2015-03-09 11:00 ` Thomas Monjalon
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Monjalon @ 2015-03-09 11:00 UTC (permalink / raw)
To: Jastrzebski, MichalX K; +Cc: dev
> > v3 changes:
> > - add seperate patch with testpmd_funcs.rst changes
> >
> > v2 changes:
> > - fix formatting errors
> >
> > This patchset modifies testpmd behavior when setting:
> > rx_vlan add all vf_port (enabling all vlanids
> > to be passed thru rx filter on VF).
> > Rx_vlan_all_filter_set() function,
> > checks if the next vlanid can be enabled by the driver.
> > Number of vlanids is limited by the NIC and thus the NIC
> > do not allow to enable more vlanids than it can allocate
> > in VFTA table.
> > tespmd_funcs.rst file is modified to provide a brief description
> > why enabling all vlan ids may not be possible.
> >
> > Michal Jastrzebski (2):
> > doc: add information about limited number of vlan_ids
> > testpmd: check return value of rte_eth_dev_vlan_filter()
>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-03-09 11:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 17:19 [dpdk-dev] [PATCH v2] testpmd check return value of rte_eth_dev_vlan_filter() Michal Jastrzebski
2015-01-28 1:38 ` Qiu, Michael
2015-02-20 9:08 ` Jastrzebski, MichalX K
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 0/2] testpmd: " Michal Jastrzebski
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 1/2] doc: add information about limited number of vlan_ids Michal Jastrzebski
2015-02-20 10:26 ` [dpdk-dev] [PATCH v3 2/2] testpmd: check return value of rte_eth_dev_vlan_filter() Michal Jastrzebski
2015-03-07 21:28 ` [dpdk-dev] [PATCH v3 0/2] " De Lara Guarch, Pablo
2015-03-09 11:00 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).