mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 17:15:18 +07:00
e1a76515b0
There is no need to schedule a different tasklet for refill, This patch remove it. Suggested-by: Neil Horman <nhorman@redhat.com> Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* Huawei HiNIC PCI Express Linux driver
|
|
* Copyright(c) 2017 Huawei Technologies Co., Ltd
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
* for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef HINIC_RX_H
|
|
#define HINIC_RX_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/netdevice.h>
|
|
#include <linux/u64_stats_sync.h>
|
|
#include <linux/interrupt.h>
|
|
|
|
#include "hinic_hw_qp.h"
|
|
|
|
#define HINIC_RX_CSUM_OFFLOAD_EN 0xFFF
|
|
#define HINIC_RX_CSUM_HW_CHECK_NONE BIT(7)
|
|
#define HINIC_RX_CSUM_IPSU_OTHER_ERR BIT(8)
|
|
|
|
struct hinic_rxq_stats {
|
|
u64 pkts;
|
|
u64 bytes;
|
|
|
|
struct u64_stats_sync syncp;
|
|
};
|
|
|
|
struct hinic_rxq {
|
|
struct net_device *netdev;
|
|
struct hinic_rq *rq;
|
|
|
|
struct hinic_rxq_stats rxq_stats;
|
|
|
|
char *irq_name;
|
|
|
|
struct napi_struct napi;
|
|
};
|
|
|
|
void hinic_rxq_clean_stats(struct hinic_rxq *rxq);
|
|
|
|
void hinic_rxq_get_stats(struct hinic_rxq *rxq, struct hinic_rxq_stats *stats);
|
|
|
|
int hinic_init_rxq(struct hinic_rxq *rxq, struct hinic_rq *rq,
|
|
struct net_device *netdev);
|
|
|
|
void hinic_clean_rxq(struct hinic_rxq *rxq);
|
|
|
|
#endif
|