i40e: spellin fixes
PATCH 1/10 i40e: spellin fixes
From: Stephen Hemminger <[email protected]>
Spelling errors found with code spell.
--- lib/librte_pmd_i40e/i40e_ethdev.c | 8 ++++---- lib/librte_pmd_i40e/i40e_ethdev.h | 2 +- lib/librte_pmd_i40e/i40e_rxtx.c | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-)
lib/librte_pmd_i40e/i40e_ethdev.c +4 -4
@@ -3810,16 +3810,16 @@ i40e_dev_handle_vfr_event(struct rte_eth_dev *dev) index = abs_vf_id /I40E_UINT32_BIT_SIZE ; offset = abs_vf_id %I40E_UINT32_BIT_SIZE ; val =I40E_READ_REG (hw,I40E_GLGEN_VFLRSTAT (index)); -/* VFR event occured */ +/* VFR event occurred */ if (val & (0x1 << offset)) {int ret;/* Clear the event first */ I40E_WRITE_REG (hw,I40E_GLGEN_VFLRSTAT (index), (0x1 << offset)); -PMD_DRV_LOG (INFO ,"VF %u reset occured" , abs_vf_id); +PMD_DRV_LOG (INFO ,"VF %u reset occurred" , abs_vf_id);/** -* Only notify a VF reset event occured, +* Only notify a VF reset event occurred, * don't trigger another SW reset */ ret =i40e_pf_host_vf_reset (&pf->vfs[i],0 );
@@ -5007,7 +5007,7 @@ i40e_pf_config_rss(struct i40e_pf *pf)/* * If both VMDQ and RSS enabled, not all of PF queues are configured. -* It's necessary to calulate the actual PF queues that are configured. +* It's necessary to calculate the actual PF queues that are configured. */ if (pf->dev_data->dev_conf.rxmode.mq_mode Ð_MQ_RX_VMDQ_FLAG ) { num =i40e_pf_calc_configured_queues_num (pf);
lib/librte_pmd_i40e/i40e_ethdev.h +1 -1
@@ -273,7 +273,7 @@ enum I40E_VF_STATE {struct i40e_pf_vf {struct i40e_pf *pf;struct i40e_vsi *vsi; -enum I40E_VF_STATE state;/* The number of queue pairs availiable */ +enum I40E_VF_STATE state;/* The number of queue pairs available */ uint16_t vf_idx;/* VF index in pf->vfs */ uint16_t lan_nb_qps;/* Actual queues allocated */ uint16_t reset_cnt;/* Total vf reset times */
lib/librte_pmd_i40e/i40e_rxtx.c +3 -3
@@ -1637,7 +1637,7 @@ i40e_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) rxq = dev->data->rx_queues[rx_queue_id];/* -* rx_queue_id is queue id aplication refers to, while +* rx_queue_id is queue id application refers to, while * rxq->reg_idx is the real queue index. */ err =i40e_switch_rx_queue (hw, rxq->reg_idx, FALSE);
@@ -1667,7 +1667,7 @@ i40e_dev_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id) txq = dev->data->tx_queues[tx_queue_id];/* -* tx_queue_id is queue id aplication refers to, while +* tx_queue_id is queue id application refers to, while * rxq->reg_idx is the real queue index. */ err =i40e_switch_tx_queue (hw, txq->reg_idx, TRUE);
@@ -1690,7 +1690,7 @@ i40e_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) txq = dev->data->tx_queues[tx_queue_id];/* -* tx_queue_id is queue id aplication refers to, while +* tx_queue_id is queue id application refers to, while * txq->reg_idx is the real queue index. */ err =i40e_switch_tx_queue (hw, txq->reg_idx, FALSE);
Signature · 1 line
2.1.4
PATCH 2/10 bond: fix spelling errors
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
Bad spelling in comments found by codespell
--- lib/librte_pmd_bond/rte_eth_bond_8023ad.c | 2 +- lib/librte_pmd_bond/rte_eth_bond_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/librte_pmd_bond/rte_eth_bond_8023ad.c +1 -1
@@ -896,7 +896,7 @@ bond_mode_8023ad_activate_slave(struct rte_eth_dev *bond_dev, uint8_t slave_id)sizeof (struct rte_pktmbuf_pool_private ), rte_pktmbuf_pool_init, NULL, rte_pktmbuf_init, NULL, socket_id, MEMPOOL_F_NO_SPREAD); -/* Any memory allocation failure in initalization is critical because +/* Any memory allocation failure in initialization is critical because * resources can't be free, so reinitialization is impossible. */ if (port->mbuf_pool ==NULL ) { rte_panic("Slave %u: Failed to create memory pool '%s': %s\n",
lib/librte_pmd_bond/rte_eth_bond_private.h +1 -1
@@ -165,7 +165,7 @@ extern struct eth_dev_ops default_dev_ops;int valid_bonded_ethdev (struct rte_eth_dev *eth_dev); -/* Search given slave array to find possition of given id. +/* Search given slave array to find position of given id. * Return slave pos or slaves_count if not found. */ static inline uint8_t find_slave_by_id (uint8_t *slaves,uint8_t slaves_count,uint8_t slave_id) {
Signature · 1 line
2.1.4
PATCH 3/10 eal: fix spelling error
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
--- lib/librte_eal/common/include/rte_alarm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eal/common/include/rte_alarm.h +1 -1
@@ -91,7 +91,7 @@ int rte_eal_alarm_set(uint64_t us, rte_eal_alarm_callback cb, void *cb_arg);* the number of canceled alarm callback functions * - value greater or equal 0 and rte_errno set to EINPROGRESS, at least one * alarm could not be canceled because cancellation was requested from alarm -* callback context. Returned value is the number of succesfuly canceled +* callback context. Returned value is the number of successfully canceled * alarm callbacks * - 0 and rte_errno set to ENOENT - no alarm found * - -1 and rte_errno set to EINVAL - invalid parameter (NULL callback)
Signature · 1 line
2.1.4
PATCH 4/10 ip_frag: fix spelling errors
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
--- lib/librte_ip_frag/rte_ip_frag.h | 4 ++-- lib/librte_ip_frag/rte_ipv4_reassembly.c | 2 +- lib/librte_ip_frag/rte_ipv6_reassembly.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
lib/librte_ip_frag/rte_ip_frag.h +2 -2
@@ -229,7 +229,7 @@ rte_ipv6_fragment_packet(struct rte_mbuf *pkt_in,* Pointer to the IPv6 fragment extension header. * @return * Pointer to mbuf for reassembled packet, or NULL if: -* - an error occured. +* - an error occurred. * - not all fragments of the packet are collected yet. */ struct rte_mbuf *rte_ipv6_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl,
@@ -305,7 +305,7 @@ int32_t rte_ipv4_fragment_packet(struct rte_mbuf *pkt_in,* Pointer to the IPV4 header inside the fragment. * @return * Pointer to mbuf for reassebled packet, or NULL if: -* - an error occured. +* - an error occurred. * - not all fragments of the packet are collected yet. */ struct rte_mbuf * rte_ipv4_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl,
lib/librte_ip_frag/rte_ipv4_reassembly.c +1 -1
@@ -111,7 +111,7 @@ ipv4_frag_reassemble(const struct ip_frag_pkt *fp)* Pointer to the IPV4 header inside the fragment. * @return * Pointer to mbuf for reassebled packet, or NULL if: -* - an error occured. +* - an error occurred. * - not all fragments of the packet are collected yet. */ struct rte_mbuf *
lib/librte_ip_frag/rte_ipv6_reassembly.c +1 -1
@@ -147,7 +147,7 @@ ipv6_frag_reassemble(const struct ip_frag_pkt *fp)* Pointer to the IPV6 fragment extension header. * @return * Pointer to mbuf for reassembled packet, or NULL if: -* - an error occured. +* - an error occurred. * - not all fragments of the packet are collected yet. */ #define MORE_FRAGS (x) (((x) & 0x100) >> 8)
Signature · 1 line
2.1.4
PATCH 5/10 app: fix spelling errors
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
Errors from codespell
--- app/test/test_cmdline_cirbuf.c | 2 +- app/test/test_distributor.c | 2 +- app/test/test_eal_flags.c | 4 ++-- app/test/test_func_reentrancy.c | 4 ++-- app/test/test_hash.c | 18 +++++++++--------- app/test/test_interrupts.c | 6 +++--- app/test/test_ivshmem.c | 2 +- app/test/test_link_bonding.c | 2 +- app/test/test_malloc.c | 2 +- app/test/test_mbuf.c | 2 +- app/test/test_spinlock.c | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-)
app/test/test_cmdline_cirbuf.c +1 -1
@@ -45,7 +45,7 @@#define CIRBUF_STR_HEAD " HEAD"#define CIRBUF_STR_TAIL "TAIL" -/* miscelaneous tests - they make bullseye happy */ +/* miscellaneous tests - they make bullseye happy */ static int test_cirbuf_string_misc (void ) {
app/test/test_distributor.c +1 -1
@@ -96,7 +96,7 @@ handle_work(void *arg)/* do basic sanity testing of the distributor. This test tests the following: * - send 32 packets through distributor with the same tag and ensure they * all go to the one worker -* - send 32 packets throught the distributor with two different tags and +* - send 32 packets through the distributor with two different tags and * verify that they go equally to two different workers. * - send 32 packets with different tags through the distributors and * just verify we get all packets back.
app/test/test_eal_flags.c +2 -2
@@ -747,7 +747,7 @@ test_dom0_misc_flags(void)/* check that some general flags don't prevent things from working. * All cases, apart from the first, app should run. -* No futher testing of output done. +* No further testing of output done. */ /* sanity check - failure with invalid option */ const char *argv0[] = {prgname, prefix, mp_flag,"-c" ,"1" ,"--invalid-opt" };
@@ -855,7 +855,7 @@ test_misc_flags(void)/* check that some general flags don't prevent things from working. * All cases, apart from the first, app should run. -* No futher testing of output done. +* No further testing of output done. */ /* sanity check - failure with invalid option */ const char *argv0[] = {prgname, prefix, mp_flag,"-c" ,"1" ,"--invalid-opt" };
app/test/test_func_reentrancy.c +2 -2
@@ -137,7 +137,7 @@ ring_create_lookup(__attribute__((unused)) void *arg)return -1 ; } -/* verify all ring created sucessful */ +/* verify all ring created successful */ for (i =0 ; i <MAX_ITER_TIMES ; i++) {snprintf (ring_name,sizeof (ring_name),"fr_test_%d_%d" , lcore_self, i);if (rte_ring_lookup (ring_name) ==NULL )
@@ -191,7 +191,7 @@ mempool_create_lookup(__attribute__((unused)) void *arg)return -1 ; } -/* verify all ring created sucessful */ +/* verify all ring created successful */ for (i =0 ; i <MAX_ITER_TIMES ; i++) {snprintf (mempool_name,sizeof (mempool_name),"fr_test_%d_%d" , lcore_self, i);if (rte_mempool_lookup (mempool_name) ==NULL )
app/test/test_hash.c +9 -9
@@ -953,7 +953,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (NULL );if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully without any parameter\n" ); +printf ("Impossible creating hash successfully without any parameter\n" );return -1 ; }
@@ -963,7 +963,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully with entries in parameter exceeded\n" ); +printf ("Impossible creating hash successfully with entries in parameter exceeded\n" );return -1 ; }
@@ -973,7 +973,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully with bucket_entries in parameter exceeded\n" ); +printf ("Impossible creating hash successfully with bucket_entries in parameter exceeded\n" );return -1 ; }
@@ -983,7 +983,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully if entries less than bucket_entries in parameter\n" ); +printf ("Impossible creating hash successfully if entries less than bucket_entries in parameter\n" );return -1 ; }
@@ -993,7 +993,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully if entries in parameter is not power of 2\n" ); +printf ("Impossible creating hash successfully if entries in parameter is not power of 2\n" );return -1 ; }
@@ -1003,7 +1003,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully if bucket_entries in parameter is not power of 2\n" ); +printf ("Impossible creating hash successfully if bucket_entries in parameter is not power of 2\n" );return -1 ; }
@@ -1013,7 +1013,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully if key_len in parameter is zero\n" ); +printf ("Impossible creating hash successfully if key_len in parameter is zero\n" );return -1 ; }
@@ -1023,7 +1023,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully if key_len is greater than the maximum\n" ); +printf ("Impossible creating hash successfully if key_len is greater than the maximum\n" );return -1 ; }
@@ -1033,7 +1033,7 @@ static int test_hash_creation_with_bad_parameters(void) handle =rte_hash_create (¶ms);if (handle !=NULL ) {rte_hash_free (handle); -printf ("Impossible creating hash sucessfully with invalid socket\n" ); +printf ("Impossible creating hash successfully with invalid socket\n" );return -1 ; }
app/test/test_interrupts.c +3 -3
@@ -408,7 +408,7 @@ test_interrupt(void)printf ("Check unknown valid interrupt full path\n" );if (test_interrupt_full_path_check (TEST_INTERRUPT_HANDLE_VALID ) <0 ) { -printf ("failure occured during checking unknown valid " +printf ("failure occurred during checking unknown valid " "interrupt full path\n" ); goto out; }
@@ -416,7 +416,7 @@ test_interrupt(void)printf ("Check valid UIO interrupt full path\n" );if (test_interrupt_full_path_check (TEST_INTERRUPT_HANDLE_VALID_UIO ) <0 ) { -printf ("failure occured during checking valid UIO interrupt " +printf ("failure occurred during checking valid UIO interrupt " "full path\n" ); goto out; }
@@ -424,7 +424,7 @@ test_interrupt(void)printf ("Check valid alarm interrupt full path\n" );if (test_interrupt_full_path_check (TEST_INTERRUPT_HANDLE_VALID_ALARM ) <0 ) { -printf ("failure occured during checking valid alarm " +printf ("failure occurred during checking valid alarm " "interrupt full path\n" ); goto out; }
app/test/test_ivshmem.c +1 -1
@@ -243,7 +243,7 @@ test_ivshmem_api_test(void)ASSERT (rte_ivshmem_metadata_cmdline_generate (buf,sizeof (buf),NONEXISTENT_METADATA ) <0 , -"Writen command line for nonexistent metadata" ); +"Written command line for nonexistent metadata" );ASSERT (strnlen (buf,sizeof (buf)) ==0 ,"Buffer is not empty" );/* add stuff to config */
app/test/test_link_bonding.c +1 -1
@@ -4366,7 +4366,7 @@ test_tlb_verify_mac_assignment(void)/* Set explicit MAC address */ TEST_ASSERT_SUCCESS (rte_eth_bond_mac_address_set ( test_params->bonded_port_id, (struct ether_addr *)bonded_mac), -"failed to set MAC addres" ); +"failed to set MAC address" );rte_eth_macaddr_get (test_params->bonded_port_id, &read_mac_addr); TEST_ASSERT_SUCCESS(memcmp(&bonded_mac, &read_mac_addr,
app/test/test_malloc.c +1 -1
@@ -813,7 +813,7 @@ err_return:return -1 ; } -/* Check if memory is avilable on a specific socket */ +/* Check if memory is available on a specific socket */ static int is_mem_on_socket (int32_t socket) {
app/test/test_mbuf.c +1 -1
@@ -506,7 +506,7 @@ test_pktmbuf_free_segment(void)* Stress test for rte_mbuf atomic refcnt. * Implies that: * RTE_MBUF_REFCNT and RTE_MBUF_REFCNT_ATOMIC are both defined. -* For more efficency, recomended to run with RTE_LIBRTE_MBUF_DEBUG defined. +* For more efficiency, recommended to run with RTE_LIBRTE_MBUF_DEBUG defined. */ #if definedRTE_MBUF_REFCNT && definedRTE_MBUF_REFCNT_ATOMIC
app/test/test_spinlock.c +1 -1
@@ -203,7 +203,7 @@ test_spinlock_perf(void)/* * Use rte_spinlock_trylock() to trylock a spinlock object, -* If it could not lock the object sucessfully, it would +* If it could not lock the object successfully, it would * return immediately and the variable of "count" would be * increased by one per times. the value of "count" could be * checked as the result later.
Signature · 1 line
2.1.4
PATCH 6/10 examples: fix spelling errors
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
Run codespell over examples
--- examples/dpdk_qat/crypto.c | 2 +- examples/l3fwd-power/main.c | 2 +- examples/l3fwd/main.c | 2 +- examples/multi_process/l2fwd_fork/flib.h | 2 +- examples/netmap_compat/lib/compat_netmap.c | 2 +- examples/vhost/main.c | 12 ++++++------ examples/vhost_xen/main.c | 2 +- examples/vhost_xen/xenstore_parse.c | 4 ++-- 8 files changed, 14 insertions(+), 14 deletions(-)
examples/dpdk_qat/crypto.c +1 -1
@@ -720,7 +720,7 @@ per_core_crypto_init(uint32_t lcore_id) }/* -* Set the address translation callback for virtual to physcial address +* Set the address translation callback for virtual to physical address * mapping. This will be called by the QAT driver during initialisation only. */ status = cpaCySetAddressTranslation(qaCoreConf[lcore_id].instanceHandle,
examples/l3fwd-power/main.c +1 -1
@@ -935,7 +935,7 @@ main_loop(__attribute__((unused)) void *dummy)*/ rte_delay_us (lcore_idle_hint); else -/* long sleep force runing thread to suspend */ +/* long sleep force running thread to suspend */ usleep (lcore_idle_hint ); stats[lcore_id].sleep_time += lcore_idle_hint;
examples/l3fwd/main.c +1 -1
@@ -1256,7 +1256,7 @@ processx4_step3(struct rte_mbuf *pkt[FWDSTEP], uint16_t dst_port[FWDSTEP])* Suppose we have array of destionation ports: * dst_port[] = {a, b, c, d,, e, ... } * dp1 should contain: <a, b, c, d>, dp2: <b, c, d, e>. -* We doing 4 comparisions at once and the result is 4 bit mask. +* We doing 4 comparsions at once and the result is 4 bit mask. * This mask is used as an index into prebuild array of pnum values. */ static inline uint16_t *
examples/multi_process/l2fwd_fork/flib.h +1 -1
@@ -120,7 +120,7 @@ int flib_register_slave_exit_notify(unsigned slave_id,/** * Assign a lcore ID to non-slave thread. Non-slave thread refers to thread that * not created by function rte_eal_remote_launch or rte_eal_mp_remote_launch. -* These threads can either bind lcore or float among differnt lcores. +* These threads can either bind lcore or float among different lcores. * This lcore ID will be unique in multi-thread or multi-process DPDK running * environment, then it can benefit from using the cache mechanism provided in * mempool library.
examples/netmap_compat/lib/compat_netmap.c +1 -1
@@ -160,7 +160,7 @@ mbuf_to_slot(struct rte_mbuf *mbuf, struct netmap_ring *r, uint32_t index)/** * Given a Netmap ring and a slot index for that ring, construct a dpdk mbuf * from the data held in the buffer associated with the slot. -* Allocation/deallocation of the dpdk mbuf are the responsability of the +* Allocation/deallocation of the dpdk mbuf are the responsibility of the * caller. * Note that mbuf chains are not supported. */
examples/vhost/main.c +6 -6
@@ -1326,7 +1326,7 @@ switch_worker(__attribute__((unused)) void *arg)/* * This function gets available ring number for zero copy rx. -* Only one thread will call this funciton for a paticular virtio device, +* Only one thread will call this funciton for a particular virtio device, * so, it is designed as non-thread-safe function. */ static inline uint32_t __attribute__((always_inline))
@@ -1342,7 +1342,7 @@ get_available_ring_num_zcp(struct virtio_net *dev)/* * This function gets available ring index for zero copy rx, * it will retry 'burst_rx_retry_num' times till it get enough ring index. -* Only one thread will call this funciton for a paticular virtio device, +* Only one thread will call this funciton for a particular virtio device, * so, it is designed as non-thread-safe function. */ static inline uint32_t __attribute__((always_inline))
@@ -2413,8 +2413,8 @@ destroy_device (volatile struct virtio_net *dev) }/* -* Calculate the region count of physical continous regions for one particular -* region of whose vhost virtual address is continous. The particular region +* Calculate the region count of physical continuous regions for one particular +* region of whose vhost virtual address is continuous. The particular region * start from vva_start, with size of 'size' in argument. */ static uint32_t
@@ -2462,9 +2462,9 @@ check_hpa_regions(uint64_t vva_start, uint64_t size) }/* -* Divide each region whose vhost virtual address is continous into a few +* Divide each region whose vhost virtual address is continuous into a few * sub-regions, make sure the physical address within each sub-region are -* continous. And fill offset(to GPA) and size etc. information of each +* continuous. And fill offset(to GPA) and size etc. information of each * sub-region into regions_hpa. */ static uint32_t
examples/vhost_xen/main.c +1 -1
@@ -561,7 +561,7 @@ gpa_to_vva(struct virtio_net *dev, uint64_t guest_pa)/* * This function adds buffers to the virtio devices RX virtqueue. Buffers can * be received from the physical port or from another virtio device. A packet -* count is returned to indicate the number of packets that were succesfully +* count is returned to indicate the number of packets that were successfully * added to the RX queue. */ static inline uint32_t __attribute__((always_inline))
examples/vhost_xen/xenstore_parse.c +2 -2
@@ -299,7 +299,7 @@ err: }/* -* This function maps grant node of vring or mbuf pool to a continous virtual address space, +* This function maps grant node of vring or mbuf pool to a continuous virtual address space, * and returns mapped address, pfn array, index array * @param gntnode * Pointer to grant node
@@ -468,7 +468,7 @@ cleanup_mempool(struct xen_mempool *mempool)/* * process mempool node idx#_mempool_gref, idx = 0, 1, 2... -* untill we encounter a node that doesn't exist. +* until we encounter a node that doesn't exist. */ int parse_mempoolnode (struct xen_guest *guest)
Signature · 1 line
2.1.4
PATCH 7/10 vhost: fix spelling errors
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
More codespell
--- lib/librte_vhost/eventfd_link/eventfd_link.h | 2 +- lib/librte_vhost/rte_virtio_net.h | 2 +- lib/librte_vhost/vhost_rxtx.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
lib/librte_vhost/eventfd_link/eventfd_link.h +1 -1
@@ -66,7 +66,7 @@#define EVENTFD_COPY 1/* -* arguements for the EVENTFD_COPY ioctl +* arguments for the EVENTFD_COPY ioctl */ struct eventfd_copy {unsigned target_fd;/* fd in the target pid */
lib/librte_vhost/rte_virtio_net.h +1 -1
@@ -188,7 +188,7 @@ int rte_vhost_driver_session_start(void);/** * This function adds buffers to the virtio devices RX virtqueue. Buffers can * be received from the physical port or from another virtual device. A packet -* count is returned to indicate the number of packets that were succesfully +* count is returned to indicate the number of packets that were successfully * added to the RX queue. * @param queue_id * virtio queue index in mq case
lib/librte_vhost/vhost_rxtx.c +2 -2
@@ -45,7 +45,7 @@/** * This function adds buffers to the virtio devices RX virtqueue. Buffers can * be received from the physical port or from another virtio device. A packet -* count is returned to indicate the number of packets that are succesfully +* count is returned to indicate the number of packets that are successfully * added to the RX queue. This function works when mergeable is disabled. */ static inline uint32_t __attribute__((always_inline))
@@ -662,7 +662,7 @@ rte_vhost_dequeue_burst(struct virtio_net *dev, uint16_t queue_id,if (seg_avail ==0 ) {/* * The current segment hasn't -* room to accomodate more +* room to accommodate more * data. */ cur->data_len = seg_offset;
Signature · 1 line
2.1.4
PATCH 8/10 malloc: spelling fix
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
--- lib/librte_malloc/rte_malloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_malloc/rte_malloc.h +1 -1
@@ -327,7 +327,7 @@ rte_malloc_set_limit(const char *type, size_t max);* rte_malloc * * @param addr -* Adress obtained from a previous rte_malloc call +* Address obtained from a previous rte_malloc call * @return * NULL on error * otherwise return physical address of the buffer
Signature · 1 line
2.1.4
PATCH 9/10 ring: fix spelling error
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
--- lib/librte_pmd_ring/rte_eth_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_pmd_ring/rte_eth_ring.c +1 -1
@@ -421,7 +421,7 @@ static int parse_kvlist (const char *key __rte_unused, const char *value, void * ret = -EINVAL ;if (!name) { -RTE_LOG (WARNING ,PMD ,"command line paramter is empty for ring pmd!\n" ); +RTE_LOG (WARNING ,PMD ,"command line parameter is empty for ring pmd!\n" ); goto out; }
Signature · 1 line
2.1.4
PATCH 10/10 ixgbe: spelling fixes
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
---
This file comes from common code and probably has to be fixed upstream.
--- lib/librte_pmd_ixgbe/ixgbe/ixgbe_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_pmd_ixgbe/ixgbe/ixgbe_type.h +2 -2
@@ -46,7 +46,7 @@ POSSIBILITY OF SUCH DAMAGE.* * - IXGBE_ERROR_POLLING * This category is for errors related to polling/timeout issues and should be -* used in any case where the timeout occured, or a failure to obtain a lock, or +* used in any case where the timeout occurred, or a failure to obtain a lock, or * failure to receive data within the time limit. * * - IXGBE_ERROR_CAUTION
@@ -1911,7 +1911,7 @@ enum {#define IXGBE_MACC_FS 0x00040000#define IXGBE_MAC_RX2TX_LPBK 0x00000002 -/* Veto Bit definiton */ +/* Veto Bit definition */ #define IXGBE_MMNGC_MNG_VETO 0x00000001/* LINKS Bit Masks */
Signature · 1 line
2.1.4
Neil Horman
Acked-byQuoted 92 lines · Stephen Hemminger
From: Stephen Hemminger <[email protected]>
Spelling errors found with code spell.
Signed-off-by Stephen Hemminger <[email protected]>--- lib/librte_pmd_i40e/i40e_ethdev.c | 8 ++++---- lib/librte_pmd_i40e/i40e_ethdev.h | 2 +- lib/librte_pmd_i40e/i40e_rxtx.c | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-)lib/librte_pmd_i40e/i40e_ethdev.c +4
-4@@ -3810,16 +3810,16 @@ i40e_dev_handle_vfr_event(struct rte_eth_dev *dev) index = abs_vf_id /I40E_UINT32_BIT_SIZE ; offset = abs_vf_id %I40E_UINT32_BIT_SIZE ; val =I40E_READ_REG (hw,I40E_GLGEN_VFLRSTAT (index)); -/* VFR event occured */ +/* VFR event occurred */ if (val & (0x1 << offset)) {int ret;/* Clear the event first */ I40E_WRITE_REG (hw,I40E_GLGEN_VFLRSTAT (index), (0x1 << offset)); -PMD_DRV_LOG (INFO ,"VF %u reset occured" , abs_vf_id); +PMD_DRV_LOG (INFO ,"VF %u reset occurred" , abs_vf_id);/** -* Only notify a VF reset event occured, +* Only notify a VF reset event occurred, * don't trigger another SW reset */ ret =i40e_pf_host_vf_reset (&pf->vfs[i],0 );@@ -5007,7 +5007,7 @@ i40e_pf_config_rss(struct i40e_pf *pf)/* * If both VMDQ and RSS enabled, not all of PF queues are configured. -* It's necessary to calulate the actual PF queues that are configured. +* It's necessary to calculate the actual PF queues that are configured. */ if (pf->dev_data->dev_conf.rxmode.mq_mode Ð_MQ_RX_VMDQ_FLAG ) { num =i40e_pf_calc_configured_queues_num (pf);lib/librte_pmd_i40e/i40e_ethdev.h +1
-1@@ -273,7 +273,7 @@ enum I40E_VF_STATE {struct i40e_pf_vf {struct i40e_pf *pf;struct i40e_vsi *vsi; -enum I40E_VF_STATE state;/* The number of queue pairs availiable */ +enum I40E_VF_STATE state;/* The number of queue pairs available */ uint16_t vf_idx;/* VF index in pf->vfs */ uint16_t lan_nb_qps;/* Actual queues allocated */ uint16_t reset_cnt;/* Total vf reset times */ lib/librte_pmd_i40e/i40e_rxtx.c +3
-3@@ -1637,7 +1637,7 @@ i40e_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) rxq = dev->data->rx_queues[rx_queue_id];/* -* rx_queue_id is queue id aplication refers to, while +* rx_queue_id is queue id application refers to, while * rxq->reg_idx is the real queue index. */ err =i40e_switch_rx_queue (hw, rxq->reg_idx, FALSE);@@ -1667,7 +1667,7 @@ i40e_dev_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id) txq = dev->data->tx_queues[tx_queue_id];/* -* tx_queue_id is queue id aplication refers to, while +* tx_queue_id is queue id application refers to, while * rxq->reg_idx is the real queue index. */ err =i40e_switch_tx_queue (hw, txq->reg_idx, TRUE);@@ -1690,7 +1690,7 @@ i40e_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) txq = dev->data->tx_queues[tx_queue_id];/* -* tx_queue_id is queue id aplication refers to, while +* tx_queue_id is queue id application refers to, while * txq->reg_idx is the real queue index. */ err =i40e_switch_tx_queue (hw, txq->reg_idx, FALSE);Signature · 1 line
2.1.4
For the series
Re: [PATCH 06/10] examples: fix spelling errors
In reply to a message not in the archiveHi Stephen,
You ran codespell tool but it seems that the result should be double checked.
2015-01-31 20:51, Stephen Hemminger:
examples/l3fwd/main.c processx4_step3(struct rte_mbuf *pkt[FWDSTEP], uint16_t dst_port[FWDSTEP]) · line 1259
Quoted 8 lines
examples/l3fwd/main.c +1
-1@@ -1256,7 +1256,7 @@ processx4_step3(struct rte_mbuf *pkt[FWDSTEP], uint16_t dst_port[FWDSTEP])* Suppose we have array of destionation ports: * dst_port[] = {a, b, c, d,, e, ... } * dp1 should contain: <a, b, c, d>, dp2: <b, c, d, e>. -* We doing 4 comparisions at once and the result is 4 bit mask. +* We doing 4 comparsions at once and the result is 4 bit mask.
We are doing?
comparisons?
examples/vhost/main.c switch_worker(__attribute__((unused)) void *arg) · line 1329
Quoted 8 lines
examples/vhost/main.c +1
-1@@ -1326,7 +1326,7 @@ switch_worker(__attribute__((unused)) void *arg)/* * This function gets available ring number for zero copy rx. -* Only one thread will call this funciton for a paticular virtio device, +* Only one thread will call this funciton for a particular virtio device,
function
examples/vhost/main.c get_available_ring_num_zcp(struct virtio_net *dev) · line 1345
Quoted 9 lines
examples/vhost/main.c +1
-1* so, it is designed as non-thread-safe function. */ static inline uint32_t __attribute__((always_inline))@@ -1342,7 +1342,7 @@ get_available_ring_num_zcp(struct virtio_net *dev)/* * This function gets available ring index for zero copy rx, * it will retry 'burst_rx_retry_num' times till it get enough ring index. -* Only one thread will call this funciton for a paticular virtio device, +* Only one thread will call this funciton for a particular virtio device,
function
Signature · 1 line
Thomas
Thomas Monjalon
NAK2015-01-31 16:56, Neil Horman:
Quoted 8 lines · Stephen Hemminger
Quoted 5 lines
From: Stephen Hemminger <[email protected]>
Spelling errors found with code spell.
Signed-off-by Stephen Hemminger <[email protected]>For the series
No need of a serie for typo fixes. A single patch would be OK.
Quoted 1 line
Acked-by Neil Horman <[email protected]>
I was applying this acked patchset.
But having a quick look, it seems that the automatic fixes were not checked:
http://dpdk.org/ml/archives/dev/2015-February/012227.html
NACK
Signature · 1 line
Thomas