Skip to content

Commit 6a42b51

Browse files
Colin Ian Kingdavem330
authored andcommitted
qed: fix spelling mistake "b_cb_registred" -> "b_cb_registered"
Trivial fix to spelling mistake struct field name, rename it. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ec72001 commit 6a42b51

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

drivers/net/ethernet/qlogic/qed/qed_ll2.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
#include "qed_sp.h"
6464
#include "qed_rdma.h"
6565

66-
#define QED_LL2_RX_REGISTERED(ll2) ((ll2)->rx_queue.b_cb_registred)
67-
#define QED_LL2_TX_REGISTERED(ll2) ((ll2)->tx_queue.b_cb_registred)
66+
#define QED_LL2_RX_REGISTERED(ll2) ((ll2)->rx_queue.b_cb_registered)
67+
#define QED_LL2_TX_REGISTERED(ll2) ((ll2)->tx_queue.b_cb_registered)
6868

6969
#define QED_LL2_TX_SIZE (256)
7070
#define QED_LL2_RX_SIZE (4096)
@@ -1404,7 +1404,7 @@ int qed_ll2_acquire_connection(void *cxt, struct qed_ll2_acquire_data *data)
14041404
&p_hwfn->p_ll2_info[i],
14051405
&p_ll2_info->rx_queue.rx_sb_index,
14061406
&p_ll2_info->rx_queue.p_fw_cons);
1407-
p_ll2_info->rx_queue.b_cb_registred = true;
1407+
p_ll2_info->rx_queue.b_cb_registered = true;
14081408
}
14091409

14101410
if (data->input.tx_num_desc) {
@@ -1413,7 +1413,7 @@ int qed_ll2_acquire_connection(void *cxt, struct qed_ll2_acquire_data *data)
14131413
&p_hwfn->p_ll2_info[i],
14141414
&p_ll2_info->tx_queue.tx_sb_index,
14151415
&p_ll2_info->tx_queue.p_fw_cons);
1416-
p_ll2_info->tx_queue.b_cb_registred = true;
1416+
p_ll2_info->tx_queue.b_cb_registered = true;
14171417
}
14181418

14191419
*data->p_connection_handle = i;
@@ -1929,7 +1929,7 @@ int qed_ll2_terminate_connection(void *cxt, u8 connection_handle)
19291929

19301930
/* Stop Tx & Rx of connection, if needed */
19311931
if (QED_LL2_TX_REGISTERED(p_ll2_conn)) {
1932-
p_ll2_conn->tx_queue.b_cb_registred = false;
1932+
p_ll2_conn->tx_queue.b_cb_registered = false;
19331933
smp_wmb(); /* Make sure this is seen by ll2_lb_rxq_completion */
19341934
rc = qed_sp_ll2_tx_queue_stop(p_hwfn, p_ll2_conn);
19351935
if (rc)
@@ -1940,7 +1940,7 @@ int qed_ll2_terminate_connection(void *cxt, u8 connection_handle)
19401940
}
19411941

19421942
if (QED_LL2_RX_REGISTERED(p_ll2_conn)) {
1943-
p_ll2_conn->rx_queue.b_cb_registred = false;
1943+
p_ll2_conn->rx_queue.b_cb_registered = false;
19441944
smp_wmb(); /* Make sure this is seen by ll2_lb_rxq_completion */
19451945
rc = qed_sp_ll2_rx_queue_stop(p_hwfn, p_ll2_conn);
19461946
if (rc)

drivers/net/ethernet/qlogic/qed/qed_ll2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct qed_ll2_rx_queue {
7979
struct qed_chain rxq_chain;
8080
struct qed_chain rcq_chain;
8181
u8 rx_sb_index;
82-
bool b_cb_registred;
82+
bool b_cb_registered;
8383
__le16 *p_fw_cons;
8484
struct list_head active_descq;
8585
struct list_head free_descq;
@@ -93,7 +93,7 @@ struct qed_ll2_tx_queue {
9393
spinlock_t lock;
9494
struct qed_chain txq_chain;
9595
u8 tx_sb_index;
96-
bool b_cb_registred;
96+
bool b_cb_registered;
9797
__le16 *p_fw_cons;
9898
struct list_head active_descq;
9999
struct list_head free_descq;

0 commit comments

Comments
 (0)