Skip to contentSkip to conversation

test/ipsec: fix a typo in function name

PATCH Applied Thomas Monjalon 3 participants 3 messages Feb 19, 2020 – Feb 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/ipsec: fix a typo in function name

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")
---
 app/test/test_ipsec.c            | 4 ++--
 examples/ip_fragmentation/main.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
app/test/test_ipsec.c +2 -2
index 7dc83fee7e..9e14472938 100644
@@ -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;
examples/ip_fragmentation/main.c +1 -1
index 104612339c..28febf49e7 100644
@@ -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)
 {
Signature · 1 line
2.25.0
Acked-by on v1 1/1
#1 lore raw
Quoted 43 lines

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")
---
 app/test/test_ipsec.c            | 4 ++--
 examples/ip_fragmentation/main.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
app/test/test_ipsec.c +2 -2
index 7dc83fee7e..9e14472938 100644
@@ -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;
examples/ip_fragmentation/main.c +0 -0
index 104612339c..28febf49e7 100644

examples/ip_fragmentation/main.c check_all_ports_link_status(uint32_t port_mask)

Quoted 9 lines
examples/ip_fragmentation/main.c +1 -2
@@ -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)
 {
--
Quoted 1 line

2.25.0

Applied
#2 lore raw
Quoted 7 lines
Quoted 7 lines

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.

Quoted 7 lines
Quoted 5 lines
Fixes 05fe65eb66b2 ("test/ipsec: introduce functional test")

---

Applied to dpdk-next-crypto

Thanks.