forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/cavium/thunder/nicvf_queues.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2015 Cavium, Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of version 2 of the GNU General Public License
6
- * as published by the Free Software Foundation.
74 */
85
96 #ifndef NICVF_QUEUES_H
....@@ -103,8 +100,8 @@
103100 * RED accepts pkt if unused CQE < 2304 & >= 2560
104101 * DROPs pkts if unused CQE < 2304
105102 */
106
-#define RQ_PASS_CQ_LVL 192ULL
107
-#define RQ_DROP_CQ_LVL 184ULL
103
+#define RQ_PASS_CQ_LVL 224ULL
104
+#define RQ_DROP_CQ_LVL 216ULL
108105
109106 /* RED and Backpressure levels of RBDR for pkt reception
110107 * For RBDR, level is a measure of fullness i.e 0x0 means empty
....@@ -351,7 +348,7 @@
351348
352349 struct sk_buff *nicvf_get_rcv_skb(struct nicvf *nic,
353350 struct cqe_rx_t *cqe_rx, bool xdp);
354
-void nicvf_rbdr_task(unsigned long data);
351
+void nicvf_rbdr_task(struct tasklet_struct *t);
355352 void nicvf_rbdr_work(struct work_struct *work);
356353
357354 void nicvf_enable_intr(struct nicvf *nic, int int_type, int q_idx);