* MUST have 32, then we'll need another way to perform atomic
* operations
*/
- u32 unicast_pkts_rcvd;
- atomic_t unicast_pkts_xmtd;
u32 multicast_pkts_rcvd;
- atomic_t multicast_pkts_xmtd;
- u32 broadcast_pkts_rcvd;
- atomic_t broadcast_pkts_xmtd;
u32 rcvd_pkts_dropped;
/* Tx Statistics. */
if (len > 0)
adapter->stats.multicast_pkts_rcvd++;
- } else if (word0 & ALCATEL_BROADCAST_PKT) {
- adapter->stats.broadcast_pkts_rcvd++;
- } else {
- /* Not sure what this counter measures in promiscuous mode.
- * Perhaps we should check the MAC address to see if it is
- * directed to us in promiscuous mode.
- */
- adapter->stats.unicast_pkts_rcvd++;
}
if (!len) {
struct tx_ring *tx_ring = &adapter->tx_ring;
u64 dma_addr;
- if (tcb->flags & FMP_DEST_BROAD)
- atomic_inc(&adapter->stats.broadcast_pkts_xmtd);
- else if (tcb->flags & FMP_DEST_MULTI)
- atomic_inc(&adapter->stats.multicast_pkts_xmtd);
- else
- atomic_inc(&adapter->stats.unicast_pkts_xmtd);
-
if (tcb->skb) {
stats->tx_bytes += tcb->skb->len;