瀏覽代碼

cxgb4: move VLAN_NONE macro definition

move VLAN_NONE macro definition from l2t.c
to l2t.h

Signed-off-by: Varun Prakash <varun@chelsio.com>
Acked-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Varun Prakash 9 年之前
父節點
當前提交
a8d9380c6a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 0 2
      drivers/net/ethernet/chelsio/cxgb4/l2t.c
  2. 2 0
      drivers/net/ethernet/chelsio/cxgb4/l2t.h

+ 0 - 2
drivers/net/ethernet/chelsio/cxgb4/l2t.c

@@ -48,8 +48,6 @@
 #include "t4_regs.h"
 #include "t4_values.h"
 
-#define VLAN_NONE 0xfff
-
 /* identifies sync vs async L2T_WRITE_REQs */
 #define SYNC_WR_S    12
 #define SYNC_WR_V(x) ((x) << SYNC_WR_S)

+ 2 - 0
drivers/net/ethernet/chelsio/cxgb4/l2t.h

@@ -39,6 +39,8 @@
 #include <linux/if_ether.h>
 #include <linux/atomic.h>
 
+#define VLAN_NONE 0xfff
+
 enum { L2T_SIZE = 4096 };     /* # of L2T entries */
 
 enum {