test/ipsec: fix a typo in function name

Message ID 20200219112650.2260407-1-thomas@monjalon.net (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series test/ipsec: fix a typo in function name |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/Intel-compilation fail apply issues
ci/travis-robot success Travis build: passed

Commit Message

Thomas Monjalon Feb. 19, 2020, 11:26 a.m. UTC
  The name of the static function check_cryptodev_capablity()
is fixed for the word "capability".
There is no functional change.

The same typo is fixed in a comment in ip_fragmentation example.

Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test")
Cc: stable@dpdk.org

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 app/test/test_ipsec.c            | 4 ++--
 examples/ip_fragmentation/main.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
  

Comments

Ananyev, Konstantin Feb. 19, 2020, 11:49 a.m. UTC | #1
> 
> The name of the static function check_cryptodev_capablity()
> is fixed for the word "capability".
> There is no functional change.
> 
> The same typo is fixed in a comment in ip_fragmentation example.
> 
> Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---
>  app/test/test_ipsec.c            | 4 ++--
>  examples/ip_fragmentation/main.c | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c
> index 7dc83fee7e..9e14472938 100644
> --- a/app/test/test_ipsec.c
> +++ b/app/test/test_ipsec.c
> @@ -237,7 +237,7 @@ fill_crypto_xform(struct ipsec_unitest_params *ut_params,
>  }
> 
>  static int
> -check_cryptodev_capablity(const struct ipsec_unitest_params *ut,
> +check_cryptodev_capability(const struct ipsec_unitest_params *ut,
>  		uint8_t dev_id)
>  {
>  	struct rte_cryptodev_sym_capability_idx cap_idx;
> @@ -302,7 +302,7 @@ testsuite_setup(void)
> 
>  	/* Find first valid crypto device */
>  	for (i = 0; i < nb_devs; i++) {
> -		rc = check_cryptodev_capablity(ut_params, i);
> +		rc = check_cryptodev_capability(ut_params, i);
>  		if (rc == 0) {
>  			ts_params->valid_dev = i;
>  			ts_params->valid_dev_found = 1;
> diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c
> index 104612339c..28febf49e7 100644
> --- a/examples/ip_fragmentation/main.c
> +++ b/examples/ip_fragmentation/main.c
> @@ -646,7 +646,7 @@ check_all_ports_link_status(uint32_t port_mask)
>  	}
>  }
> 
> -/* Check L3 packet type detection capablity of the NIC port */
> +/* Check L3 packet type detection capability of the NIC port */
>  static int
>  check_ptype(int portid)
>  {
> --

Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

> 2.25.0
  
Akhil Goyal Feb. 20, 2020, 10:37 a.m. UTC | #2
> >
> > The name of the static function check_cryptodev_capablity()
> > is fixed for the word "capability".
> > There is no functional change.
> >
> > The same typo is fixed in a comment in ip_fragmentation example.
> >
> > Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> > ---
> 
> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

Applied to dpdk-next-crypto

Thanks.
  

Patch

diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c
index 7dc83fee7e..9e14472938 100644
--- a/app/test/test_ipsec.c
+++ b/app/test/test_ipsec.c
@@ -237,7 +237,7 @@  fill_crypto_xform(struct ipsec_unitest_params *ut_params,
 }
 
 static int
-check_cryptodev_capablity(const struct ipsec_unitest_params *ut,
+check_cryptodev_capability(const struct ipsec_unitest_params *ut,
 		uint8_t dev_id)
 {
 	struct rte_cryptodev_sym_capability_idx cap_idx;
@@ -302,7 +302,7 @@  testsuite_setup(void)
 
 	/* Find first valid crypto device */
 	for (i = 0; i < nb_devs; i++) {
-		rc = check_cryptodev_capablity(ut_params, i);
+		rc = check_cryptodev_capability(ut_params, i);
 		if (rc == 0) {
 			ts_params->valid_dev = i;
 			ts_params->valid_dev_found = 1;
diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c
index 104612339c..28febf49e7 100644
--- a/examples/ip_fragmentation/main.c
+++ b/examples/ip_fragmentation/main.c
@@ -646,7 +646,7 @@  check_all_ports_link_status(uint32_t port_mask)
 	}
 }
 
-/* Check L3 packet type detection capablity of the NIC port */
+/* Check L3 packet type detection capability of the NIC port */
 static int
 check_ptype(int portid)
 {