Skip to content

Commit

Permalink
RDMA/rxe: Remove the unused xmit_errors member
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhu Yanjun authored and Jason Gunthorpe committed Jan 5, 2022
1 parent 47920e4 commit 8803836
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/infiniband/sw/rxe/rxe_net.c
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 0 additions & 2 deletions drivers/infiniband/sw/rxe/rxe_verbs.h
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 8803836

Please sign in to comment.