qls_isr.c (252206) | qls_isr.c (271849) |
---|---|
1/* 2 * Copyright (c) 2013-2014 Qlogic Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 16 unchanged lines hidden (view full) --- 25 * POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28/* 29 * File: qls_isr.c 30 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. 31 */ 32#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2013-2014 Qlogic Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 16 unchanged lines hidden (view full) --- 25 * POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28/* 29 * File: qls_isr.c 30 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. 31 */ 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/qlxge/qls_isr.c 252206 2013-06-25 17:50:22Z davidcs $"); | 33__FBSDID("$FreeBSD: head/sys/dev/qlxge/qls_isr.c 271849 2014-09-19 03:51:26Z glebius $"); |
34 35 36 37#include "qls_os.h" 38#include "qls_hw.h" 39#include "qls_def.h" 40#include "qls_inline.h" 41#include "qls_ver.h" --- 10 unchanged lines hidden (view full) --- 52 if (tx_idx >= NUM_TX_DESCRIPTORS) { 53 ha->qla_initiate_recovery = 1; 54 return; 55 } 56 57 txb = &ha->tx_ring[txr_idx].tx_buf[tx_idx]; 58 59 if (txb->m_head) { | 34 35 36 37#include "qls_os.h" 38#include "qls_hw.h" 39#include "qls_def.h" 40#include "qls_inline.h" 41#include "qls_ver.h" --- 10 unchanged lines hidden (view full) --- 52 if (tx_idx >= NUM_TX_DESCRIPTORS) { 53 ha->qla_initiate_recovery = 1; 54 return; 55 } 56 57 txb = &ha->tx_ring[txr_idx].tx_buf[tx_idx]; 58 59 if (txb->m_head) { |
60 ha->ifp->if_opackets++; | 60 if_inc_counter(ha->ifp, IFCOUNTER_OPACKETS, 1); |
61 bus_dmamap_sync(ha->tx_tag, txb->map, 62 BUS_DMASYNC_POSTWRITE); 63 bus_dmamap_unload(ha->tx_tag, txb->map); 64 m_freem(txb->m_head); 65 66 txb->m_head = NULL; 67 } 68 --- 127 unchanged lines hidden (view full) --- 196 Q81_RX_FLAGS0_NU | Q81_RX_FLAGS0_IE)) { 197 mp->m_pkthdr.csum_flags = 0; 198 } else { 199 mp->m_pkthdr.csum_flags = CSUM_IP_CHECKED | 200 CSUM_IP_VALID | CSUM_DATA_VALID | 201 CSUM_PSEUDO_HDR; 202 mp->m_pkthdr.csum_data = 0xFFFF; 203 } | 61 bus_dmamap_sync(ha->tx_tag, txb->map, 62 BUS_DMASYNC_POSTWRITE); 63 bus_dmamap_unload(ha->tx_tag, txb->map); 64 m_freem(txb->m_head); 65 66 txb->m_head = NULL; 67 } 68 --- 127 unchanged lines hidden (view full) --- 196 Q81_RX_FLAGS0_NU | Q81_RX_FLAGS0_IE)) { 197 mp->m_pkthdr.csum_flags = 0; 198 } else { 199 mp->m_pkthdr.csum_flags = CSUM_IP_CHECKED | 200 CSUM_IP_VALID | CSUM_DATA_VALID | 201 CSUM_PSEUDO_HDR; 202 mp->m_pkthdr.csum_data = 0xFFFF; 203 } |
204 ifp->if_ipackets++; | 204 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); |
205 206 if (lro->lro_cnt && (tcp_lro_rx(lro, mp, 0) == 0)) { 207 /* LRO packet has been successfuly queued */ 208 } else { 209 (*ifp->if_input)(ifp, mp); 210 } 211 } 212 } else { --- 189 unchanged lines hidden --- | 205 206 if (lro->lro_cnt && (tcp_lro_rx(lro, mp, 0) == 0)) { 207 /* LRO packet has been successfuly queued */ 208 } else { 209 (*ifp->if_input)(ifp, mp); 210 } 211 } 212 } else { --- 189 unchanged lines hidden --- |