Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zhu Yanjun and committed by
Jason Gunthorpe
8803836f 47920e4d

-3
-1
drivers/infiniband/sw/rxe/rxe_net.c
··· 440 440 else 441 441 err = rxe_send(skb, pkt); 442 442 if (err) { 443 - rxe->xmit_errors++; 444 443 rxe_counter_inc(rxe, RXE_CNT_SEND_ERR); 445 444 return err; 446 445 }
-2
drivers/infiniband/sw/rxe/rxe_verbs.h
··· 392 392 393 393 struct net_device *ndev; 394 394 395 - int xmit_errors; 396 - 397 395 struct rxe_pool uc_pool; 398 396 struct rxe_pool pd_pool; 399 397 struct rxe_pool ah_pool;