aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2016-02-14 12:37:40 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2016-03-22 03:25:05 -0400
commita8d9380c6a5d42da55365de89ea8d7654426e62b (patch)
tree5ffb39ff5c0b8ce795d74b09f4b0adced0a64543 /drivers/net/ethernet/chelsio
parent7714cb9e1e29311431b92970c87289cad004431a (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/l2t.c2
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/l2t.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b/drivers/net/ethernet/chelsio/cxgb4/l2t.c
index 5b0f3ef348e9..60a26037a1c6 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/l2t.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.c
@@ -48,8 +48,6 @@
48#include "t4_regs.h" 48#include "t4_regs.h"
49#include "t4_values.h" 49#include "t4_values.h"
50 50
51#define VLAN_NONE 0xfff
52
53/* identifies sync vs async L2T_WRITE_REQs */ 51/* identifies sync vs async L2T_WRITE_REQs */
54#define SYNC_WR_S 12 52#define SYNC_WR_S 12
55#define SYNC_WR_V(x) ((x) << SYNC_WR_S) 53#define SYNC_WR_V(x) ((x) << SYNC_WR_S)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.h b/drivers/net/ethernet/chelsio/cxgb4/l2t.h
index 4e2d47ac102b..79665bd8f881 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/l2t.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.h
@@ -39,6 +39,8 @@
39#include <linux/if_ether.h> 39#include <linux/if_ether.h>
40#include <linux/atomic.h> 40#include <linux/atomic.h>
41 41
42#define VLAN_NONE 0xfff
43
42enum { L2T_SIZE = 4096 }; /* # of L2T entries */ 44enum { L2T_SIZE = 4096 }; /* # of L2T entries */
43 45
44enum { 46enum {