forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/emulex/benet/be.h
....@@ -1,11 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2005 - 2016 Broadcom
34 * All rights reserved.
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public License version 2
7
- * as published by the Free Software Foundation. The full GNU General
8
- * Public License is included in this distribution in the file called COPYING.
95 *
106 * Contact Information:
117 * linux-drivers@emulex.com
....@@ -37,7 +33,6 @@
3733 #include "be_hw.h"
3834 #include "be_roce.h"
3935
40
-#define DRV_VER "12.0.0.0"
4136 #define DRV_NAME "be2net"
4237 #define BE_NAME "Emulex BladeEngine2"
4338 #define BE3_NAME "Emulex BladeEngine3"
....@@ -196,7 +191,6 @@
196191 } ____cacheline_aligned_in_smp;
197192
198193 struct be_aic_obj { /* Adaptive interrupt coalescing (AIC) info */
199
- bool enable;
200194 u32 min_eqd; /* in usecs */
201195 u32 max_eqd; /* in usecs */
202196 u32 prev_eqd; /* in usecs */
....@@ -593,6 +587,7 @@
593587
594588 struct be_drv_stats drv_stats;
595589 struct be_aic_obj aic_obj[MAX_EVT_QS];
590
+ bool aic_enabled;
596591 u8 vlan_prio_bmap; /* Available Priority BitMap */
597592 u16 recommended_prio_bits;/* Recommended Priority bits in vlan tag */
598593 struct be_dma_mem rx_filter; /* Cmd DMA mem for rx-filter */
....@@ -659,8 +654,6 @@
659654 u8 hba_port_num;
660655 u16 pvid;
661656 __be16 vxlan_port; /* offloaded vxlan port num */
662
- int vxlan_port_count; /* active vxlan port count */
663
- struct list_head vxlan_port_list; /* vxlan port list */
664657 struct phy_info phy;
665658 u8 wol_cap;
666659 bool wol_en;
....@@ -684,9 +677,6 @@
684677 struct be_cmd_work {
685678 struct work_struct work;
686679 struct be_adapter *adapter;
687
- union {
688
- __be16 vxlan_port;
689
- } info;
690680 };
691681
692682 #define be_physfn(adapter) (!adapter->virtfn)