/* ixgb_rx_checksum - Receive Checksum Offload for 82597. @adapter: board private structure @rx_desc: receive descriptor @sk_buff: socket buffer with received data  */
static void ixgb_rx_checksum(struct ixgb_adapter *adapter, struct ixgb_rx_desc *rx_desc, struct sk_buff *skb)
/* ixgb_rx_checksum - Receive Checksum Offload for 82597. @adapter: board private structure @rx_desc: receive descriptor @sk_buff: socket buffer with received data  */
static void ixgb_rx_checksum(struct ixgb_adapter *adapter, struct ixgb_rx_desc *rx_desc, struct sk_buff *skb)
{
	if ((rx_desc->status & IXGB_RX_DESC_STATUS_IXSM) ||
	   (!(rx_desc->status & IXGB_RX_DESC_STATUS_TCPCS))) {
		skb->ip_summed = CHECKSUM_NONE;
		return;
	}
	if (rx_desc->errors & IXGB_RX_DESC_ERRORS_TCPE) {
		skb->ip_summed = CHECKSUM_NONE;
		adapter->hw_csum_rx_error++;
	} else {
		skb->ip_summed = CHECKSUM_UNNECESSARY;
		adapter->hw_csum_rx_good++;
	}
}