hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/net/ethernet/huawei/hinic/hinic_rx.h
....@@ -1,16 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Huawei HiNIC PCI Express Linux driver
34 * 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
- *
145 */
156
167 #ifndef HINIC_RX_H
....@@ -23,10 +14,17 @@
2314
2415 #include "hinic_hw_qp.h"
2516
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
+
2621 struct hinic_rxq_stats {
2722 u64 pkts;
2823 u64 bytes;
29
-
24
+ u64 errors;
25
+ u64 csum_errors;
26
+ u64 other_errors;
27
+ u64 alloc_skb_err;
3028 struct u64_stats_sync syncp;
3129 };
3230
....@@ -37,8 +35,8 @@
3735 struct hinic_rxq_stats rxq_stats;
3836
3937 char *irq_name;
40
-
41
- struct tasklet_struct rx_task;
38
+ u16 buf_len;
39
+ u32 rx_buff_shift;
4240
4341 struct napi_struct napi;
4442 };