[dpdk-dev] test: fix the parameter issue of test case

Message ID 1499932836-25309-1-git-send-email-herbert.guan@arm.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Herbert Guan July 13, 2017, 8 a.m. UTC
  When test case "test_balance_l23_tx_burst_ipv4_toggle_ip_addr" is
calling balance_l23_tx_burst(), the ip_addr instead of mac_addr
should be toggled according to the test name.

Signed-off-by: Herbert Guan <herbert.guan@arm.com>
---
 test/test/test_link_bonding.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jianbo Liu July 13, 2017, 8:48 a.m. UTC | #1
On 13 July 2017 at 16:00, Herbert Guan <herbert.guan@arm.com> wrote:
> When test case "test_balance_l23_tx_burst_ipv4_toggle_ip_addr" is
> calling balance_l23_tx_burst(), the ip_addr instead of mac_addr
> should be toggled according to the test name.
>
> Signed-off-by: Herbert Guan <herbert.guan@arm.com>
> ---
>  test/test/test_link_bonding.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c
> index aa2a1a2..12dd91d 100644
> --- a/test/test/test_link_bonding.c
> +++ b/test/test/test_link_bonding.c
> @@ -2789,7 +2789,7 @@ struct rte_fdir_conf fdir_conf = {
>  static int
>  test_balance_l23_tx_burst_ipv4_toggle_ip_addr(void)
>  {
> -       return balance_l23_tx_burst(0, 1, 1, 0);
> +       return balance_l23_tx_burst(0, 1, 0, 1);
>  }
>
>  static int
> --
> 1.8.3.1
>

Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
  
Thomas Monjalon July 21, 2017, 6:42 a.m. UTC | #2
Declan, you are the bonding maintainer, please confirm this fix.

13/07/2017 11:48, Jianbo Liu:
> On 13 July 2017 at 16:00, Herbert Guan <herbert.guan@arm.com> wrote:
> > When test case "test_balance_l23_tx_burst_ipv4_toggle_ip_addr" is
> > calling balance_l23_tx_burst(), the ip_addr instead of mac_addr
> > should be toggled according to the test name.
> >
> > Signed-off-by: Herbert Guan <herbert.guan@arm.com>
> > ---
> >  test/test/test_link_bonding.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c
> > index aa2a1a2..12dd91d 100644
> > --- a/test/test/test_link_bonding.c
> > +++ b/test/test/test_link_bonding.c
> > @@ -2789,7 +2789,7 @@ struct rte_fdir_conf fdir_conf = {
> >  static int
> >  test_balance_l23_tx_burst_ipv4_toggle_ip_addr(void)
> >  {
> > -       return balance_l23_tx_burst(0, 1, 1, 0);
> > +       return balance_l23_tx_burst(0, 1, 0, 1);
> >  }
> >
> >  static int
> > --
> > 1.8.3.1
> >
> 
> Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
>
  
Doherty, Declan July 25, 2017, 9:46 a.m. UTC | #3
On 13/07/2017 9:00 AM, Herbert Guan wrote:
> When test case "test_balance_l23_tx_burst_ipv4_toggle_ip_addr" is
> calling balance_l23_tx_burst(), the ip_addr instead of mac_addr
> should be toggled according to the test name.
>
> Signed-off-by: Herbert Guan <herbert.guan@arm.com>
> ---
>  test/test/test_link_bonding.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c
> index aa2a1a2..12dd91d 100644
> --- a/test/test/test_link_bonding.c
> +++ b/test/test/test_link_bonding.c
> @@ -2789,7 +2789,7 @@ struct rte_fdir_conf fdir_conf = {
>  static int
>  test_balance_l23_tx_burst_ipv4_toggle_ip_addr(void)
>  {
> -	return balance_l23_tx_burst(0, 1, 1, 0);
> +	return balance_l23_tx_burst(0, 1, 0, 1);
>  }
>
>  static int
>

Acked-by: Declan Doherty <declan.doherty@intel.com>
  
Ferruh Yigit July 31, 2017, 3:34 p.m. UTC | #4
On 7/25/2017 10:46 AM, Declan Doherty wrote:
> On 13/07/2017 9:00 AM, Herbert Guan wrote:
>> When test case "test_balance_l23_tx_burst_ipv4_toggle_ip_addr" is
>> calling balance_l23_tx_burst(), the ip_addr instead of mac_addr
>> should be toggled according to the test name.

Fixes: 92073ef961ee ("bond: unit tests")
Cc: stable@dpdk.org

>>
>> Signed-off-by: Herbert Guan <herbert.guan@arm.com>

Acked-by: Jianbo Liu <jianbo.liu@linaro.org>

> Acked-by: Declan Doherty <declan.doherty@intel.com>

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

Patch

diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c
index aa2a1a2..12dd91d 100644
--- a/test/test/test_link_bonding.c
+++ b/test/test/test_link_bonding.c
@@ -2789,7 +2789,7 @@  struct rte_fdir_conf fdir_conf = {
 static int
 test_balance_l23_tx_burst_ipv4_toggle_ip_addr(void)
 {
-	return balance_l23_tx_burst(0, 1, 1, 0);
+	return balance_l23_tx_burst(0, 1, 0, 1);
 }
 
 static int