Skip to content

Commit

Permalink
net/i40e: fix comments
Browse files Browse the repository at this point in the history
[ upstream commit 5267a2ae78e873d3a7e175944dcedffdadab6483 ]

The limitation of burst size in i40e vector rx has been removed, but the
comment lines have not been updated to reflect the code changes. Remove
those lines to avoid confusion. Additionally, fix a typo in
i40e_tx_queue.

Fixes: 9e27f00 ("net/i40e: fix vector Rx")

Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
  • Loading branch information
Snowball-Wang authored and kevintraynor committed Jul 21, 2023
1 parent dd28326 commit 54b7e8b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ Jie Liu <jie2.liu@hxt-semitech.com>
Jie Pan <panjie5@jd.com>
Jie Wang <jie1x.wang@intel.com>
Jie Zhou <jizh@linux.microsoft.com> <jizh@microsoft.com>
Jieqiang Wang <jieqiang.wang@arm.com>
Jijiang Liu <jijiang.liu@intel.com>
Jilei Chen <chenjilei@cmss.chinamobile.com>
Jim Harris <james.r.harris@intel.com>
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/i40e/i40e_rxtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct i40e_tx_queue {
bool q_set; /**< indicate if tx queue has been configured */
bool tx_deferred_start; /**< don't start this queue in dev start */
uint8_t dcb_tc; /**< Traffic class of tx queue */
uint64_t offloads; /**< Tx offload flags of RTE_ETH_RX_OFFLOAD_* */
uint64_t offloads; /**< Tx offload flags of RTE_ETH_TX_OFFLOAD_* */
const struct rte_memzone *mz;
};

Expand Down
2 changes: 0 additions & 2 deletions drivers/net/i40e/i40e_rxtx_vec_altivec.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,6 @@ _recv_raw_pkts_vec(struct i40e_rx_queue *rxq, struct rte_mbuf **rx_pkts,

/* Notice:
* - nb_pkts < RTE_I40E_DESCS_PER_LOOP, just return no packet
* - nb_pkts > RTE_I40E_VPMD_RX_BURST, only scan RTE_I40E_VPMD_RX_BURST
* numbers of DD bits
*/
uint16_t
i40e_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/i40e/i40e_rxtx_vec_neon.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,6 @@ _recv_raw_pkts_vec(struct i40e_rx_queue *__rte_restrict rxq,
/*
* Notice:
* - nb_pkts < RTE_I40E_DESCS_PER_LOOP, just return no packet
* - nb_pkts > RTE_I40E_VPMD_RX_BURST, only scan RTE_I40E_VPMD_RX_BURST
* numbers of DD bits
*/
uint16_t
i40e_recv_pkts_vec(void *__rte_restrict rx_queue,
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/i40e/i40e_rxtx_vec_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,6 @@ _recv_raw_pkts_vec(struct i40e_rx_queue *rxq, struct rte_mbuf **rx_pkts,
/*
* Notice:
* - nb_pkts < RTE_I40E_DESCS_PER_LOOP, just return no packet
* - nb_pkts > RTE_I40E_VPMD_RX_BURST, only scan RTE_I40E_VPMD_RX_BURST
* numbers of DD bits
*/
uint16_t
i40e_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
Expand Down

0 comments on commit 54b7e8b

Please sign in to comment.