forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/chelsio/cxgb4/smt.h
....@@ -59,14 +59,14 @@
5959 u16 idx;
6060 u16 pfvf;
6161 u8 src_mac[ETH_ALEN];
62
- atomic_t refcnt;
62
+ int refcnt;
6363 spinlock_t lock; /* protect smt entry add,removal */
6464 };
6565
6666 struct smt_data {
6767 unsigned int smt_size;
6868 rwlock_t lock;
69
- struct smt_entry smtab[0];
69
+ struct smt_entry smtab[];
7070 };
7171
7272 struct smt_data *t4_init_smt(void);