RDMA/rxe: Remove the unused xmit_errors member
The member variable xmit_errors can be replaced with rxe_counter_inc(rxe, RXE_CNT_SEND_ERR) Link: https://lore.kernel.org/r/20211216054842.1099428-1-yanjun.zhu@linux.dev Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
Родитель
47920e4d2c
Коммит
8803836fe7
|
@ -440,7 +440,6 @@ int rxe_xmit_packet(struct rxe_qp *qp, struct rxe_pkt_info *pkt,
|
|||
else
|
||||
err = rxe_send(skb, pkt);
|
||||
if (err) {
|
||||
rxe->xmit_errors++;
|
||||
rxe_counter_inc(rxe, RXE_CNT_SEND_ERR);
|
||||
return err;
|
||||
}
|
||||
|
|
|
@ -392,8 +392,6 @@ struct rxe_dev {
|
|||
|
||||
struct net_device *ndev;
|
||||
|
||||
int xmit_errors;
|
||||
|
||||
struct rxe_pool uc_pool;
|
||||
struct rxe_pool pd_pool;
|
||||
struct rxe_pool ah_pool;
|
||||
|
|
Загрузка…
Ссылка в новой задаче