In ipoib_cm_handle_rx_wc(): Count incoming packets and
bytes toward incoming counters. Reviewed by: jeff
This commit is contained in:
parent
8b5e8315a7
commit
66d972cfd6
@ -554,8 +554,8 @@ void ipoib_cm_handle_rx_wc(struct ipoib_dev_priv *priv, struct ib_wc *wc)
|
||||
|
||||
ipoib_dma_mb(priv, mb, wc->byte_len);
|
||||
|
||||
++dev->if_opackets;
|
||||
dev->if_obytes += mb->m_pkthdr.len;
|
||||
++dev->if_ipackets;
|
||||
dev->if_ibytes += mb->m_pkthdr.len;
|
||||
|
||||
mb->m_pkthdr.rcvif = dev;
|
||||
proto = *mtod(mb, uint16_t *);
|
||||
|
Loading…
Reference in New Issue
Block a user