.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Huawei HiNIC PCI Express Linux driver |
---|
3 | 4 | * Copyright(c) 2017 Huawei Technologies Co., Ltd |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms and conditions of the GNU General Public License, |
---|
7 | | - * version 2, as published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
---|
12 | | - * for more details. |
---|
13 | | - * |
---|
14 | 5 | */ |
---|
15 | 6 | |
---|
16 | 7 | #ifndef HINIC_RX_H |
---|
.. | .. |
---|
23 | 14 | |
---|
24 | 15 | #include "hinic_hw_qp.h" |
---|
25 | 16 | |
---|
| 17 | +#define HINIC_RX_CSUM_OFFLOAD_EN 0xFFF |
---|
| 18 | +#define HINIC_RX_CSUM_HW_CHECK_NONE BIT(7) |
---|
| 19 | +#define HINIC_RX_CSUM_IPSU_OTHER_ERR BIT(8) |
---|
| 20 | + |
---|
26 | 21 | struct hinic_rxq_stats { |
---|
27 | 22 | u64 pkts; |
---|
28 | 23 | u64 bytes; |
---|
29 | | - |
---|
| 24 | + u64 errors; |
---|
| 25 | + u64 csum_errors; |
---|
| 26 | + u64 other_errors; |
---|
| 27 | + u64 alloc_skb_err; |
---|
30 | 28 | struct u64_stats_sync syncp; |
---|
31 | 29 | }; |
---|
32 | 30 | |
---|
.. | .. |
---|
37 | 35 | struct hinic_rxq_stats rxq_stats; |
---|
38 | 36 | |
---|
39 | 37 | char *irq_name; |
---|
40 | | - |
---|
41 | | - struct tasklet_struct rx_task; |
---|
| 38 | + u16 buf_len; |
---|
| 39 | + u32 rx_buff_shift; |
---|
42 | 40 | |
---|
43 | 41 | struct napi_struct napi; |
---|
44 | 42 | }; |
---|